解决部署报错No main manifest attribute, in XXX.jar
Posted 爱吃鱼的猫
tags:
篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了解决部署报错No main manifest attribute, in XXX.jar相关的知识,希望对你有一定的参考价值。
将build中的入口改为如下即可解决:
<plugin> <groupId>org.springframework.boot</groupId> <artifactId>spring-boot-maven-plugin</artifactId> <executions> <execution> <phase>package</phase> <goals> <goal>repackage</goal> </goals> </execution> </executions> <configuration> <includeSystemScope>true</includeSystemScope> <mainClass>com.xxx.xxx.xxx</mainClass> </configuration> </plugin>
注意:
execution中内容很重要
以上是关于解决部署报错No main manifest attribute, in XXX.jar的主要内容,如果未能解决你的问题,请参考以下文章
spring cloudIDEAMavenspring cloud多模块打包,打包的jar包只有几k,jar包无法运行,运行报错:no main manifest attribute, i
执行使用maven打包springboot的jar包提示“no main manifest attribute, in /XXX.jar“
解决报错问题:At least one JAR was scanned for TLDs yet contained no TLDs.
错误记录PyCharm 运行 Python 程序报错 ( PEP 8: W292 no newline at end of file )
执行yum clean all 报错了,一星期都还没解决 求大神指教
HBuilder报错文件查找失败:'./pages/info/info/info.vue' at main.js:3解决办法