technomancy/leiningen — Issue #348: "lein jar" fails when :java-source-path sits inside :source-path
Author: sritchie
Created: 2011-12-05 18:59:22+00:00
State: open

I put together an example project to show this in action: https://github.com/sritchie/lein-jar-issue-example

Basically, if you specify `:java-source-path "src/jvm"` and have any java files on the classpath, `lein jar` will fail with:

Exception in thread "main" java.util.zip.ZipException: duplicate entry: jvm/javatest/Hello.java (NO_SOURCE_FILE:0)
....lots of extra business...
Caused by: java.util.zip.ZipException: duplicate entry: jvm/javatest/Hello.java

I'm using

Leiningen 1.6.2 on Java 1.6.0_26 Java HotSpot(TM) 64-Bit Server VM