当前位置:网站首页>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>
参考
边栏推荐
- 华南技术栈CNN+Bilstm+Attention
- May brush question 26 - concurrent search
- NLP路线和资源
- CAPL 脚本打印函数 write ,writeEx ,writeLineEx ,writeToLog ,writeToLogEx ,writeDbgLevel 你真的分的清楚什么情况下用哪个吗?
- Vs All comments and uncomments
- 018. Valid palindromes
- The real future of hardware engineers may not be believed by you if I say so
- Why is 51+ assembly in college SCM class? Why not come directly to STM32
- 六月刷题02——字符串
- CANoe不能自动识别串口号?那就封装个DLL让它必须行
猜你喜欢

Popularization of security knowledge - twelve moves to protect mobile phones from network attacks

Which is the better prospect for mechanical engineer or Electrical Engineer?

CANoe仿真功能之自动化序列(Automation Sequences )

docker MySQL解决时区问题

Some thoughts on the study of 51 single chip microcomputer
![[deep learning] semantic segmentation: paper reading: (2021-12) mask2former](/img/dd/fe2bfa3563cf478afe431ac87a8cb7.png)
[deep learning] semantic segmentation: paper reading: (2021-12) mask2former

嵌入式开发中的防御性C语言编程

A wave of open source notebooks is coming

How can I take a shortcut to learn C language in college

Embedded development is much more difficult than MCU? Talk about SCM and embedded development and design experience
随机推荐
Counter attack of noodles: redis asked 52 questions in a series, with detailed pictures and pictures. Now the interview is stable
CAPL 脚本对.ini 配置文件的高阶操作
Some thoughts on the study of 51 single chip microcomputer
Tianmu MVC audit II
Combined search /dfs solution - leetcode daily question - number of 1020 enclaves
CANoe下载地址以及CAN Demo 16的下载与激活,并附录所有CANoe软件版本
Cap theory
[deep learning] semantic segmentation - source code summary
C杂讲 动态链表操作 再讲
Interview shock 62: what are the precautions for group by?
vscode 常用的指令
C杂讲 双向循环链表
六月刷题02——字符串
Several ways of MySQL database optimization (pen interview must ask)
Cooperative development in embedded -- function pointer
一大波开源小抄来袭
C杂讲 浅拷贝 与 深拷贝
机械工程师和电气工程师方向哪个前景比较好?
华南技术栈CNN+Bilstm+Attention
Libuv thread