no main manifest attribute, in xxx.jar
程序员文章站
2022-04-27 23:43:16
...
在Linux中,用java -jar xxx.jar启动的时候,报错:
no main manifest attribute, in xxx.jar
查找资料发现, 是打包的时候,需要在pom.xml文件中加入:
<plugin>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-maven-plugin</artifactId>
</plugin>
推荐阅读
-
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