记录一个错误Failure to find org.eclipse.m2e:lifecycle-mapping:pom:1.0.0的解决过程

运行SpringBoot 程序时出现 错误信息如下:

Failure to find org.eclipse.m2e:lifecycle-mapping:pom:1.0.0 in
http://maven.aliyun.com/nexus/content/groups/public was cached in the
local repository, resolution will not be reattempted until the update
interval of nexus-aliyun has elapsed or updates are forced

通过stackoverflow 网站查询得到多版本的解决方案,最终的用如下方案解决。

1、下载 https://github.com/mfriedenhagen/dummy-lifecycle-mapping-plugin

结合这个仓库中的命令,直接将这个插件添加到本地maven仓库中。

2、解压dummy-lifecycle-mapping-plugin.zip文件,在IDEA中点击File>>OPENT 打开这个目录下pom文件,选择一文件的方式打开,

在这里插入图片描述

在打开的pom文件右键open in terminal 在命令窗口执行执行mvn clean install 回车执行即可。


3、再次执行编译命令即可

How to install

The easiest way is to checkout the repository and run mvn install or mvn deploy -DaltDeploymentRepository=REPOID::default::PLUGIN_REPO_URL.

Otherwise you may download the pom and the binary jar and run:

  • mvn install:install-file -DpomFile=pom.xml -Dfile=lifecycle-mapping-1.0.0.jar or
  • mvn deploy:deploy-file -DpomFile=pom.xml -Dfile=lifecycle-mapping-1.0.0.jar -DrepositoryId=REPO_ID -Durl=PLUGIN_REPO

 

评论 2
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值