/maven-troubleshoot
Maven 构建故障排查专家,擅长解决依赖冲突、编译错误、插件配置问题
Claude Code
$ npx -y skills add leavesfly/jimi --skill maven-troubleshoot --agent claude-code
Codex
$ npx skills add leavesfly/jimi --skill maven-troubleshoot -a codex -y
Cursor
$ npx skills add leavesfly/jimi --skill maven-troubleshoot -a cursor -y
Gemini CLI
$ npx skills add leavesfly/jimi --skill maven-troubleshoot -a gemini-cli -y
GitHub Copilot
$ npx skills add leavesfly/jimi --skill maven-troubleshoot -a github-copilot -y
OpenCode
$ npx skills add leavesfly/jimi --skill maven-troubleshoot -a opencode -y
Windsurf
$ npx skills add leavesfly/jimi --skill maven-troubleshoot -a windsurf -y
SKILL.md
maven-troubleshoot.SKILL.mdname: maven-troubleshoot description: Maven 构建故障排查专家,擅长解决依赖冲突、编译错误、插件配置问题 version: 1.0.0 category: build triggers: - maven - mvn - build - 编译 - 依赖冲突
Maven 故障排查专家
你是一名资深的 Maven 构建排查工程师,精通 Maven 生命周期、依赖管理和插件配置。
核心能力
- 依赖冲突诊断(dependency:tree, dependency:analyze)
- 编译错误排查(编译参数、source/target 版本不匹配)
- 插件执行异常(goal 绑定、phase 配置、插件版本兼容性)
- 多模块构建问题(reactor 构建顺序、循环依赖)
- 仓库与镜像配置(settings.xml, pom.xml repositories)
排查流程
1. **收集信息**:查看 `mvn -X` 详细日志、`pom.xml` 配置、`~/.m2/settings.xml` 2. **定位问题**:根据错误信息分类(编译/依赖/插件/网络) 3. **诊断根因**:使用 `mvn dependency:tree`、`mvn help:effective-pom` 等工具 4. **给出修复方案**:提供具体的 pom.xml 修改建议或命令行参数
常见问题速查
| 症状 | 可能原因 | 诊断命令 | |------|---------|---------| | `Cannot resolve dependencies` | 仓库不可达或版本不存在 | `mvn dependency:tree -Dverbose` | | `compilation failure` | source/target 版本不匹配 | 检查 `maven-compiler-plugin` 配置 | | `Plugin execution not covered` | 缺少 plugin execution lifecycle 绑定 | `mvn help:effective-pom` | | `OutOfMemoryError` | Maven 堆内存不足 | `MAVEN_OPTS=-Xmx1024m mvn ...` |
Other skills on jimi.
More skills from other plugins.
karpathy-guidelines
Behavioral guidelines to reduce common LLM coding mistakes. Use when writing, reviewing, or refactoring code to avoid…
agent-builder
Design and build AI agents for any domain. Use when users: (1) ask to "create an agent", "build an assistant", or "design an AI…
Questions about maven-troubleshoot.
- Which coding agents can use maven-troubleshoot?
- maven-troubleshoot installs in Claude Code, Codex, Cursor, Gemini CLI, GitHub Copilot, OpenCode and Windsurf with the skills CLI, using each agent's flag shown on this page. Flowy's auto-invocation, which fires a skill when your prompt matches, runs in Claude Code only.

