springboot打包jar中没有主清单属性,在pom.xml中添加如下设置
<build>
<plugins>
<plugin>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-maven-plugin</artifactId>
</plugin>
</plugins>
</build>
然后输入mvn install
就会重新打包,完毕
springboot打包jar中没有主清单属性,在pom.xml中添加如下设置
<build>
<plugins>
<plugin>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-maven-plugin</artifactId>
</plugin>
</plugins>
</build>
然后输入mvn install
就会重新打包,完毕
SpringBoot项目打包成war包
SpringBoot 动态加载 jar 包,动态配置方案
看pom.xml。将同事写的一个java项目打包成jar包,发布,运行提示没有主清单属性。究其原因
老人遇到新问题。先参考如下几篇文章
问题: 解决方案1.修改pom.xml文件的build标签为该标签作用:添加一个SpringBoot的构建的插件<build> <plugins> <plugin> <!-- Build an executable JAR --> <
举报文章
请选择举报类型
补充说明
0/200
上传截图
格式支持JPEG/PNG/JPG,图片不超过1.9M