在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>-->

猜你喜欢

转载自www.cnblogs.com/duanqiao123/p/12054154.html