当前位置:网站首页>jar运行报错no main manifest attribute
jar运行报错no main manifest attribute
2022-07-06 09:05:00 【向涛歌学习】
jar运行报错no main manifest attribute
解决
排查之后发现是maven项目中的pom.xml没有加
<packaging>jar</packaging>
以及如下的配置:
<build>
<!--maven的打包插件-->
<plugins>
<plugin>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-maven-plugin</artifactId>
</plugin>
</plugins>
<resources>
<!-- pom.xml中加入resources配置 -->
<resource>
<directory>src/main/java</directory>
<includes>
<include>**/*.properties</include>
</includes>
</resource>
<resource>
<!-- 项目打包时会将java目录中的*.xml文件也进行打包 -->
<directory>src/main/resources</directory>
</resource>
<resource>
<directory>src/main/java</directory>
<includes>
<include>**/*.xml</include>
</includes>
<filtering>false</filtering>
</resource>
</resources>
</build>
参考
边栏推荐
- 33岁可以学PLC吗
- MapReduce instance (x): chainmapreduce
- June brush question 02 - string
- 嵌入式中的合作开发--函数指针
- MapReduce instance (V): secondary sorting
- 五月刷题02——字符串
- 为什么大学单片机课上51+汇编,为什么不直接来STM32
- Download address of canoe, download and activation of can demo 16, and appendix of all canoe software versions
- 112 pages of mathematical knowledge sorting! Machine learning - a review of fundamentals of mathematics pptx
- How can I take a shortcut to learn C language in college
猜你喜欢

MapReduce instance (x): chainmapreduce

Segmentation sémantique de l'apprentissage profond - résumé du code source

CANoe下载地址以及CAN Demo 16的下载与激活,并附录所有CANoe软件版本

面试突击62:group by 有哪些注意事项?

Nc17 longest palindrome substring

Solve the problem of too many small files

Teach you how to write the first MCU program hand in hand

A wave of open source notebooks is coming

听哥一句劝,按这套嵌入式的课程内容和课程体系去学习

Popularization of security knowledge - twelve moves to protect mobile phones from network attacks
随机推荐
Target detection -- yolov2 paper intensive reading
零基础学习单片机切记这四点要求,少走弯路
Some thoughts on the study of 51 single chip microcomputer
宝塔的安装和flask项目部署
A wave of open source notebooks is coming
June brush question 02 - string
Canoe CAPL file operation directory collection
May brush question 03 - sorting
Yarn organizational structure
Contrôle de l'exécution du module d'essai par panneau dans Canoe (primaire)
MapReduce instance (VIII): Map end join
Several ways of MySQL database optimization (pen interview must ask)
History of object recognition
一大波開源小抄來襲
If a university wants to choose to study automation, what books can it read in advance?
CANoe的数据回放(Replay Block),还是要结合CAPL脚本才能说的明白
CAPL 脚本对.ini 配置文件的高阶操作
Can I learn PLC at the age of 33
Learning SCM is of great help to society
Cap theory