The maven ant tasks currently creates a shaded jar that combines several of the
dependencies into one jar. While working on MANTTASKS-106 (using ant tasks
inside ant-run) I noticed that the plexus utils classes are relocated to
hidden.org.plexus.utils.
This causes classloader problems when calling the ant tasks inside ant run. For
example using maven 2.0.10 I get the following:
Caused by: java.lang.LinkageError: loader constraints violated when linking
hidden/org/codehaus/plexus/interpolation/ValueSource class
at
org.apache.maven.artifact.ant.AbstractArtifactTask.readSettings(AbstractArtifactTask.java:361)
If I remove the <relocations> config so that plexus utils are not renamed in the
jar, then MANTTASKS-106 is resolved, and the unit tests for the various tasks
still work fine. I tested with maven 2.0.6, 2.0.10, and 2.1.0 and all seem to
work ok.
Anyone know why the relocation config was added or any reason why I shouldn't
remove it?
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]