[CLJ-1161] sources jar has bad versions.properties resource Created: 11/Feb/13 Updated: 21/Apr/14
|Affects Version/s:||Release 1.4, Release 1.5|
|Fix Version/s:||Release 1.6, Release 1.7|
|Reporter:||Steve Miner||Assignee:||Stuart Halloway|
The "sources" jar (at least since Clojure 1.4 and including 1.5 RC) has a bad version.properties file in it. The resource clojure/version.properties is literally:
The regular Clojure jar has the correct version string in that resource.
I came across a problem when I was experimenting with the sources jar (as used by IDEs). I naively added the sources jar to my classpath, and Clojure died on start up. The bad clojure/versions.properties file was found first, which led to a parse error as the clojure version was being set.
Solution: patch leaves version.properties file out of sources JAR, where it causes problems for tools.
|Comment by Steve Miner [ 11/Feb/13 10:04 AM ]|
Notes from the dev mailing list:
The "sources" JAR is generated by another Maven plugin, configured here:
The simplest solution might be to just exclude the file from the sources jar. It looks like maven-source-plugin has an excludes option which would do the trick:
|Comment by Jeff Valk [ 21/Apr/14 8:20 AM ]|
This issue is marked closed, but I'm still seeing it: the clojure-1.6.0-sources.jar, clojure-1.5.1-sources.jar, etc on Maven Central still contain the bad version.properties files. More specifically, it looks like the fix has been applied to builds in the SNAPSHOTS repository, but not to RELEASES.