Skip to content
Agentmart
Submit a tool

java-g2m

该skill没有执行文件,为操作要求:从 gradle 转 maven

Skill by hellyguo

IndexedApache-2.0★ 8
Write a review

Install

Works with Claude Code, Claude apps, Codex, Cursor, Gemini CLI, GitHub Copilot, VS Code, OpenCode, Goose, Windsurf. Read the repository before you give any tool access to your data.

npx agentmarket install skill/hellyguo-java-g2m

Asks which of your tools to add it to (Claude Code, Codex, Cursor, VS Code, Windsurf, Gemini CLI, Claude Desktop) and shows the change first. See https://agentmart.dev/cli.

Get the weekly diff

The weekly diff: one email a week with new agent tools, notable updates and grade changes, plus security alerts for tools you follow. Double opt-in, one-click unsubscribe.

We use your email only for this newsletter. Privacy

About

该skill没有执行文件,为操作要求:从 gradle 转 maven

No reviews yet. Installed it? Reviews come from verified installers only. How reviews work

Permissions

What this skill can do and what it asks for, from its SKILL.md. Checked Oct 25, 2026.

Tools
No tools found
Secrets
None asked for
Install scripts
None found

Network hosts it talks to 1

  • codeload.github.com · found in install command

Files it touches

  • ~/.claude/skills/java-g2m

What's inside

Skill name
java-g2m
Description
该skill没有执行文件,为操作要求:从 gradle 转 maven
License
Apache-2.0
Instructions
14 lines in SKILL.md · view on GitHub

Files (1)

  • SKILL.md

SKILL.md (first lines)

# Gradle 转 Maven

## 适用场景

- 项目构建体系需要从 Gradle 统一到 Maven
- 已有项目需要接入只支持 Maven 的 CI 或制品流程

## 前置条件

1. 通过 skill `java-env` 确认 JDK 与 mvnd/mvn 版本。
2. 阅读 `build.gradle` / `build.gradle.kts`、`settings.gradle`、`gradle.properties` 与 `gradle/libs.versions.toml`。
3. 确认多模块结构与模块间依赖关系。

## 迁移要求

1. 保持 JDK 要求不变;除非用户明确要求切换 JDK。
2. 所有依赖必须完整迁移到 `pom.xml`,不重不漏,作用域(compile/provided/runtime/test)与原构建一致。
3. Gradle 特有任务尽可能等价迁移为 Maven 插件或 profile;无法迁移的,在输出中列出任务清单、原因与替代方案。
4. 多模块项目使用 Maven 聚合与继承结构,模块坐标、依赖关系与原结构一致。
5. 版本号统一由 `dependencyManagement` 或 parent 管理,避免散落。

## 执行步骤

1. 盘点 Gradle 结构:模块、插件、依赖、仓库、属性、任务。
2. 生成或改写 `pom.xml`:parent、modules、properties、dependencyManagement、dependencies、build。
3. 迁移资源过滤、打包配置、测试配置与编码设置。
4. 逐模块执行 `mvnd -q -DskipTests compile`,修正依赖与插件差异。
5. 执行 `mvnd test`,确认测试全部通过。
6. 对比迁移前后构建产物与依赖树(`mvnd dependency:tree`)。

## 输出物

- 迁移后的 `pom.xml`(含多模块)。
- 迁移说明:依赖映射、插件映射、未能迁移的任务清单。
- 验证记录:编译、测试、依赖树对比结果。

## 完成标准

- [ ] 所有模块可编译
- [ ] 所有测试通过
- [ ] 依赖无缺失、无重复、作用域正确
- [ ] 未能迁移的 Gradle 任务已列出并有替代方案

From hellyguo/self-ai-spec, Apache-2.0.

More from hellyguo/self-ai-spec

Signals

Stars
8
Forks
0
Open issues
0
Last commit (this folder)
Mar 23, 2026 (7 months ago)

From GitHub (fetched Oct 24, 2026).

Details

License
Apache-2.0
First seen
Oct 24, 2026
Last checked
Oct 24, 2026

More from hellyguo

Cite this page

java-g2m skill. Agent Mart. https://agentmart.dev/skills/hellyguo-java-g2m (last updated 2026-10-24)