diff --git a/spring-bootstrap-samples/pom.xml b/spring-bootstrap-samples/pom.xml
index a69ec9ce36..bdd0ce1233 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 d254ee71ef..5fe21aa70a 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 0e13dff556..9e50bf22c4 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 20d8c858c3..07713f3bd0 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 227e285668..9ef9724ed5 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 809fd74309..b9c5b9ece2 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 0f5e0c50b7..cbe9ced5be 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 31943bf1e2..8bf8a520f7 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 9ca8756f51..5867cea47f 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