Fork me on GitHub
#clojure-dev
<
2020-05-18
>
mikerod18:05:44

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

mikerod18:05:00

I’ve tried with jdk 7, 8, 11 on mac - 7 & 8 get above, 11 has different issues

mikerod18:05:10

any reason ? do I have to try jdk 6?

mikerod18:05:19

wondering if this is a known thing

ghadi18:05:06

did you mess with the version number

ghadi18:05:22

well there you go

mikerod18:05:29

I didn’t want to replace “real one”

mikerod18:05:39

but can’t change version so easily huh

mikerod18:05:58

I had like 1.9.0-mine

ghadi18:05:59

you can, but has to match the pattern

alexmiller18:05:33

I often just use 1.11.0-master-SNAPSHOT when I'm doing local installs

alexmiller18:05:45

(or whatever snapshot version makes sense)

alexmiller18:05:06

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)

mikerod18:05:23

yes, that makes sense

mikerod18:05:40

thanks for input - I should have indeed read compiling:(clojure/core.clj:6973:1) this line too to realize it was version number issue

alexmiller18:05:40

if you want a faster build, mvn clean install -Dmaven.test.skip=true can help

mikerod18:05:53

thanks - yeah, I wanted to skip tests as well for my purposes