当前位置:网站首页>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>
参考
边栏推荐
- Une grande vague d'attaques à la source ouverte
- 51单片机进修的一些感悟
- docker MySQL解决时区问题
- 嵌入式中的合作开发--函数指针
- Some thoughts on the study of 51 single chip microcomputer
- max-flow min-cut
- Why is 51+ assembly in college SCM class? Why not come directly to STM32
- Function description of shell command parser
- MapReduce instance (V): secondary sorting
- 四川云教和双师模式
猜你喜欢
![[CV] target detection: derivation of common terms and map evaluation indicators](/img/e8/04cc8336223c0ab2dea5638def88df.jpg)
[CV] target detection: derivation of common terms and map evaluation indicators

Embedded development is much more difficult than MCU? Talk about SCM and embedded development and design experience

Several silly built-in functions about relative path / absolute path operation in CAPL script

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

max-flow min-cut

Combined search /dfs solution - leetcode daily question - number of 1020 enclaves

Contrôle de l'exécution du module d'essai par panneau dans Canoe (primaire)

机械工程师和电气工程师方向哪个前景比较好?

AI的路线和资源

Interview shock 62: what are the precautions for group by?
随机推荐
五月刷题03——排序
[flask] crud addition and query operation of data
CAPL 脚本对.ini 配置文件的高阶操作
C杂讲 文件 续讲
在CANoe中通过Panel面板控制Test Module 运行(高级)
CANoe CAPL文件操作目录合集
Hard core! One configuration center for 8 classes!
Carolyn Rosé博士的社交互通演讲记录
Why is 51+ assembly in college SCM class? Why not come directly to STM32
大学C语言入门到底怎么学才可以走捷径
Redis distributed lock implementation redison 15 questions
Libuv thread
cmooc互联网+教育
[untitled]
机械工程师和电气工程师方向哪个前景比较好?
Some thoughts on the study of 51 single chip microcomputer
Target detection -- yolov2 paper intensive reading
竞赛vscode配置指南
Pointer learning
docker MySQL解决时区问题