运行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