java build错误

335 阅读1分钟

错误:Unable to update Maven configuration Could not calculate build plan: Plugin org.apache.maven.plugins:maven-resources-plugin:2.6 or one of its dependencies could not be resolved: Failed to read artifact descriptor for org.apache.maven.plugins:maven-resources-plugin:jar:2.6

解决办法:

  1. 先从库里删除maven-resources-plugin:jar:2.6
  2. 再在dependencies中添加一下dependency
<dependency>
    <groupId>org.apache.maven.plugins</groupId>
    <artifactId>maven-resources-plugin</artifactId>
    <version>3.2.0</version>
</dependency>
  1. 重新选择自动build,eclipse->project->build automatically,就可以重新下载新的版本了