当前位置:网站首页>repackag failed: Unable to find main class
repackag failed: Unable to find main class
2022-07-28 05:17:00 【MusicCodeM】
项目场景:
多模块的情况下,子模块进行打包,会出现一下情况
问题描述:
Execution repackage of goal org.springframework.boot:spring-boot-maven-plugin:2.2.1.RELEASE:repackage failed: Unable to find main class

原因分析:
打包,是为了其他的模块进行引用。所以 打包的出来的是 xxx.jar
jar包是必须有主启动类的。写个主启动类就行了
解决方案:
切记:主启动类的名称不能相同,不然也会报错
相关问题:https://blog.csdn.net/qq_46539281/article/details/122216400
边栏推荐
- Pipe /createpipe
- New modularity in ES6
- The default isolation level of MySQL is RR. Why does Alibaba and other large manufacturers change to RC?
- Paper reading notes -- crop yield prediction using deep neural networks
- Implementation of simple upload function in PHP development
- 【CVPR2022 oral】Balanced Multimodal Learning via On-the-fly Gradient Modulation
- [paper notes] - low illumination image enhancement - zeroshot - rrdnet Network - 2020-icme
- 多线程进阶:锁的策略
- Mysql基本查询
- JSON in JS (launch object deep copy)
猜你喜欢

mysql的日期与时间函数,varchar与date相互转换

HashSet add

MySQL basic query

Digital twin solutions inject new momentum into the construction of chemical parks

这种动态规划你见过吗——状态机动态规划之股票问题(中)

7. < tag string and API trade-offs> supplement: Sword finger offer 05. replace spaces

21 day SQL punch in summary
![Classes and objects [medium]](/img/0a/955d00d63f06e7e15e946599628edf.png)
Classes and objects [medium]

CPU and memory usage are too high. How to modify RTSP round robin detection parameters to reduce server consumption?
Printf function of input and output function in C language
随机推荐
多线程进阶:volatile的作用以及实现原理
Struct模块到底有多实用?一个知识点立马学习
【内功心法】——函数栈帧的创建和销毁(C实现)
多线程进阶:synchronized底层原理,锁优化、锁升级的过程
【CVPR2022】Multi-Scale High-Resolution Vision Transformer for Semantic Segmentation
After ruoyi generates the code corresponding to the database, what should I do to make the following image look like
FreeRTOS个人笔记-任务通知
项目中问题合集
多系统架构设计思考
【CVPR2022】On the Integration of Self-Attention and Convolution
Printf function of input and output function in C language
多御安全浏览器将改进安全模式,让用户浏览更安全
About MySQL group_ What concat has to say
First acquaintance with C language (1)
Professor dongjunyu made a report on the academic activities of "Tongxin sticks to the study of war and epidemic"
ArrayList多线程安全解决办法
The default isolation level of MySQL is RR. Why does Alibaba and other large manufacturers change to RC?
C language: some self realization of string functions
The research group passed the thesis defense successfully
【ARXIV2205】Inception Transformer