Maven org.eclipse.m2e:lifecycle-mapping:1.0.0: Plugin 未找到报错解决
场景
在下拉flowable
项目源码,在本地【添加为Maven项目】后,flowable-mule
模块的pom.xml
文件依赖了org.eclipse.m2e:lifecycle-mapping
插件,IDEA显示报错找不到plugn。
借鉴
在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
了。
具体操作
- 将源码项目拉下来,
checkout
到本地 - 运行
mvn install