springboot项目打包没有主清单属性?
springboot项目在打包时(本处用ide,跟编译器无关)运行jar包没有主清单属性?
解决方法:修改pom.xml文件如下图所示:
完整pom代码:
<build>
<plugins>
<plugin>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-maven-plugin</artifactId>
<executions>
<execution>
<goals>
<goal>repackage</goal>
</goals>
</execution>
</executions>
</plugin>
</plugins>
</build>