Closed GoogleCodeExporter closed 9 years ago
[deleted comment]
Hi!
Can you please share an example project which exhibits this behaviour, so we
can
debug it?
Thanks,
Hugo
Original comment by hugo.josefson.old@gmail.com
on 14 Apr 2010 at 6:25
Here's a pom that provokes the problem. No need for actual project files,
because the
dependency itself provokes it. Yes I know the dependency included is a mess,
and that
project is working on becoming more modular, but it would be nice if the one-jar
plugin would be able to detect this type of issue. I patched a local version to
just
catch and report exceptions from putting files in the jar instead of halting
execution, and that works for my immediate purposes:
private void addToZip(JarOutputStream out, ZipEntry entry, InputStream in)
throws
IOException {
try {
out.putNextEntry(entry);
IOUtils.copy(in, out);
out.closeEntry();
} catch (Exception e) {
getLog().error("Caught exception adding " + entry, e);
}
}
Original comment by mdellabi...@gmail.com
on 14 Apr 2010 at 4:18
Attachments:
[deleted comment]
I can't reproduce the error based on the pom you attached.
The error I receive says the dependency org.fcrepo:fcrepo-client-admin:jar:3.3
can't
be found in any repo. (I also tried re-enabling the disabled repos in the pom.)
Please deploy org.fcrepo:fcrepo-client-admin:jar:3.3 to a repository, and give
the
URL to where it is hosted.
Thanks,
Hugo
Original comment by hugo.josefson.old@gmail.com
on 15 Apr 2010 at 2:59
I too have the same problem:
[INFO] One-Jar file: /home/andy/workspace/SysMon2/target/SysMon-2.0.one-jar.jar
[ERROR]
java.util.zip.ZipException: duplicate entry: lib/log4j-1.2.14.jar
at java.util.zip.ZipOutputStream.putNextEntry(ZipOutputStream.java:192)
I am attaching the pom.xml and the dependency tree
[INFO] | +- org.tmatesoft:svnkit:jar:1.1.2:compile
[INFO] | | \- ch.ethz.ganymed:ganymed-ssh2:jar:build210:compile
*** [INFO] | +- log4j:log4j:jar:1.2.14:compile
...
INFO] | | | \- jboss:jboss-common-core:jar:2.0.2.GA:compile
*** [INFO] | | +- apache-log4j:log4j:jar:1.2.14:compile
$ mvn -version
Apache Maven 2.2.1 (r801777; 2009-08-06 14:16:01-0500)
Java version: 1.7.0-ea
Java home: /opt/jdk1.7.0/jre
Default locale: en_US, platform encoding: UTF-8
OS name: "linux" version: "2.6.32.12-115.fc12.x86_64" arch: "amd64" Family:
"unix"
Original comment by hazlorea...@gmail.com
on 24 May 2010 at 4:21
Attachments:
This issue was closed by revision r76.
Original comment by hugo.josefson.old@gmail.com
on 24 May 2010 at 6:43
Original comment by hugo.josefson.old@gmail.com
on 24 May 2010 at 6:48
I think I have fixed it in version 1.4.2 now, so please try that version.
Thanks,
Hugo
Original comment by hugo.josefson.old@gmail.com
on 24 May 2010 at 7:11
Ok great it works with 1.4.2
Original comment by hazlorea...@gmail.com
on 25 May 2010 at 4:45
Thank you for verifying that.
Original comment by hugo.josefson.old@gmail.com
on 25 May 2010 at 6:38
Original issue reported on code.google.com by
mdellabi...@gmail.com
on 13 Apr 2010 at 9:38