在idea中把springboot项目打成jar包遇到的问题(没有主清单属性)

正确的姿势:
<plugin>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-maven-plugin</artifactId>
<executions>
<execution>
<goals>
<goal>repackage</goal>
</goals>
</execution>
</executions>
</plugin>

错误的姿势:
<!--            <plugin>-->
<!-- <groupId>org.springframework.boot</groupId>-->
<!-- <artifactId>spring-boot-maven-plugin</artifactId>-->
<!-- <configuration>-->
<!-- <fork>true</fork>-->
<!-- <includeSystemScope>true</includeSystemScope>-->
<!-- <skip>true</skip>-->
<!-- </configuration>-->

<!-- <executions>-->
<!-- <execution>-->
<!-- <goals>-->
<!-- <goal>repackage</goal>-->
<!-- </goals>-->
<!-- </execution>-->
<!-- </executions>-->
<!-- </plugin>-->
posted @ 2019-12-17 13:56  Birdgeduan  阅读(1196)  评论(0编辑  收藏  举报