/maven-troubleshoot
Maven 构建故障排查专家,擅长解决依赖冲突、编译错误、插件配置问题
$ npx -y skills add leavesfly/jimi --skill maven-troubleshoot --agent claude-codeHow it fires
How this skill gets triggered: by you, by Claude, or both.
- Fires itselfAuto-invocation. Claude auto-loads it when your prompt matches the work.Auto-invocation is when the right skill fires by itself at the right moment, driven by a FLOW.md router and a hook, instead of you invoking it by name. It is the difference between a skill being installed and a skill actually getting used.Read the full definition →
- You can call itInvoke it directly when you want it.
- Slash command
/maven-troubleshoot
Context preview
The summary Claude sees to decide when to auto-load this skill.
Maven 构建故障排查专家,擅长解决依赖冲突、编译错误、插件配置问题
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.
- /api-design
RESTful API design best practices and conventions guide
Open skill - /code-quality-suite
代码质量综合技能包(代码审查 + 单元测试)
Open skill - /code-review
代码审查最佳实践指南
Open skill - /database-design
数据库设计规范与优化指南
Open skill - /git-commit-guide
Git 提交规范(Conventional Commits)
Open skill - /java-best-practices
Java 编码最佳实践与设计模式
Open skill

