java-maven — Claude Code skill: what it does, how to install
Configures Maven POM files and manages dependencies using BOMs directly through your AI agent.
npx skills add pluginagentmarketplace/custom-plugin-java --skill java-maven -a claude-codeWhat java-maven does
This skill guides coding agents through building Java projects with Apache Maven. It supports three layout types: single modules, multi-module setups, and libraries. The agent learns how to navigate phases from validate to deploy, hook build plugins, and structure dependencies.
The skill provides practical recipes for inspecting packages and fixing build issues. When library versions collide, it applies BOM imports or maven-enforcer-plugin. If a build process runs out of memory, it directs the environment to set MAVEN_OPTS=-Xmx1g. The agent relies on Read, Write, Bash, Glob, and Grep access to execute build commands.
What it helps with
- Configure
pom.xmlfiles for single-module or multi-module Java projects - Pin third-party library versions using dependency BOM imports
- Detect undeclared or unused packages via
mvn dependency:analyze - Fix build memory exhaustion by configuring
MAVEN_OPTS
Example prompts for the agent
- Inspect the dependency tree in this repo and check for version conflicts
- Set up a
pom.xmlfile targeting Java 21 with Spring Boot BOM dependencies - Run a batch build verification using
mvn -B verify
How to install java-maven
1Skills CLI (Vercel)
npx skills add pluginagentmarketplace/custom-plugin-java --skill java-maven -a claude-code2Manually: put the files in place
~/.claude/skills/java-maven/SKILL.mdCopy the whole skill folder; for one project use .claude/skills/java-maven/
1Skills CLI (Vercel)
npx skills add pluginagentmarketplace/custom-plugin-java --skill java-maven -a codex2Manually: put the files in place
.agents/skills/java-maven/SKILL.mdFor all projects use ~/.agents/skills/
1Skills CLI (Vercel)
npx skills add pluginagentmarketplace/custom-plugin-java --skill java-maven -a cursor2Manually: put the files in place
.cursor/skills/java-maven/SKILL.mdCursor also reads .agents/skills/ and .claude/skills/
1GitHub CLI
gh skill install pluginagentmarketplace/custom-plugin-java java-maven2Manually: put the files in place
.github/skills/java-maven/SKILL.md1Skills CLI (Vercel)
npx skills add pluginagentmarketplace/custom-plugin-java --skill java-maven -a gemini-cli2Platform CLI
gemini skills install https://github.com/pluginagentmarketplace/custom-plugin-java --path skills/java-mavenManually: put the files in place
.devin/skills/java-maven/SKILL.mdThe legacy .windsurf/skills/ path still works
Skills CLI (Vercel)
npx skills add pluginagentmarketplace/custom-plugin-java --skill java-maven -a opencodeClaude.ai
Zip the folder and upload it in Settings → Capabilities → Skills
Step by step, with commands for each platform: How to install skills in Claude Code: five ways
Questions about java-maven
How do I install java-maven in Claude Code?
Run npx skills add pluginagentmarketplace/custom-plugin-java --skill java-maven -a claude-code. The file will be saved to ~/.claude/skills/java-maven/SKILL.md.
What does the java-maven skill do?
It provides templates and patterns for POM file authoring, lifecycle phase management, BOM dependencies, and build troubleshooting.
Which project structures does this skill support?
It supports three project types via parameter validation: single, multi_module, and library.