Maven 引入项目出现Maven Project Build Lifecycle Mapping Problem

2023-05-16

Cannot read lifecycle mapping metadata for artifact org.apache.maven.plugins:maven-compiler-plugin:maven-*plugin:3.1:runtime Cause: zip file is empty

 

pom.xml /zheng-pay-web line 1 Maven Project Build Lifecycle Mapping Problem

 

这里的情况是:

/D:/maven/repository/org/apache/maven/plugins/maven-resources-plugin/2.6/maven-*plugin:3.1.jar

文件没有。或者是空文件。

 

 

解决方案

1、eclipse中在pom.xml文件右键->Maven->add plugin 增加对应的plugin

 

2、再右键pom.xml文件->debug->Maven install ,如果执行正确应该会在{user.home}\.m2\repository\org\apache\maven\plugins\maven-resources-plugin\下看到maven-*-plugin.jar文件

 

 

3、刷新工程(右键工程选择Maven->update projects)

 

 

本文内容由网友自发贡献,版权归原作者所有,本站不承担相应法律责任。如您发现有涉嫌抄袭侵权的内容,请联系:hwhale#tublm.com(使用前将#替换为@)

Maven 引入项目出现Maven Project Build Lifecycle Mapping Problem 的相关文章

随机推荐