天天看点

the exception "Failure to transfer org.apache.maven:maven-parent" about Maven

   今天使用maven碰到了这个异常,异常信息如下:

the exception "Failure to transfer org.apache.maven:maven-parent" about Maven

failure to transfer org.apache.maven:maven-parent:pom:17 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-parent:pom:17 from/to central (http://repo.maven.apache.org/maven2): no response received after 60000   pom.xml /mmseg4j-analysis   line 1  maven pom loading problem  

    解决办法如下:

   windows环境下的话,请先进入你的本地仓库所在文件夹,比如我的本地maven仓库文件夹是e:\maven-repository,

the exception "Failure to transfer org.apache.maven:maven-parent" about Maven

 ctrl + f在本地仓库里搜索所有下载失败的jar,如图操作:

the exception "Failure to transfer org.apache.maven:maven-parent" about Maven

 然后在你的项目上鼠标右键----> maven----->update project,如图:

the exception "Failure to transfer org.apache.maven:maven-parent" about Maven

 ok,然后问题就解决了。如果你还有什么问题,请qq联系我(qq:7-3-6-0-3-1-3-0-5).