Eclipse创建maven项目时报错:maven-resources-plugin:2.5 or one of its dependencies could not be resolved

Eclipse创建maven简单项目时,报错:Could not calculate build plan: Plugin org.apache.maven.plugins:maven-resources-plugin:2.5 or one of its dependencies could not be resolved: Failed to read artifact descriptor for org.apache.maven.plugins:maven-resources-plugin:jar:2.5

Plugin org.apache.maven.plugins:maven-resources-plugin:2.5 or one of its dependencies could not be resolved: Failed to read artifact descriptor for org.apache.maven.plugins:maven-resources-plugin:jar:2.5


Eclipse创建maven项目时报错:maven-resources-plugin:2.5 or one of its dependencies could not be resolved_第1张图片


本人解决方法:

修改settings.xml,添加:

 
        Central 
        http://repo1.maven.org/maven2 
        central 
    

而后删除项目重新创建,或者Force Update

你可能感兴趣的:(IT,Java)