maven-build-lifecycle
Run and iterate on Maven builds in a way that quickly surfaces the *next* failing module/test, and ensures fixes are delivered as patch_{i}.diff files and applied.
- License 许可
- Apache-2.0
- 最近更新
- 2026-11-14
- Stars
- ★ 0
- Forks
- 1
01 前言 Front Matter
- name
- maven-build-lifecycle
- description
- Run and iterate on Maven builds in a way that quickly surfaces the *next* failing module/test, and ensures fixes are delivered as patch_{i}.diff files and applied.
03 SKILL.md 正文
Steps
- From the repo root (
/home/travis/build/failed/<repo>/<id>), run a full build with useful diagnostics:mvn -e -DtrimStackTrace=false test(orverifyif that is what CI runs).
- When the reactor fails, immediately identify the failing module and failure type:
- Compilation error: note the exact missing symbol/class and the file/line.
- Test failure: note the test class/method and the surefire report path under
*/target/surefire-reports/.
- Narrow the feedback loop to the failing module:
mvn -pl :<artifactId> -am test- If it’s a single test:
mvn -pl :<artifactId> -Dtest=VisibilityTest#effectiveClassVisibility test
- Confirm the failure by reading the exact assertion/error line from the report (don’t rely on memory):
sed -n '1,200p' <module>/target/surefire-reports/*.txt(or open the specific...Test.txt).
- Inspect both:
- the failing test source (to capture expected behavior), and
- the implementation under test (to see actual logic).
- Write the analysis + concrete plan to
/home/travis/build/failed/failed_reasons.txtbefore changing code (so Step 2 is grounded). - Implement the fix, then re-run the narrowed build (Step 3) until green, then re-run the full build.
- Produce a diff file for each logical change set:
git diff > patch_2.diff(and subsequentpatch_{i}.diff)- Move it to
/home/travis/build/failed/<repo>/<id>/patch_{i}.diff.
- Apply the diff(s) to the working tree (ensuring Step 3 is actually completed):
git apply patch_2.diff(orgit apply /home/travis/.../patch_2.diff)- Re-run the same Maven command used to validate.
Expected Result
You can reliably (a) reproduce the failure, (b) fix it with a tight Maven command, and (c) provide and apply patch_{i}.diff files that make the full Maven build succeed.
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