Now liveThe Skillselion MCP - thousands of ranked skills, loaded into your agent mid-task. No install.Get it →
jabrena avatar

110 Java Maven Best Practices

  • 260 installs
  • 424 repo stars
  • Updated August 2, 2026
  • jabrena/cursor-rules-java

Refactor and harden a Maven pom.xml with dependencyManagement, BOMs, profiles, and maintainable plugin conventions.

About

110-java-maven-best-practices is a Cursor-oriented agent skill for solo Java developers who need to improve an existing Maven pom.xml without drift, version conflicts, or unreadable plugin sprawl. It positions you as a senior engineer applying Maven’s core principles: convention over configuration, declarative POM models, reproducible dependency graphs, and lifecycle-aware builds. Concrete guidance covers dependencyManagement and BOM imports, adhering to src/main/java layout, hoisting versions into properties, managing plugins in one place, and using profiles for environment-specific settings while keeping custom repositories explicit and rare. Invoke it when a greenfield POM is messy, when transitive dependency hell appears, or before onboarding collaborators who must understand your build at a glance. It does not replace domain coding skills—it sharpens the build contract your backend depends on.

  • dependencyManagement sections and BOM imports for consistent versions
  • Standard directory layout and convention-over-configuration alignment
  • Centralized plugin management and environment-specific Maven profiles
  • Readable POM structure with properties for version centralization
  • Guidance to minimize custom repositories and prefer repository managers

110 Java Maven Best Practices by the numbers

  • 260 all-time installs (skills.sh)
  • +3 installs in the week ending Aug 2, 2026 (Skillselion tracking)
  • Ranked #19 of 89 Java & JVM skills by installs in the Skillselion catalog
  • Security screen: LOW risk (skills.sh audit)
  • Data as of Aug 5, 2026 (Skillselion catalog sync)
npx skills add https://github.com/jabrena/cursor-rules-java --skill 110-java-maven-best-practices

Add your badge

Show developers this skill is listed on Skillselion. Paste this into your README.

Listed on Skillselion
Installs260
repo stars424
Security audit3 / 3 scanners passed
Last updatedAugust 2, 2026
Repositoryjabrena/cursor-rules-java

What it does

Refactor and harden a Maven pom.xml with dependencyManagement, BOMs, profiles, and maintainable plugin conventions.

Files

SKILL.mdMarkdownGitHub ↗

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: After reading the root pom.xml, check for a <modules> section. If present, read every child module's pom.xml before making any recommendations.
  • Check each child for hardcoded versions that duplicate parent <dependencyManagement>, redundant <pluginManagement> blocks, properties that should be centralized, and version drift across sibling modules.

Constraints

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.

  • MANDATORY: Run ./mvnw validate or mvn validate before applying any Maven best practices recommendations
  • VERIFY: Ensure all validation errors are resolved before proceeding with POM modifications
  • SAFETY: If validation fails, do not continue and ask the user to fix the issues before continuing
  • MULTI-MODULE DISCOVERY: After reading the root pom.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
  • CROSS-MODULE SCOPE: When child modules exist, check each one for: hardcoded dependency versions that duplicate <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)
  • BEFORE APPLYING: Read the reference for detailed examples, good/bad patterns, and constraints

When to use this skill

  • Review pom.xml to improve it
  • Apply Maven best practices to pom.xml
  • Improve Maven POM configuration

Workflow

1. Validate project before recommendations

Run ./mvnw validate or mvn validate and stop if validation fails.

2. Read reference and analyze root POM

Read references/110-java-maven-best-practices.md, then inspect root pom.xml structure, dependency management, plugin management, properties, and profiles.

3. Expand to full module tree when present

If root has a <modules> section, read every child pom.xml and evaluate cross-module duplication, centralization opportunities, and version drift.

4. Provide prioritized best-practice recommendations

Propose concrete, safe improvements aligned with Maven best practices and full-module findings.

Reference

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

Related skills

FAQ

Is 110 Java Maven Best Practices safe to install?

skills.sh reports 3 of 3 security scanners passed. Review the Security Audits panel on this page before installing in production.

Java & JVMbackend

This week in AI coding

Five minutes, every Monday - the tools, releases and tactics for developers.

unsubscribe anytime.