Open shaunr0b opened 5 years ago
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:
Create a new boot project
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
command