<build> <plugins><plugin>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-maven-plugin</artifactId><executions>
<execution>
<phase>package</phase>
<goals>
<goal>repackage</goal>
</goals>
</execution>
</executions>
<configuration>
<includeSystemScope>true</includeSystemScope>
<mainClass>com.xxx.xxx.xxx</mainClass>
</configuration>
</plugin></plugins> </build>
注意:
execution中内容很重要
转载:https://www.cnblogs.com/matoo-shi/p/12356873.html