当前位置:网站首页>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
边栏推荐
- Handling of web page image loading errors
- Have you ever seen this kind of dynamic programming -- the stock problem of state machine dynamic programming (Part 2)
- Printf function of input and output function in C language
- How about ink cloud?
- 微服务故障模式与构建弹性系统
- Dell remote control card uses ipmitools to set IPMI
- 解决Oracle使用in语句不能超过1000问题
- Struct模块到底有多实用?一个知识点立马学习
- 类和对象【中】
- 这种动态规划你见过吗——状态机动态规划之股票问题(中)
猜你喜欢

BigDecimal 进行四舍五入 四舍六入和保留两位小数

How to send and receive reports through outlook in FastReport VCL?

The solution after the samesite by default cookies of Chrome browser 91 version are removed, and the solution that cross domain post requests in chrome cannot carry cookies

Flask Development & get/post request

架构设计思考之一(SSO设计)

Redis 之布隆过滤器

【计算机三级信息安全】信息安全保障概述

【内功心法】——函数栈帧的创建和销毁(C实现)

PC端-bug记录

Configuration experiment of building virtual private network based on MPLS
随机推荐
Reading notes of SMT practical guide 1
Mysql处理遗留数据样例
C language characters and strings
个人写的一个文件上传工具网站
MySQL basic query
DELL远程控制卡 使用ipmitools设置ipmi
New methods and features of ES6 built-in objects
Interpreting the source code of cfrunloopref
Using RAC to realize the sending logic of verification code
regular expression
【单例模式】懒汉模式的线程安全问题
mysql中使用list作为参数进行查询
11. < tag dynamic programming and subsequence, subarray> lt.115. Different subsequences + Lt. 583. Deletion of two strings DBC
在ruoyi生成的对应数据库的代码 之后我该怎么做才能做出下边图片的样子
First acquaintance with C language (1)
7. < tag string and API trade-offs> supplement: Sword finger offer 05. replace spaces
从微服务基本概念到核心组件-通过一个实例来讲解和分析
使用nfpm制作rpm包
C language: addition and deletion of linked list in structure
Class class added in ES6