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
Copy file name to clipboardExpand all lines: spring-boot-project/spring-boot-docs/src/main/asciidoc/deployment.adoc
+4Lines changed: 4 additions & 0 deletions
Original file line number
Diff line number
Diff line change
@@ -404,6 +404,10 @@ Currently, some tools do not accept this format, so you may not always be able t
404
404
For example, `jar -xf` may silently fail to extract a jar or war that has been made fully executable.
405
405
It is recommended that you make your jar or war fully executable only if you intend to execute it directly, rather than running it with `java -jar`or deploying it to a servlet container.
406
406
407
+
CAUTION: A zip64-format jar file cannot be made fully executable.
408
+
Attempting to do so will result in a jar file that is reported as corrupt when executed directly or with `java -jar`.
409
+
A standard-format jar file that contains one or more zip64-format nested jars can be fully executable.
410
+
407
411
To create a '`fully executable`' jar with Maven, use the following plugin configuration:
Copy file name to clipboardExpand all lines: spring-boot-project/spring-boot-tools/spring-boot-loader/src/main/java/org/springframework/boot/loader/jar/CentralDirectoryEndRecord.java
Copy file name to clipboardExpand all lines: spring-boot-project/spring-boot-tools/spring-boot-loader/src/test/java/org/springframework/boot/loader/archive/JarFileArchiveTests.java
Copy file name to clipboardExpand all lines: spring-boot-project/spring-boot-tools/spring-boot-loader/src/test/java/org/springframework/boot/loader/jar/JarFileTests.java
0 commit comments