110-java-maven-best-practices

仓库创建 2025年2月9日最近提交 3 天前SkillHot 收录 21 天前
▸ 精选理由

覆盖依赖管理、插件与多模块结构,能显著提升构建与维护质量。

这个 Skill 做什么

审查并改进 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

开发编程Maven最佳实践POM优化通用
423
Stars
89
Forks
40
仓库内 Skill
+9
7 日增星
安装 / 使用
给你的 Agent 一句话(通用)
帮我安装这个 skill:https://raw.githubusercontent.com/jabrena/plinth/main/skills/110-java-maven-best-practices/SKILL.md
或 curl 直取 SKILL.md
curl -fsSL "https://raw.githubusercontent.com/jabrena/plinth/main/skills/110-java-maven-best-practices/SKILL.md"
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
via SKILL·HOT · 数据来自 GitHub 公开信息 · 原文版权归作者所有