110-java-maven-best-practices
覆盖依赖管理、插件与多模块结构,能显著提升构建与维护质量。
审查并改进 Maven pom.xml,采用依赖管理与插件等最佳实践。
审查并改进 Maven 项目的 pom.xml,包含依赖管理(BOM)、插件集中管理、多模块布局、构建 profiles 和版本集中化等实用建议。适合想把构建现代化、减少版本冲突和优化 CI/CD 流程的团队使用,会给出具体的 pom 重构和配置片段。特别把常见反模式改为可维护的标准做法,便于长期维护和升级。
▸ 展开 SKILL.md 英文原文
Use when you need to review, improve, or troubleshoot a Maven pom.xml file — including dependency management with BOMs, plugin configuration, version centralization, multi-module project structure, build profiles, or any situation where you want to align your Maven setup with industry best practices. This should trigger for requests such as Review pom.xml to improve it; Apply Maven best practices to pom.xml; Improve Maven POM configuration; Review Maven dependency management and plugin configuration; Modernize Maven build conventions for a Java project. Part of Plinth Toolkit
帮我安装这个 skill:https://raw.githubusercontent.com/jabrena/plinth/main/skills/110-java-maven-best-practices/SKILL.mdcurl -fsSL "https://raw.githubusercontent.com/jabrena/plinth/main/skills/110-java-maven-best-practices/SKILL.md"# Maven Best Practices Improve Maven POM configuration using industry-standard best practices. **What is covered in this Skill?** - Dependency management via `<dependencyManagement>` and BOMs - Standard directory layout (`src/main/java`, `src/test/java`) - Centralized plugin management - Build profiles for environment-specific settings - Readable POM structure with version properties - Explicit repository declaration - Version centralization - Multi-module project structure with proper inheritance - Cross-module version consistency - Multi-module scope: Query the root `pom.xml` with local XML tooling and check for a `<modules>` section. If present, query each declared child module POM bef