Maven创建或者导入时出现以下错误:
五月向南 2019-06-23 05:27:28 Maven创建或者导入时出现以下错误:
Could not calculate build plan: Plugin org.apache.maven.plugins:maven-war-plugin:2.2 or one of its dependencies could not be resolved: Failed to read artifact descriptor for org.apache.maven.plugins:maven-war-plugin:jar:2.2
Plugin org.apache.maven.plugins:maven-war-plugin:2.2 or one of its dependencies could not be resolved: Failed to read artifact descriptor for org.apache.maven.plugins:maven-war-plugin:jar:2.2
原因:没有配置ecplise中的Maven
解决:
window->preferences->Maven->Installation->add->选择Maven件夹(apache-maven-3.3.9)
User Settings配置:
window->preferences->Maven->Installation->User Settings 添加Maven中的settings.xml文件
完成