no main manifest attribute, in xxx.jar
程序员文章站
2022-04-27 23:42:58
...
SpringBoot的web项目,执行完mvn clean package
命令后得到jar包,在使用java -jar xxx.jar
命令运行jar包时,报错:
no main manifest attribute, in xxx.jar
解决方法:
在项目的pom.xml文件中加入以下插件:
<plugin>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-maven-plugin</artifactId>
</plugin>
完美解决!
上一篇: html表格实现输入效果
下一篇: HTML常用标签及属性整理
推荐阅读
-
AttributeError: 'module' object has no attribute 'main'
-
pycharm安装 suds模块报错:AttributeError: module 'pip' has no attribute 'main'
-
解决pycharm问题:module 'pip' has no attribute 'main'
-
[DONE]pomelo npm-install 出现 AttributeError: 'module' object has no attribute 'script_main'
-
AttributeError: 'module' object has no attribute 'main'
-
no main manifest attribute, in /app.jar (jar中没有主清单属性 )
-
no main manifest attribute, in xxx.jar
-
no main manifest attribute, in testProject-1.0-SNAPSHOT.jar
-
no main manifest attribute, in testProject-1.0-SNAPSHOT.jar
-
jar启动no main manifest attribute, in .jar