no main manifest attribute, in from_yqb-1.0-SNAPSHOT.jar
时间: 2023-11-07 20:15:03 浏览: 202
"no main manifest attribute, in from_yqb-1.0-SNAPSHOT.jar"是一个错误描述,它表示在from_yqb-1.0-SNAPSHOT.jar中缺少主清单属性。这个错误通常发生在使用Maven构建Java应用程序时。为了解决这个问题,你可以在Maven的插件配置中指定启动类的主类,例如使用spring-boot-maven-plugin插件,在配置中设置mainClass属性为你的启动类的全限定名。同时,你还可以在插件的执行过程中使用repackage目标来将依赖的包打包到生成的Jar包中。这样,重新构建并运行Jar包时,就能够正确找到主清单属性了。<span class="em">1</span><span class="em">2</span><span class="em">3</span>
#### 引用[.reference_title]
- *1* *2* [no main manifest attribute, in testProject-1.0-SNAPSHOT.jar](https://blog.csdn.net/weixin_30591551/article/details/97999506)[target="_blank" data-report-click={"spm":"1018.2226.3001.9630","extra":{"utm_source":"vip_chatgpt_common_search_pc_result","utm_medium":"distribute.pc_search_result.none-task-cask-2~all~insert_cask~default-1-null.142^v93^chatsearchT3_2"}}] [.reference_item style="max-width: 50%"]
- *3* [no main manifest attribute, in /microservice-discovery-eureka-1.0-SNAPSHOT.jar](https://blog.csdn.net/zzw_17600691357/article/details/118248256)[target="_blank" data-report-click={"spm":"1018.2226.3001.9630","extra":{"utm_source":"vip_chatgpt_common_search_pc_result","utm_medium":"distribute.pc_search_result.none-task-cask-2~all~insert_cask~default-1-null.142^v93^chatsearchT3_2"}}] [.reference_item style="max-width: 50%"]
[ .reference_list ]
阅读全文