Maven org.eclipse.m2e:lifecycle-mapping:1.0.0: Plugin 未找到报错解决

Maven org.eclipse.m2e:lifecycle-mapping:1.0.0: Plugin 未找到报错解决

场景

在下拉flowable项目源码,在本地【添加为Maven项目】后,flowable-mule模块的pom.xml文件依赖了org.eclipse.m2e:lifecycle-mapping插件,IDEA显示报错找不到plugn
pom.xml插件

借鉴

在github找到该插件的项目和相关解决办法,地址

摘录报错

[WARNING] The POM for org.eclipse.m2e:lifecycle-mapping:jar:1.0.0 is missing, no dependency information available
[WARNING] Failed to retrieve plugin descriptor for org.eclipse.m2e:lifecycle-mapping:1.0.0: Plugin org.eclipse.m2e:lifecycle-mapping:1.0.0 or one of its dependencies could not be resolved: Failed to read artifact descriptor for org.eclipse.m2e:lifecycle-mapping:jar:1.0.0

情况是相似的,都是缺少该plugn而报错。摘录原文解决办法

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

根据提供的办法,可以有两种方式解决。最简单的就是checkout and run mvn了。

具体操作

  1. 将源码项目拉下来,checkout到本地
  2. 运行mvn install
    最终效果图

猜你喜欢

转载自blog.csdn.net/weixin_51623642/article/details/128101556