dir
Hello all
clojure -X:depstar uberjar :jar geremy.jar :aliases '[:webassets]'
=> corrupt jarfile
It seems that inside jar is ok
@fabrao What do you mean by "corrupt jarfile"?
@fabrao ☝️:skin-tone-2: ?
sorry, I run this command and after try to run java -jar geremy.jar
and it shows up this
message
You need to read depstar
's readme more closely. It explains exactly this situation.
Create an uberjar by invoking depstar with the desired jar name:
clojure -X:depstar uberjar :jar MyProject.jar
An uberjar created by that command can be run as follows:
java -cp MyProject.jar clojure.main -m project.core
And in particular the next paragraph:
If you want to be able to use java -jar to run your uberjar, you'll need to specify the main class (namespace) in the uberjar and you'll probably want to AOT compile your main namespace. See the sections below for more information about both of those.
understood