maven-plugin-configuration
Use Maven plugin configuration and test tooling (Surefire/Failsafe/Compiler) to reproduce failures precisely, inspect reports, and avoid environment/tooling mismatches during diagnosis.
- License 许可
- Apache-2.0
- 最近更新
- 2026-11-14
- Stars
- ★ 0
- Forks
- 1
01 前言 Front Matter
- name
- maven-plugin-configuration
- description
- Use Maven plugin configuration and test tooling (Surefire/Failsafe/Compiler) to reproduce failures precisely, inspect reports, and avoid environment/tooling mismatches during diagnosis.
03 SKILL.md 正文
Steps
- For unit test failures, use Surefire’s report outputs as the source of truth:
- Find the exact failing assertion location in
<module>/target/surefire-reports/. - Re-run only the failing test/method:
mvn -pl :<module> -Dtest=VisibilityTest#effectiveClassVisibility test
- Find the exact failing assertion location in
- When a failure looks JDK/compiler-dependent, confirm the actual JDK Maven is using:
mvn -vand capture Java version + home infailed_reasons.txt.
- If classfile inspection is needed, avoid assuming
javapis onPATH:- Derive it from the JDK that provides
javac:
JAVAP="$(dirname "$(readlink -f "$(command -v javac)")")/javap"
then run:$JAVAP -v <class>
- Derive it from the JDK that provides
- Avoid investigation dead-ends caused by typos/mis-paths:
- Before reading a report/file, validate it exists:
test -f path && sed -n '1,120p' path - Prefer
ls <dir>then copy/paste the filename rather than retyping.
- Before reading a report/file, validate it exists:
- If the failing behavior is due to plugin/config differences (compiler args, source/target, annotation processing), check the effective configuration:
mvn -pl :<module> help:effective-pom(and search for the relevant plugin).
- Once fixed, validate both the narrow reproduction command and the full reactor build.
Expected Result
Failures are reproduced with a single focused Maven command, diagnostics come from verified report paths, JDK tooling is invoked reliably, and plugin/config differences are confirmed via the effective POM rather than guesswork.
04 同仓库更多 Skills
video-frame-extraction
Extract frames from video files and save them as images using OpenCV
openai-vision
Analyze images and multi-frame sequences using OpenAI GPT vision models
image-ocr
Extract text content from images using Tesseract OCR via Python, including structured field extraction from receipts and forms
video-frame-extraction
Extract frames from video files and save them as images using OpenCV
openai-vision
Analyze images and multi-frame sequences using OpenAI GPT vision models
image-ocr
Extract text content from images using Tesseract OCR via Python, including structured field extraction from receipts and forms