0
点赞
收藏
分享

微信扫一扫

xxxxx-0.0.1-SNAPSHOT.jar中没有主清单属性

zhoulujun 2022-10-22 阅读 177


1.springboot打包过程完成后,在cmd命令提示符窗口,使用 java -jar 命令执行生成的jar包时,出现 xxxxx-0.0.1-SNAPSHOT.jar中没有主清单属性 的情况

xxxxx-0.0.1-SNAPSHOT.jar中没有主清单属性_spring

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


举报

相关推荐

0 条评论