diff --git a/spring-bootstrap-samples/pom.xml b/spring-bootstrap-samples/pom.xml
index a69ec9ce364..bdd0ce12334 100644
--- a/spring-bootstrap-samples/pom.xml
+++ b/spring-bootstrap-samples/pom.xml
@@ -28,6 +28,18 @@
+ org.codehaus.mojo
+ exec-maven-plugin
+
+ true
+ ${start-class}
+
+
+
+
+
+
+
maven-dependency-plugin
@@ -64,6 +76,7 @@
+
maven-assembly-plugin
@@ -89,14 +102,8 @@
-
- org.codehaus.mojo
- exec-maven-plugin
-
- true
- ${start-class}
-
-
+
+
org.apache.maven.plugins
maven-shade-plugin
@@ -154,6 +161,14 @@
+
+
+ ${project.groupId}
+ spring-bootstrap-maven-plugin
+ ${project.version}
+ true
+ true
+
maven-deploy-plugin
diff --git a/spring-bootstrap-samples/spring-bootstrap-batch-sample/pom.xml b/spring-bootstrap-samples/spring-bootstrap-batch-sample/pom.xml
index d254ee71ef6..5fe21aa70a9 100644
--- a/spring-bootstrap-samples/spring-bootstrap-batch-sample/pom.xml
+++ b/spring-bootstrap-samples/spring-bootstrap-batch-sample/pom.xml
@@ -8,10 +8,7 @@
0.5.0.BUILD-SNAPSHOT
spring-bootstrap-batch-sample
- jar
-
- org.springframework.bootstrap.sample.simple.SimpleBootstrapApplication
-
+ executable-jar
${project.groupId}
@@ -36,14 +33,4 @@
runtime
-
-
-
- maven-dependency-plugin
-
-
- maven-assembly-plugin
-
-
-
diff --git a/spring-bootstrap-samples/spring-bootstrap-data-sample/pom.xml b/spring-bootstrap-samples/spring-bootstrap-data-sample/pom.xml
index 0e13dff5567..9e50bf22c46 100644
--- a/spring-bootstrap-samples/spring-bootstrap-data-sample/pom.xml
+++ b/spring-bootstrap-samples/spring-bootstrap-data-sample/pom.xml
@@ -8,10 +8,7 @@
0.5.0.BUILD-SNAPSHOT
spring-bootstrap-data-sample
- jar
-
- org.springframework.bootstrap.sample.data.DataBootstrapApplication
-
+ executable-jar
${project.groupId}
@@ -69,14 +66,4 @@
runtime
-
-
-
- maven-dependency-plugin
-
-
- maven-assembly-plugin
-
-
-
diff --git a/spring-bootstrap-samples/spring-bootstrap-jetty-sample/pom.xml b/spring-bootstrap-samples/spring-bootstrap-jetty-sample/pom.xml
index 20d8c858c3c..07713f3bd05 100644
--- a/spring-bootstrap-samples/spring-bootstrap-jetty-sample/pom.xml
+++ b/spring-bootstrap-samples/spring-bootstrap-jetty-sample/pom.xml
@@ -8,10 +8,7 @@
0.5.0.BUILD-SNAPSHOT
spring-bootstrap-jetty-sample
- jar
-
- org.springframework.bootstrap.sample.jetty.JettyBootstrapApplication
-
+ executable-jar
${project.groupId}
@@ -43,14 +40,4 @@
runtime
-
-
-
- maven-dependency-plugin
-
-
- maven-assembly-plugin
-
-
-
diff --git a/spring-bootstrap-samples/spring-bootstrap-profile-sample/pom.xml b/spring-bootstrap-samples/spring-bootstrap-profile-sample/pom.xml
index 227e2856680..9ef9724ed51 100644
--- a/spring-bootstrap-samples/spring-bootstrap-profile-sample/pom.xml
+++ b/spring-bootstrap-samples/spring-bootstrap-profile-sample/pom.xml
@@ -8,10 +8,7 @@
0.5.0.BUILD-SNAPSHOT
spring-bootstrap-profile-sample
- jar
-
- org.springframework.bootstrap.sample.simple.SimpleBootstrapApplication
-
+ executable-jar
${project.groupId}
@@ -29,14 +26,4 @@
runtime
-
-
-
- maven-dependency-plugin
-
-
- maven-assembly-plugin
-
-
-
diff --git a/spring-bootstrap-samples/spring-bootstrap-simple-sample/pom.xml b/spring-bootstrap-samples/spring-bootstrap-simple-sample/pom.xml
index 809fd74309d..b9c5b9ece22 100644
--- a/spring-bootstrap-samples/spring-bootstrap-simple-sample/pom.xml
+++ b/spring-bootstrap-samples/spring-bootstrap-simple-sample/pom.xml
@@ -8,10 +8,7 @@
0.5.0.BUILD-SNAPSHOT
spring-bootstrap-simple-sample
- jar
-
- org.springframework.bootstrap.sample.simple.SimpleBootstrapApplication
-
+ executable-jar
${project.groupId}
@@ -24,14 +21,4 @@
runtime
-
-
-
- maven-dependency-plugin
-
-
- maven-assembly-plugin
-
-
-
diff --git a/spring-bootstrap-samples/spring-bootstrap-tomcat-sample/pom.xml b/spring-bootstrap-samples/spring-bootstrap-tomcat-sample/pom.xml
index 0f5e0c50b71..cbe9ced5bef 100644
--- a/spring-bootstrap-samples/spring-bootstrap-tomcat-sample/pom.xml
+++ b/spring-bootstrap-samples/spring-bootstrap-tomcat-sample/pom.xml
@@ -8,10 +8,7 @@
0.5.0.BUILD-SNAPSHOT
spring-bootstrap-tomcat-sample
- jar
-
- org.springframework.bootstrap.sample.tomcat.TomcatBootstrapApplication
-
+ executable-jar
${project.groupId}
@@ -36,14 +33,4 @@
runtime
-
-
-
- maven-dependency-plugin
-
-
- maven-assembly-plugin
-
-
-
diff --git a/spring-bootstrap-samples/spring-bootstrap-xml-sample/pom.xml b/spring-bootstrap-samples/spring-bootstrap-xml-sample/pom.xml
index 31943bf1e2f..8bf8a520f7b 100644
--- a/spring-bootstrap-samples/spring-bootstrap-xml-sample/pom.xml
+++ b/spring-bootstrap-samples/spring-bootstrap-xml-sample/pom.xml
@@ -8,7 +8,7 @@
0.5.0.BUILD-SNAPSHOT
spring-bootstrap-xml-sample
- jar
+ executable-jar
${project.groupId}
diff --git a/spring-bootstrap-starters/pom.xml b/spring-bootstrap-starters/pom.xml
index 9ca8756f518..5867cea47fb 100644
--- a/spring-bootstrap-starters/pom.xml
+++ b/spring-bootstrap-starters/pom.xml
@@ -108,8 +108,19 @@
+
+
+
+ org.springframework.bootstrap
+ spring-bootstrap-maven-plugin
+ ${spring.bootstrap.version}
+ true
+ true
+
+
+
org.codehaus.mojo
exec-maven-plugin
@@ -118,6 +129,8 @@
${start-class}
+
+
org.apache.maven.plugins
maven-shade-plugin