From d77056639d121334fd5dda3dc4677d5dfcfea5e3 Mon Sep 17 00:00:00 2001 From: Stephane Nicoll Date: Thu, 22 Jun 2017 10:49:01 +0200 Subject: [PATCH] Add a warning about fully executable archive Closes gh-9574 --- .../java/org/springframework/boot/maven/RepackageMojo.java | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/spring-boot-tools/spring-boot-maven-plugin/src/main/java/org/springframework/boot/maven/RepackageMojo.java b/spring-boot-tools/spring-boot-maven-plugin/src/main/java/org/springframework/boot/maven/RepackageMojo.java index e055f2c81051..9302eadc1505 100644 --- a/spring-boot-tools/spring-boot-maven-plugin/src/main/java/org/springframework/boot/maven/RepackageMojo.java +++ b/spring-boot-tools/spring-boot-maven-plugin/src/main/java/org/springframework/boot/maven/RepackageMojo.java @@ -152,6 +152,12 @@ public class RepackageMojo extends AbstractDependencyFilterMojo { /** * Make a fully executable jar for *nix machines by prepending a launch script to the * jar. + *
+ * Currently, some tools do not accept this format so you may not always be able to + * use this technique. For example, jar -xf may silently fail to extract + * a jar or war that has been made fully-executable. It is recommended that you only + * enable this option if you intend to execute it directly, rather than running it + * with java -jar or deploying it to a servlet container. * @since 1.3 */ @Parameter(defaultValue = "false")