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
85
81%
Does it follow best practices?
Impact
Pending
No eval scenarios have been run
Passed
No known issues
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 profiles:
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.
./mvnw validate or mvn validate before applying any plugin recommendationsRun ./mvnw validate or mvn validate and stop if validation fails.
Start with existing configuration analysis to identify what is already declared and avoid conflicts or replacement.
Read references/112-java-maven-plugins.md, then use a question-driven flow to select only needed plugins/profiles.
Add selected plugins and profiles without removing existing ones, preserving project structure and compatibility.
Report added plugins/profiles, rationale, and recommended follow-up commands or checks.
For detailed guidance, examples, and constraints, see references/112-java-maven-plugins.md.
762cb86
If you maintain this skill, you can claim it as your own. Once claimed, you can manage eval scenarios, bundle related skills, attach documentation or rules, and ensure cross-agent compatibility.