当前位置:网站首页>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>
参考
边栏推荐
- Retention policy of RMAN backup
- [deep learning] semantic segmentation: paper reading: (2021-12) mask2former
- May brush question 02 - string
- 在CANoe中通过Panel面板控制Test Module 运行(初级)
- Upload vulnerability
- 通过bat脚本配置系统环境变量
- Elk project monitoring platform deployment + deployment of detailed use (II)
- 单片机实现模块化编程:思维+实例+系统教程(实用程度令人发指)
- Learning SCM is of great help to society
- Webrtc blog reference:
猜你喜欢
51单片机进修的一些感悟
[flask] crud addition and query operation of data
What are the models of data modeling
大学C语言入门到底怎么学才可以走捷径
Programmation défensive en langage C dans le développement intégré
Regular expressions are actually very simple
MapReduce instance (x): chainmapreduce
Popularization of security knowledge - twelve moves to protect mobile phones from network attacks
西南大学:胡航-关于学习行为和学习效果分析
17 医疗挂号系统_【微信支付】
随机推荐
Selection of software load balancing and hardware load balancing
Can I learn PLC at the age of 33
Embedded development is much more difficult than MCU? Talk about SCM and embedded development and design experience
What are the models of data modeling
Safety notes
CANoe的数据回放(Replay Block),还是要结合CAPL脚本才能说的明白
068. Find the insertion position -- binary search
Function description of shell command parser
【深度学习】语义分割-源代码汇总
MapReduce instance (x): chainmapreduce
The replay block of canoe still needs to be combined with CAPL script to make it clear
C杂讲 文件 续讲
Configure system environment variables through bat script
I2C summary (single host and multi host)
May brush question 02 - string
五月刷题27——图
Nc29 search in two-dimensional array
Elk project monitoring platform deployment + deployment of detailed use (II)
Hero League rotation map automatic rotation
通过bat脚本配置系统环境变量