110 Java Maven Best Practices

Use when you need to improve your Maven pom.xml using best practices

majiayu000 1e8dee9 2 files · 1.8 KB Updated 567 repo stars

File contents

Maven Best Practices

Improve Maven POM configuration using industry-standard best practices.

Core areas: 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, and version centralization.

Prerequisites: Run mvn validate before applying recommendations. If validation fails, stop and ask the user to fix issues—do not proceed until resolved.

Before applying changes: Read the reference for detailed examples, good/bad patterns, and constraints.

Reference

For detailed guidance, examples, and constraints, see references/110-java-maven-best-practices.md.

majiayu000/claude-skill-registry-data/tree/main/development/110-java-maven-best-practices commit 1e8dee9b17

Frequently asked questions

npx skillmds add majiayu000/110-java-maven-best-practices-2