且构网

分享程序员开发的那些事...
且构网 - 分享程序员编程开发的那些事

搭建maven项目常见问题

更新时间:2022-05-13 04:14:09

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。把搜出来的文件都删了。