Development
112-java-maven-plugins - Claude MCP Skill
Use when you need to add or configure Maven plugins in your pom.xml — including quality tools (enforcer, surefire, failsafe, jacoco, pitest, spotbugs, pmd), security scanning (OWASP), code formatting (Spotless), version management, container image build (Jib), build information tracking, and benchmarking (JMH) — through a consultative, modular step-by-step approach that only adds what you actually need. This should trigger for requests such as Add Maven plugins in pom.xml; Improve Maven plugins in pom.xml. Part of cursor-rules-java project
SEO Guide: Enhance your AI agent with the 112-java-maven-plugins tool. This Model Context Protocol (MCP) server allows Claude Desktop and other LLMs to use when you need to add or configure maven plugins in your pom.xml — including quality tools (enfor... Download and configure this skill to unlock new capabilities for your AI workflow.
Documentation
SKILL.md# Maven Plugins: pom.xml Configuration Best Practices Configure Maven plugins and profiles in pom.xml using a structured, question-driven process that preserves existing configuration. **This is an interactive SKILL**. **What is covered in this Skill?** Maven plugins: - Maven Compiler - Maven Enforcer - Maven Surefire - Maven Failsafe - HTML test reports (Surefire Report, JXR) - Maven Spotless - Maven Flatten - Maven Versions - Maven Git Commit ID - Maven Jib Maven profiles: - JaCoCo (code coverage) - PiTest (mutation testing) - Security (OWASP dependency check) - Static analysis (SpotBugs, PMD) - SonarQube/SonarCloud - JMH (Java Microbenchmark Harness) - Cyclomatic complexity ## Constraints Before applying plugin recommendations, ensure the project is in a valid state. Use a structured, question-driven process that preserves existing configuration and adds only what the user selects. - **MANDATORY**: Run `./mvnw validate` or `mvn validate` before applying any plugin recommendations - **SAFETY**: If validation fails, stop and ask the user to fix issues—do not proceed until resolved - **SCOPE**: Begin with Step 1 (existing configuration analysis) before any changes. Never remove or replace existing plugins; only add new ones that do not conflict - **BEFORE APPLYING**: Read the reference for detailed plugin configurations, XML templates, and constraints for each step ## When to use this skill - Add Maven plugins in pom.xml - Improve Maven plugins in pom.xml ## Workflow 1. **Validate project before plugin changes** Run `./mvnw validate` or `mvn validate` and stop if validation fails. 2. **Analyze current plugin and profile configuration** Start with existing configuration analysis to identify what is already declared and avoid conflicts or replacement. 3. **Read plugin reference and collect selections** Read `references/112-java-maven-plugins.md`, then use a question-driven flow to select only needed plugins/profiles. 4. **Add non-conflicting plugin configuration** Add selected plugins and profiles without removing existing ones, preserving project structure and compatibility. 5. **Summarize applied plugin setup** Report added plugins/profiles, rationale, and recommended follow-up commands or checks. ## Reference For detailed guidance, examples, and constraints, see [references/112-java-maven-plugins.md](references/112-java-maven-plugins.md).
Signals
Information
- Repository
- jabrena/cursor-rules-java
- Author
- jabrena
- Last Sync
- 5/9/2026
- Repo Updated
- 5/8/2026
- Created
- 3/1/2026
Reviews (0)
No reviews yet. Be the first to review this skill!
Related Skills
upgrade-nodejs
Upgrading Bun's Self-Reported Node.js Version
cursorrules
CrewAI Development Rules
Confidence Check
Pre-implementation confidence assessment (≥90% required). Use before starting any implementation to verify readiness with duplicate check, architecture compliance, official docs verification, OSS references, and root cause identification.
code-review
Perform thorough code reviews with security, performance, and maintainability analysis. Use when user asks to review code, check for bugs, or audit a codebase.
Related Guides
Python Django Best Practices: A Comprehensive Guide to the Claude Skill
Learn how to use the python django best practices Claude skill. Complete guide with installation instructions and examples.
Mastering Python Development with Claude: A Complete Guide to the Python Skill
Learn how to use the python Claude skill. Complete guide with installation instructions and examples.
Mastering VSCode Extension Development with Claude: A Complete Guide to the TypeScript Extension Dev Skill
Learn how to use the vscode extension dev typescript Claude skill. Complete guide with installation instructions and examples.