paulpas/agent-skill-router/maven-build-system
Claude Code and agent skill by paulpas/agent-skill-router
- community
Checking that the SKILL.md file is still in the repository.
Implements Apache Maven build configurations (POM structure, dependency management, profiles, multi-module builds, plugin configuration) for Java and Kotlin projects.
Install
npx vskill@latest install paulpas/agent-skill-router/maven-build-systemSKILL.md
The same SKILL.md was published earlier as paulpas/agent-skill-router/maven-build-system.
Maven Build System
Implements Apache Maven build configurations for Java and Kotlin projects — managing multi-module reactor builds, centralized dependency versioning with BOMs, plugin management, profile activation, and production-grade diagnostic workflows. When loaded, the model acts as a senior build engineer producing correct pom.xml files, resolving dependency conflicts, and diagnosing build issues using Maven's built-in diagnostics.
TL;DR Checklist
- [ ] Use a parent POM with
<dependencyManagement>and<pluginManagement>for all multi-module projects - [ ] Define a dedicated BOM module (packaging:
pom) to centralize third-party dependency versions - [ ] Add maven-enforcer-plugin rules enforcing Java version, Maven version, and duplicate detection
- [ ] Use
${project.version}instead of hardcoded version numbers in child POMs - [ ] Run
mvn help:effective-pomandmvn dependency:tree -Dincludes=groupId:artifactIdto diagnose issues - [ ] Set
<scope>test</scope>on all test-scoped dependencies; never leave runtime deps as test scope - [ ] Use
<exclusions>to resolve transitive dependency conflicts at the point of declaration
When to Use
Use this skill when:
- Setting up a new Maven project or multi-module reactor from scratch
- Resolving dependency version conflicts across modules using BOMs or
dependencyManagement - Configuring Maven profiles for environment-specific builds (dev, staging, production)
- Diagnosing build failures with
effective-pom,dependency:tree, and enforcer rules - Migrating a non-Maven project to Maven or consolidating multiple projects into a reactor
- Configuring plugin management to standardize compiler, test, and packaging behavior across modules
When NOT to Use
Avoid this skill for:
- Non-Java/Kotlin projects — use
gradle-build-systemfor Gradle-based builds instead - Simple single-file scripts — Maven's overhead is not justified for trivial build needs
- Projects already committed to Gradle with convention plugins and Kotlin DSL
- When only dependency resolution (not full build lifecycle) is needed — consider a dedicated tool like JBang or direct classpath management
Core Workflow
- Define Reactor Structure — Create a root
pom.xmlwith<packaging>pom</packaging>, declare child modules via<modules>, and set the parentgroupId/artifactId/version. Every child module must inherit these through a<parent>reference with<relativePath>../pom.xml</relativePath>.
Checkpoint: Run mvn help:evaluate -Dexpression=project.modules -q -DforceStdout to verify all modules are discovered. No child POM should declare its own groupId or version when inheriting from parent.
- Configure Dependency Management — In the parent POM, place all project dependency coordinates inside
<dependencyManagement>. For shared third-party libraries (SLF4J, JUnit, Jackson), create a separate BOM module withpompackaging that centralizes versions. Child modules reference dependencies without version numbers — Maven resolves them from the parent's management section.
Checkpoint: Run mvn dependency:tree -Dincludes=com.fasterxml.jackson.core from the root. All modules must show exactly one Jackson version with no conflict warnings.
- Centralize Plugin Management — Declare plugin versions inside
<build><pluginManagement>in the parent POM. Apply plugins to individual modules by listing them under each module's<build><plugins>section without specifying versions (they inherit from pluginManagement).
Checkpoint: Run mvn help:effective-pom -pl :my-service and verify that maven-compiler-plugin version matches your declared value. Maven must not emit "Plugin management" warnings about unmanaged plugins.
- Enforce Build Policies — Add the maven-enforcer-plugin with at least three rules:
enforceJavaVersion,enforceMavenVersion, andbanDuplicatePomDependencies. Configure failure behavior to stop the build on violations.
Checkpoint: Run mvn enforcer:enforce from the root in a clean checkout — it must pass. Then intentionally inject a duplicate dependency in one module and verify it fails with a clear error message naming the duplicate artifacts.
- Verify Reactor Build — Execute
mvn clean verifyfrom the reactor root. Review the output for version convergence warnings, plugin conflicts, or missing dependencies. The build exit code must be 0.
Checkpoint: Confirm that all modules compile, all tests pass, and no module shows [WARNING] Found dependency conflict. Check that inter-module dependencies resolve correctly (e.g., my-api depends on my-core, my-service depends on my-api).
- Diagnostic Resolution — When builds fail or behave unexpectedly, use Maven's diagnostic commands:
mvn help:effective-pomto see the resolved POM after interpolation and inheritance,mvn dependency:tree -Dverbosefor full transitive resolution details, andmvn help:evaluate -Dexpression=propertyNameto inspect property values.
Checkpoint: Every dependency conflict must have an explicit <exclusion> in the module that introduces it, accompanied by a comment explaining why.
Implementation Patterns / Reference Guide
Pattern 1: Parent POM with Dependency and Plugin Management
A parent POM defines shared configuration while child modules inherit and specialize. The reactor build processes all modules in declaration order, resolving inter-module dependencies automatically.
Pattern 2: Child Module POM with Dependencies
Child modules inherit everything from the parent. They only declare their own specific dependencies and plugin executions, never specifying versions for managed dependencies.
This is the start of the file. Read the full SKILL.md on GitHub.
Security
- Security scanPassed, 93 of 100Pattern checks on the skill's files.
- Model reviewNot runA model review is scheduled for the next rescan.
Quality evaluation
- Task evaluationNot runNo evaluation yet. Run one in Skill Studio.
Source
- SKILL.md in the repositoryCheckingskills/coding/maven-build-system/SKILL.md
Popularity
- Repository stars
- 4
- 7-day trend score
- 8
Stars and forks are for the whole GitHub repository, not this skill alone. Refreshed 26 Jul 2026, 4 months ago.
Works with
Any agent vskill installs to: 56 targets in all. These 39 have a page on this site.
- Claude Code
- Cursor
- GitHub Copilot
- Windsurf
- Codex
- Gemini CLI
- Cline
- Amp
- Roo Code
- Goose
- Continue
- Kilo Code
- Junie
- Trae
- OpenHands
- Qwen Code
- AI Agent
- Tabnine Chat
- Sourcegraph Cody
- Amazon Q
- Firebase Genkit
- Sweep
- Devin
- Phind
- Mentat
- Claude Desktop
- Aider
- GPT Pilot
- Plandex
- bolt.new
- v0
- Replit Agent
- Anse
- TypingMind
- BetterChatGPT
- LibreChat
- Warp AI
- Pieces
- Fig AI
Embed badge
[](https://verified-skill.com/skills/paulpas/agent-skill-router/maven-build-system)