You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Describe the bug
The JAR file produced by boot build when used in the default way produces a zip containing a corrupt metadata file (META-INF/MANIFEST.MF)
To Reproduce
Steps to reproduce the behavior:
Create a new boot project
boot -d boot/new new -t app -n myapp
cd myapp
boot run
Run boot build to generate a jar
Use unzip command to unzip the jar unzip target/myapp-0.1.0-SNAPSHOT-standalone.jar
Expected behavior
The jar file should unzip without error.
Actual
The JAR fails to unzip on this file:
inflating: META-INF/MANIFEST.MF bad CRC bd07333f (should be 5fbe64cb)
Desktop (please complete the following information):
OS: Mac OS X 10.14.6
BOOT_VERSION=2.8.3
BOOT_CLOJURE_VERSION=1.10.1
BOOT_CLOJURE_NAME=org.clojure/clojure
JDK 13 build 33 (2019/8/9)
Additional context
The JAR does run without issue using java -jar target/my-app.jar
Ran into this issue when deploying an app to Elastic Beanstalk, which unzips the jar using the unzip command
Reproduced the issue locally with my own app, and then with a brand new app using the instructions above.
After downgrading to JDK 1.8, it works.
Have not tested the JDK versions in between 13 and 1.8 (11, 12)
The text was updated successfully, but these errors were encountered:
This is probably related to [https://bugs.openjdk.java.net/browse/JDK-8233457]: "Writing out data with ZipFileSystem leads to a CRC failure in the generated jar file".
I noticed the same problem with JDK 11 starting with 11.0.4. The OpenJDK bug states that this is also present in JDK 13. Reverting to JDK 11.0.3 or JDK 8 worked for me. The fix is in JDK 11.0.6 and JDK 14 if I read the OpenJDK ticket correctly.
Describe the bug
The JAR file produced by
boot build
when used in the default way produces a zip containing a corrupt metadata file (META-INF/MANIFEST.MF
)To Reproduce
Steps to reproduce the behavior:
Run
boot build
to generate a jarUse
unzip
command to unzip the jarunzip target/myapp-0.1.0-SNAPSHOT-standalone.jar
Expected behavior
The jar file should
unzip
without error.Actual
The JAR fails to unzip on this file:
Desktop (please complete the following information):
Additional context
java -jar target/my-app.jar
unzip
commandThe text was updated successfully, but these errors were encountered: