当前位置:网站首页>Jar runs with error no main manifest attribute
Jar runs with error no main manifest attribute
2022-07-06 10:02:00 【Learn from Tao Ge】
jar Operation error reporting no main manifest attribute
solve
After investigation, it was found that maven In the project pom.xml No addition
<packaging>jar</packaging>
And the following configurations :
<build>
<!--maven The package of plug-ins -->
<plugins>
<plugin>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-maven-plugin</artifactId>
</plugin>
</plugins>
<resources>
<!-- pom.xml Add resources To configure -->
<resource>
<directory>src/main/java</directory>
<includes>
<include>**/*.properties</include>
</includes>
</resource>
<resource>
<!-- The project will be packaged with java In the directory *.xml Files are also packaged -->
<directory>src/main/resources</directory>
</resource>
<resource>
<directory>src/main/java</directory>
<includes>
<include>**/*.xml</include>
</includes>
<filtering>false</filtering>
</resource>
</resources>
</build>
Reference resources
边栏推荐
- Inject common SQL statement collation
- 为什么大学单片机课上51+汇编,为什么不直接来STM32
- 机械工程师和电气工程师方向哪个前景比较好?
- C miscellaneous dynamic linked list operation
- The replay block of canoe still needs to be combined with CAPL script to make it clear
- Nc29 search in two-dimensional array
- [NLP] bert4vec: a sentence vector generation tool based on pre training
- Southwest University: Hu hang - Analysis on learning behavior and learning effect
- 简单解决phpjm加密问题 免费phpjm解密工具
- Notes of Dr. Carolyn ROS é's social networking speech
猜你喜欢
颜值爆表,推荐两款JSON可视化工具,配合Swagger使用真香
Contest3145 - the 37th game of 2021 freshman individual training match_ C: Tour guide
一大波開源小抄來襲
CANoe不能自动识别串口号?那就封装个DLL让它必须行
Southwest University: Hu hang - Analysis on learning behavior and learning effect
Teach you how to write the first MCU program hand in hand
PR 2021 quick start tutorial, first understanding the Premiere Pro working interface
The 32-year-old fitness coach turned to a programmer and got an offer of 760000 a year. The experience of this older coder caused heated discussion
Learning SCM is of great help to society
Regular expressions are actually very simple
随机推荐
[untitled]
颜值爆表,推荐两款JSON可视化工具,配合Swagger使用真香
Mexican SQL manual injection vulnerability test (mongodb database) problem solution
Contest3145 - the 37th game of 2021 freshman individual training match_ B: Password
15 医疗挂号系统_【预约挂号】
AI的路线和资源
Regular expressions are actually very simple
May brush question 27 - figure
Contrôle de l'exécution du module d'essai par panneau dans Canoe (primaire)
[NLP] bert4vec: a sentence vector generation tool based on pre training
Safety notes
CANoe CAPL文件操作目录合集
Day 5 of MySQL learning
C杂讲 动态链表操作 再讲
Automation sequences of canoe simulation functions
jar运行报错no main manifest attribute
VH6501学习系列文章
Vscode common instructions
The replay block of canoe still needs to be combined with CAPL script to make it clear
为什么大学单片机课上51+汇编,为什么不直接来STM32