Idea Spring Boot项目提示 repackage failed: Unable to find main class
本人项目是一个多模块的Spring Boot项目,模块打包时一直显示没有找到主类,很奇怪,我项目中其它的模块都可以正常打包
报错内容:
Failed to execute goal org.springframework.boot: spring-boot-maven-plugin:2.6.4: repackage (repackage) on project XXX: Execution repackage of goal org.springframework.boot: spring-boot-maven-plugin:2.6.4: repackage failed: Unable to find main class
解决方法:
在项目该模块中,新建立一个包含主函数的类,然后在 Maven 中重新 install 打包该模块就成功了。事后可以删除,目前没发现什么问题。
Idea Spring Boot项目提示 repackage failed: Unable to find main class相关推荐
- springboot项目进行 mvn install 时报错 repackage failed: Unable to find main class 处理记录
异常描述:springboot项目进行 mvn install时 报错如下 Failed to execute goal org.springframework.boot:spring-boot-ma ...
- 项目打包公共模块失败【error:repackage failed: Unable to find main class】
1.背景: 今天给项目打jar包时发现了一个打jar包失败的问题.原因是由于项目的公共包没有main方法导致打包失败,但是我们的公共模块确实不需要main方法,所以需要想办法去掉这项校验,经过查阅资料 ...
- maven打包repackage failed: Unable to find main class
一.Maven打包Spring Boot项目报错(repackage failed: Unable to find main class),排除寻找Main方法,一般用于被依赖的公用常量模块,解决方法 ...
- maven testNG打成jar包运行报错repackage failed: Unable to find main class
一.maven testNG如何打jar包 1.pom文件引入插件 <build><plugins><plugin><groupId>org.apach ...
- maven package异常repackage failed: Unable to find main class
现象 模块package时出现异常 Failed to execute goal org.springframework.boot:spring-boot-maven-plugin:2.5.1:rep ...
- 解决spring-boot-maven-plugin:2.2.1.RELEASE:repackage failed: Unable to find main class
解决:Execution repackage of goal org.springframework.boot:spring-boot-maven-plugin:2.2.1.RELEASE:repac ...
- SpringBoot打包错误(repackage failed: Unable to find main class)
错误代码 多模块的SpringBoot项目打包失败,错误代码如下. [ERROR] Failed to execute goal org.springframework.boot:spring-boo ...
- spring-boot-maven-plugin:2.3.2.RELEASE:repackage failed: Unable to find main class
问题 公共包执行install时失败,提示: Failed to execute goal org.springframework.boot:spring-boot-maven-plugin:2.3. ...
- jenkins用spring-boot-maven-plugin构建出错:repackage failed: Unable to find main class
完整的报错信息如下: [ERROR] Failed to execute goal org.springframework.boot:spring-boot-maven-plugin:2.0.4.RE ...
最新文章
- linux /etc/profile和/etc/bashrc
- python绘制饼图-Python使用Plotly绘图工具,绘制饼图
- 常微分方程matlab求解
- “豆瓣酱”之用户,场景,功能
- 方法的重载与重写_深入解析JAVA重载与重写的区别
- 万字通俗讲解何为复杂度
- 景深决定照相机什么特性_手机为什么达不到相机的景深效果?
- 安全使用操作系统(Windows)
- 【day31】函数总结
- 常用的开源3D游戏引擎(转)
- python opencv双目测距_OpenCV实现双目测距
- 一对一高清直播系统解决方案
- 2020年的1024程序员节(娱乐小文章)
- 波束成形算法之波束宽度
- 【渗透实战】web渗透实战,相对高安全级别下,详细分析整个渗透过程以及介绍社工的巧妙性,拿一站得数十站,(漏洞已交)
- 剑指offter-面试题7.用两个栈实现队列
- IT人员网址大全(精心搜集)
- 微信开发使用wechat.class.php调用API,测试发现返回no access,公众号出现暂时无法提供服务
- 【论文笔记】Why Attentions May Not Be Interpretable?
- WordPress博客程序建站 安装教程
热门文章
- 天府新区信息职业学院计算机专业,天府新区信息职业学院是几本,重点专业是什么...
- 2920集五福_支付宝集五福2020工具
- 第十八课,立方体贴图(加载天空盒)
- FZU 2124 - 吃豆人 记忆化BFS..
- 径向基函数神经网络RBFNN
- 中国邮政储蓄银行计算机招聘,2019年及历年中国邮政储蓄银行计算机招聘笔试题和参考答案4套...
- [svc]linux常用手头命令-md版
- 【python基础】——python的小知识点
- 大数据Hive(二):Hive的三种安装模式和MySQL搭配使用
- 数字图像偏色检测及其校正快速实现