slawekjaranowski opened a new pull request, #1029:
URL: https://github.com/apache/maven-enforcer/pull/1029

   The `enforce-bytecode-version-with-corrupted-jar` IT pulled 
`org.hibernate:hibernate-annotations:3.4.0.GA` only to have a jar it could 
corrupt. That artifact is used nowhere else in the build.
   
   - reuse `junit:junit:4.13.2`, which the IT already declares, and drop the 
extra dependency
   - `setup.groovy` corrupts `junit/junit/4.13.2/junit-4.13.2.jar`
   - `verify.groovy` removes the whole `junit/junit/4.13.2` directory from the 
local repository afterwards, so the following ITs resolve a clean artifact again
   - `invoker.ordinal` makes this IT run before the ones that also need junit
   
   Verified with `mvn verify -Prun-its 
-Dinvoker.test=enforce-bytecode-version-with-corrupted-jar`: the build fails as 
expected with `IOException while reading .../junit-4.13.2.jar`, and the local 
repository is left clean.
   
   🤖 Generated with [Claude Code](https://claude.com/claude-code)


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]

Reply via email to