112-java-maven-plugins

仓库创建 2025年2月9日最近提交 3 天前SkillHot 收录 21 天前
▸ 精选理由

涵盖测试、覆盖、扫描与镜像构建插件,帮助完善 CI/CD 构建链路。

这个 Skill 做什么

配置常用 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

开发编程Maven插件构建优化质量检测通用
423
Stars
89
Forks
40
仓库内 Skill
+9
7 日增星
安装 / 使用
给你的 Agent 一句话(通用)
帮我安装这个 skill:https://raw.githubusercontent.com/jabrena/plinth/main/skills/112-java-maven-plugins/SKILL.md
或 curl 直取 SKILL.md
curl -fsSL "https://raw.githubusercontent.com/jabrena/plinth/main/skills/112-java-maven-plugins/SKILL.md"
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
via SKILL·HOT · 数据来自 GitHub 公开信息 · 原文版权归作者所有