112-java-maven-plugins
涵盖测试、覆盖、扫描与镜像构建插件,帮助完善 CI/CD 构建链路。
配置常用 Maven 插件(测试、覆盖、安全、容器构建等)及最佳实践。
按需在 pom.xml 中添加或配置常用 Maven 插件:编译、测试(Surefire/Failsafe)、覆盖率(JaCoCo)、静态检查(SpotBugs/PMD)、代码格式(Spotless)、容器镜像(Jib)等。适合想把构建验证、代码质量和镜像构建流程自动化或改进现有配置时使用。以询问式、分步引入为原则,只加需要的功能,避免膨胀配置。
▸ 展开 SKILL.md 英文原文
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; Configure Maven quality plugins in pom.xml; Add Maven build lifecycle plugins for Java verification; Review Maven plugin versions and executions. Part of Plinth Toolkit
帮我安装这个 skill:https://raw.githubusercontent.com/jabrena/plinth/main/skills/112-java-maven-plugins/SKILL.mdcurl -fsSL "https://raw.githubusercontent.com/jabrena/plinth/main/skills/112-java-maven-plugins/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 ## Cons