1、问题如下:
The container 'Maven Dependencies' references non existing library '/Users/xxx/.m2/repository/ognl/ognl/3.0.8/ognl-3.0.8.jar'xxx-xxx Build pathBuild Path Problem
2、解决措施,删除资源库里 出错的jar rm -rf ognl-3.0.8.jar.lastUpdated,之后maven 重新更新整个工程。(未能解决)---->删除,3.0.8整个文件夹,再次更新,解决问题。
另外的一个问题:
问题如下:
Description Resource Path Location Type
Failure to transfer org.apache.maven.plugins:maven-surefire-plugin:pom:2.18.1 from http://maven.aliyun.com/nexus/content/groups/public was cached in the local repository, resolution will not be reattempted until the update interval of nexus-aliyun has elapsed or updates are forced. Original error: Could not transfer artifact org.apache.maven.plugins:maven-surefire-plugin:pom:2.18.1 from/to nexus-aliyun (http://maven.aliyun.com/nexus/content/groups/public): The operation was cancelled. pom.xml /项目名字 line 1 Maven Configuration Problem
解决措施:
删除所有下载失败的文件:
linux环境下:find /Users/riibon/.m2/ -name "*.lastUpdated" -exec grep -q "Could not transfer" {} \; -print -exec rm {} \;