Java patching
Techniques for applying security fixes to Java projects using git, diffs, and Maven.From its SKILL.md
npx -y skills add cxcscmu/SkillLearnBench --skill java-patchingAssembled from the repository path, not quoted from the project. Check it against their README if it does not work.
SKILL.md
0.8 KB, 160 tokens by cl100k_base, as published. Nobody here has run it
Java Security Patching Workflow
- Locate code: Identify the affected classes (e.g.,
*JavaScript*). - Develop the fix:
- Create a reproduction test first.
- Modify the source code to add validation (e.g., checking for restricted keywords or verifying configuration).
- Generate Patch:
git diff > ../patches/security-fix.patch - Build & Test:
- Apply using
git apply ../patches/security-fix.patchif necessary. - Run the build with
-DskipTests=falseinitially to verify the fix before running the production-like build.
- Apply using
- Rebuild: Use standard Apache Maven commands, skipping quality checks as requested for production stability.
What ships with it
Read from the repository
Just SKILL.md. No reference files, no scripts.