Greetings:
Earlier I had posted about getting duplicate .class files in a
Jar-with-dependencies. The fix I found was to exclude the
${project.groupId}:${project.artifactId} from the current project.
However, I am getting duplicates it seems from transitively dependent
JARs and am finding it difficult (ie, not yet possible from what I've
done) to exclude them. Can someone please help with not getting the
duplicate .class files in a jar-with dependencies? The reasoning for
this is I need to obfuscate the JAR (I am using a the antrun plugin
with YGuard for this).
My setup:
Windows XP 32bit
Maven 2.0.8
Java 1.6.0_07
Here is my assembly descriptor
<assembly>
<id>jar-with-dependencies</id>
<formats>
<format>jar</format>
</formats>
<includeBaseDirectory>false</includeBaseDirectory>
<dependencySets>
<dependencySet>
<unpack>true</unpack>
<scope>runtime</scope>
<excludes>
<exclude>com.mobilvox.endGroupId:${project.artifactId}</exclude>
</excludes>
</dependencySet>
</dependencySets>
<fileSets>
<fileSet>
<directory>target/classes</directory>
<outputDirectory>/</outputDirectory>
</fileSet>
</fileSets>
</assembly>
I have tried adding this to maybe remove a duplicate:
<exclude>nu.xom:javax</exclude>
It did not work, and my duplicates are still coming from javax.xml and
javax.transaction.
Thanks in advance,
--
Adam
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]