VelpulaGangavardhan opened a new pull request, #1807:
URL: https://github.com/apache/maven-mvnd/pull/1807
## Description
Fixes #1795.
The `mvnd-agent` module currently shades Javassist without relocating its
classes, which can cause classpath conflicts when another Javassist version is
present in the Maven build.
This change configures the Maven Shade Plugin to relocate the `javassist`
package to:
`org.mvndaemon.mvnd.shaded.javassist`
This keeps the agent's bundled Javassist isolated from other versions on the
classpath.
## Verification
- Built `mvnd-agent` successfully with:
`mvnw.cmd -pl agent -am package -DskipTests`
- Verified that Javassist classes in the shaded JAR are relocated under:
`org/mvndaemon/mvnd/shaded/javassist/`
## AI assistance
I used generative AI assistance while working on this contribution. I
reviewed and verified the resulting changes and remain responsible for the
contribution.
--
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]