当前位置:网站首页>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
边栏推荐
- Test Development - UI testing in automated testing
- 【单例模式】懒汉模式的线程安全问题
- mysql中使用list作为参数进行查询
- Tomato timing dimming table lamp touch chip-dlt8t10s-jericho
- Duoyu security browser will improve the security mode and make users browse more safely
- yandex robots txt
- Invalid bound statement (not found): com.exam.mapper.UserMapper.findbyid
- 使用navicat或plsql导出csv格式,超过15位数字后面变成000(E+19)的问题
- 微服务故障模式与构建弹性系统
- 【ARXIV2203】CMX: Cross-Modal Fusion for RGB-X Semantic Segmentation with Transformers
猜你喜欢

Configuration experiment of building virtual private network based on MPLS

Microservice failure mode and building elastic system

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

Win10 machine learning environment construction pycharm, anaconda, pytorch

PC side bug record

【ARXIV2203】SepViT: Separable Vision Transformer

Paper reading notes -- crop yield prediction using deep neural networks

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

从微服务基本概念到核心组件-通过一个实例来讲解和分析
Printf function of input and output function in C language
随机推荐
Duoyu security browser will improve the security mode and make users browse more safely
lamda 获取当前循环数,AtomicInteger
[paper notes] - low illumination image enhancement - zeroshot - rrdnet Network - 2020-icme
yandex robots txt
BigDecimal 进行四舍五入 四舍六入和保留两位小数
微服务故障模式与构建弹性系统
数据库日期类型全部为0
First acquaintance with C language (1)
测试开发---自动化测试中的UI测试
Interpreting the source code of cfrunloopref
Configuration experiment of building virtual private network based on MPLS
After ruoyi generates the code corresponding to the database, what should I do to make the following image look like
7. < tag string and API trade-offs> supplement: Sword finger offer 05. replace spaces
Share several methods of managing flag bits in C program
SimpleDateFormat线程不安全和DateTimeFormatter线程安全
Tips for using swiper (1)
C language characters and strings
Reading notes of SMT practical guide 1
使用navicat或plsql导出csv格式,超过15位数字后面变成000(E+19)的问题
Paper reading notes -- crop yield prediction using deep neural networks