I was trying to mvn install
org.clojure/clojure repo today for 1.9.0 and keep getting:
compile-clojure:
[java] Exception in thread "main" java.lang.ExceptionInInitializerError
[java] at clojure.lang.Compile.<clinit>(Compile.java:29)
[java] Caused by: java.lang.NumberFormatException: null, compiling:(clojure/core.clj:6973:1)
[java] at clojure.lang.Compiler.load(Compiler.java:7526)
[java] at clojure.lang.RT.loadResourceScript(RT.java:379)
[java] at clojure.lang.RT.loadResourceScript(RT.java:370)
[java] at clojure.lang.RT.load(RT.java:460)
[java] at clojure.lang.RT.load(RT.java:426)
[java] at clojure.lang.RT.doInit(RT.java:468)
[java] at clojure.lang.RT.<clinit>(RT.java:336)
[java] ... 1 more
[java] Caused by: java.lang.NumberFormatException: null
[java] at java.lang.Integer.parseInt(Integer.java:453)
[java] at java.lang.Integer.valueOf(Integer.java:581)
[java] at clojure.core$eval4181.invokeStatic(core.clj:6985)
[java] at clojure.core$eval4181.invoke(core.clj:6975)
[java] at clojure.lang.Compiler.eval(Compiler.java:7062)
[java] at clojure.lang.Compiler.load(Compiler.java:7514)
[java] ... 7 more
I’ve tried with jdk 7, 8, 11 on mac - 7 & 8 get above, 11 has different issues
any reason ? do I have to try jdk 6?
wondering if this is a known thing
did you mess with the version number
yes
well there you go
I didn’t want to replace “real one”
but can’t change version so easily huh
I had like 1.9.0-mine
you can, but has to match the pattern
I see
I often just use 1.11.0-master-SNAPSHOT when I'm doing local installs
(or whatever snapshot version makes sense)
not using a "real" release number makes it far less likely I'll overlap something that actually gets released (and snapshots will get replaced by real snapshots eventually)
yes, that makes sense
thanks for input - I should have indeed read compiling:(clojure/core.clj:6973:1)
this line too to realize it was version number issue
if you want a faster build, mvn clean install -Dmaven.test.skip=true
can help
thanks - yeah, I wanted to skip tests as well for my purposes