Skip to content

Commit d770566

Browse files
committed
Add a warning about fully executable archive
Closes gh-9574
1 parent b037d7a commit d770566

File tree

1 file changed

+6
-0
lines changed
  • spring-boot-tools/spring-boot-maven-plugin/src/main/java/org/springframework/boot/maven

1 file changed

+6
-0
lines changed

spring-boot-tools/spring-boot-maven-plugin/src/main/java/org/springframework/boot/maven/RepackageMojo.java

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -152,6 +152,12 @@ public class RepackageMojo extends AbstractDependencyFilterMojo {
152152
/**
153153
* Make a fully executable jar for *nix machines by prepending a launch script to the
154154
* jar.
155+
* <br/>
156+
* Currently, some tools do not accept this format so you may not always be able to
157+
* use this technique. For example, <code>jar -xf</code> may silently fail to extract
158+
* a jar or war that has been made fully-executable. It is recommended that you only
159+
* enable this option if you intend to execute it directly, rather than running it
160+
* with <code>java -jar</code> or deploying it to a servlet container.
155161
* @since 1.3
156162
*/
157163
@Parameter(defaultValue = "false")

0 commit comments

Comments
 (0)