<build> <plugins> <plugin> <groupId>org.springframework.boot</groupId> <artifactId>spring-boot-maven-plugin</artifactId> <version>2.0.1.RELEASE</version> <executions> <execution> <goals> <goal>repackage</goal> </goals> </execution> </executions> </plugin> </plugins> </build>
直接在POM.xml 加上这段,clean ,install 。 不需要任何别的操作
IDEA 对spring boot Maven 项目打 Jar 包
原文:https://www.cnblogs.com/chuyuan/p/11731753.html