/maven:mavenfrom maven
Edits and debugs Maven builds in pom.xml, .mvn and mvnw projects: dependency management and BOM imports, NoSuchMethodError or duplicate jars from conflicting versions, multi-module reactor failures such as an unresolved sibling SNAPSHOT, plugin phases, annotation processors, settings.xml mirrors, pre-release dependency audits. Use when a pom.xml is changed, a mvn or mvnw command fails, or the user asks which module pulls in a library or to check dependencies for updates or vulnerabilities.
Ships in maven. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
Read when SKILL.md points to them.
Keep the build's existing contract (published coordinates, plugin executions, profiles, and what the build produces) unless the request changes it. Use the project's wrapper and its own pom settings, not a globally installed Maven.
Not for: Gradle builds (gradle), sbt (sbt), plain JUnit or Mockito tests (java-testing), Spring context and slice tests (spring-boot-testing), or Java code review and language questions (java).
Verified on 2026-10-20: Maven 3.9.16 is the latest 3.x release on Maven Central. Maven 4.0.0-rc-7 is the newest Maven 4 build and has no GA, so use Maven 4 behaviour only when the project already runs it.
pom.xml (<modules>, <parent>, <properties> such as maven.compiler.release), the failing module's pom, and .mvn/wrapper/maven-wrapper.properties for the Maven version../mvnw when it exists, otherwise mvn. Make claims about behaviour for the version the wrapper pins.mvn help:effective-pom -Doutput=target/effective-pom.xml and read the part you are changing.mvn -pl <module> -am -Dtest=ClassName test, and keep its output short by reading only the first [ERROR] block.~/.m2/settings.xml (see Credentials below).<dependencyManagement>, or by importing a BOM there with <type>pom</type> and <scope>import</scope>. Child modules list only groupId and artifactId.<dependencyManagement> entry beats an imported BOM. Among imports, the first one declared wins. Check this order when a BOM version seems to be ignored.mvn dependency:tree -Dverbose -Dincludes=<groupId>:<artifactId>. A line marked (omitted for conflict with X) lost the conflict. Two versions of one library on the classpath is the usual cause of NoSuchMethodError and NoClassDefFoundError.jackson-databind, jackson-core and jackson-annotations come from jackson-bom; SLF4J bindings come from one version.mvn dependency:analyze to find unused and undeclared dependencies, then verify each hit: runtime-only and annotation-only dependencies are false positives.dependencyConvergence rule only when the project wants conflicts to fail the build. See references/dependencies.md.-pl <module> -am so sibling modules build from the reactor. Running -pl api install alone resolves core:1.4.0-SNAPSHOT from a remote repository, which fails when it is not published. Add -amd to include modules that depend on a changed one.-rf :<artifactId> only when the earlier modules were built in this same change.<parent> must match the parent's coordinates, and relativePath defaults to ../pom.xml. A mismatch causes "Non-resolvable parent POM".<pluginManagement>. An unpinned plugin gives a warning and drifts with Maven updates.validate, compile, test, package, verify, install, deploy) and keep the order that the project already uses.<annotationProcessorPaths>. On JDK 23 and later, javac does not discover processors on the classpath by default.maven.compiler.release, not separate source and target, unless the project already does.-P <id>, a property or a JDK. Check mvn help:active-profiles before blaming one. See references/plugins.md.~/.m2/settings.xml. Refer to secrets by environment variable, as <password>${env.REPO_TOKEN}</password>, and never write a literal token into a pom or the repository.settings.xml, and do not run help:effective-settings with -DshowPasswords=true, which prints server passwords (they are masked by default); the effective settings still expose usernames and server layout, so share them only when asked.https URLs for mirrors.When a mvn run fails, read references/errors.md and match the first [ERROR] line to its usual cause before editing anything.
When asked to check dependencies, before a release, or after a security advisory, read references/audit.md. Report findings by severity and do not apply version updates until the user chooses which level to take.
mvn -pl <changed> -am validate, then the narrowest test that proves the change.mvn verify before calling the change done when it touches packaging, plugins, profiles or the reactor.dependency:tree before and after and state which versions moved.mvn command fails.What SKILL.md sets; muted values are Claude Code's defaults
Other plugins' skills for the same job
npx claudepluginhub adminhead/claude-plugins --plugin maven