myeclipse构建MAVEN

Failure to transfer org.apache.maven:maven-artifact:pom:2.0.6 from http://repo.maven.apache.org/maven2 was cached in the local repository, resolution will not be reattempted until the update interval of central has elapsed or updates are forced. Original error: Could not transfer artifact org.apache.maven:maven-artifact:pom:2.0.6 from/to central (http://repo.maven.apache.org/maven2): No connector available to access repository central (http://repo.maven.apache.org/maven2) of type default using the available factories pom.xml /hello line 1 Maven Configuration Problem

Window-->preferences-->myeclipse-->maven4myeclipse--->user settings把local repository里面的地址复制。
如果你的myeclipse没有的话,就找到:
c:users{你的电脑账号}.m2repository (一般在这个文件夹里)。
打开repository文件及后,在里面搜索 maven*.lastupdated。把搜出来的文件都删了。
重启myeclipse,右键项目--->maven4myeclipse--->update project...
勾选Force Update of Snapshots/Releases,然后ok退出

上一篇:从一个0day漏洞看数据中心防护效果大比拼


下一篇:Java多线程初学者指南(7):向线程传递数据的三种方法