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. Part of cursor-rules-java project
79
73%
Does it follow best practices?
Impact
—
No eval scenarios have been run
Passed
No known issues
Optimize this skill with Tessl
npx tessl skill review --optimize ./skills/110-java-maven-best-practices/SKILL.mdImprove Maven POM configuration using industry-standard best practices.
What is covered in this Skill?
<dependencyManagement> and BOMssrc/main/java, src/test/java)pom.xml, check for a <modules> section. If present, read every child module's pom.xml before making any recommendations.<dependencyManagement>, redundant <pluginManagement> blocks, properties that should be centralized, and version drift across sibling modules.Before applying Maven best practices recommendations, ensure the project is in a valid state by running Maven validation. This helps identify any existing configuration issues that need to be resolved first. For multi-module projects, scope analysis must cover every child module POM — not just the root.
./mvnw validate or mvn validate before applying any Maven best practices recommendationspom.xml, check whether it contains a <modules> section. If it does, read every child module's pom.xml before making any recommendations — analysis scope is the full module tree, not only the root<dependencyManagement> in the parent, plugin configurations that duplicate <pluginManagement>, properties that should be centralized in the parent, and version drift (same artifact declared at different versions across sibling modules)Run ./mvnw validate or mvn validate and stop if validation fails.
Read references/110-java-maven-best-practices.md, then inspect root pom.xml structure, dependency management, plugin management, properties, and profiles.
If root has a <modules> section, read every child pom.xml and evaluate cross-module duplication, centralization opportunities, and version drift.
Propose concrete, safe improvements aligned with Maven best practices and full-module findings.
For detailed guidance, examples, and constraints, see references/110-java-maven-best-practices.md.
762cb86
If you maintain this skill, you can claim it as your own. Once claimed, you can manage eval scenarios, bundle related skills, attach documentation or rules, and ensure cross-agent compatibility.