栏目分类:
子分类:
返回
名师互学网用户登录
快速导航关闭
当前搜索
当前分类
子分类
实用工具
热门搜索
名师互学网 > IT > 软件开发 > 后端开发 > Java

Idea打包失败|Failed to execute goal org.springframework.boot:spring-boot-maven-plugin:2.3.4.RELEASE

Java 更新时间: 发布时间: IT归档 最新发布 模块sitemap 名妆网 法律咨询 聚返吧 英语巴士网 伯小乐 网商动力

Idea打包失败|Failed to execute goal org.springframework.boot:spring-boot-maven-plugin:2.3.4.RELEASE

Idea打包失败
  • 1.问题背景
  • 2.问题截图
  • 3.问题分析
  • 4.问题解决

1.问题背景

没有背景,就是clean之后,打包失败。提示信息为:

Failed to execute goal org.springframework.boot:spring-boot-maven-plugin:2.3.4.RELEASE:repackage (repackage) on project guigu-common: Execution repackage of goal org.springframework.boot:spring-boot-maven-plugin:2.3.4.RELEASE:repackage failed: Unable to find main class -> [Help 1]
[ERROR]

2.问题截图

3.问题分析

首先,我的maven版本是 3.8.5;
引入的 pring-boot-starter-parent版本号为2.3.4.RELEASE;
最初怀疑这俩地方需要调整。
最后跟着网上的教程,把父pom中的maven-plugin注释掉之后,就成功了。
此处我仍然保留调整上面俩版本的意见,我只是觉着这次恰巧解决了问题而已。

4.问题解决

结合网上查阅的资料,将plugin注释掉就可以了。

今天真热啊。

转载请注明:文章转载自 www.mshxw.com
本文地址:https://www.mshxw.com/it/1007464.html
我们一直用心在做
关于我们 文章归档 网站地图 联系我们

版权所有 (c)2021-2022 MSHXW.COM

ICP备案号:晋ICP备2021003244-6号