Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

"Duplicate zip entry in xmlbeans-2.6.0.jar" causing sbt proguard:proguard to fail #9

Closed
lolski opened this issue Feb 18, 2015 · 1 comment

Comments

@lolski
Copy link

lolski commented Feb 18, 2015

On Mac OS X 10.10, sbt 0.13.6, scala 2.11.4 and Java 1.8, running sbt proguard:proguard will result in the following error:

[error] Error: Can't write [<app_path>/modules/<path>/target/scala-2.11/proguard/obfuscate] (Can't read [<home_folder>/.ivy2/cache/org.apache.xmlbeans/xmlbeans/jars/xmlbeans-2.6.0.jar(;;;;;;!META-INF/MANIFEST.MF)] (Duplicate zip entry [xmlbeans-2.6.0.jar:org/apache/xmlbeans/xml/stream/Location.class]))
java.lang.RuntimeException: Proguard failed with exit code [1]

It seems there is a few duplicate entries in xmlbeans-2.6.0.jar file which I have to manually remove in order for it to work.
Here a few examples of the offending files:

org/apache/xmlbeans/xml/stream/Location.class
org/apache/xmlbeans/xml/stream/ProcessingInstruction.class
org/apache/xmlbeans/xml/stream/XMLEvent.class
@pvlugter
Copy link
Member

The readme describes how to merge the inputs to resolve duplicates:

https://github.com/sbt/sbt-proguard#merging

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants