myeclipse创建maven项目后pom文件报错,

报错信息:Failure to transfer org.apache.maven.plugins:maven-resources-plugin:pom:2.5 from http://localhost:8081/repository/maven-
public/ was cached in the local repository, resolution will not be reattempted until the update interval of nexus has elapsed or
updates are forced. Original error: Could not transfer artifact org.apache.maven.plugins:maven-resources-plugin:pom:2.5
from/to nexus (http://localhost:8081/repository/maven-public/): Connection refused: no further information to http://localhost:
8081/repository/maven-public/org/apache/maven/plugins/maven-resources-plugin/2.5/maven-resources-plugin-2.5.pom

右键工程-点击maven-update projects就可以解决了。
温馨提示:内容为网友见解,仅供参考
第1个回答  2018-01-08
好像是连不上你的仓库 http://localhost:8081/repository/maven-public/ 这个地址,请确认一下本回答被提问者采纳
第2个回答  2017-12-26
你的环境可以联网吗,maven是需要去它的本地库和在线库里寻找配置文件所描述的jar包的,如果不能联网,或是网络环境不好,在线库早不到相应版本的jar都会报异常。追问

可以联网啊,

相似回答