增加打包成spring boot 可执行jar的相关maven配置,mvn clean package -Pboot
diff --git a/samples/pom.xml b/samples/pom.xml
index d046338..6a22daf 100644
--- a/samples/pom.xml
+++ b/samples/pom.xml
@@ -68,6 +68,27 @@
</dependencies>
</dependencyManagement>
+
+
+ <build>
+ <pluginManagement>
+ <plugins>
+ <plugin>
+ <groupId>org.springframework.boot</groupId>
+ <artifactId>spring-boot-maven-plugin</artifactId>
+ <executions>
+ <execution>
+ <id>boot-repackage</id>
+ <phase>package</phase>
+ <goals>
+ <goal>repackage</goal>
+ </goals>
+ </execution>
+ </executions>
+ </plugin>
+ </plugins>
+ </pluginManagement>
+ </build>
<modules>
<module>foo</module>