maven 插件一直下载失败

kanwode111 2017-06-22 05:14:48
刚接触maven,然后运行了特别简单的代码,一直出现
[INFO] Scanning for projects...
Downloading: http://maven.aliyun.com/nexus/content/groups/public/org/apache/mave
n/plugins/maven-clean-plugin/2.5/maven-clean-plugin-2.5.pom
[WARNING] Failed to retrieve plugin descriptor for org.apache.maven.plugins:mave
n-clean-plugin:2.5: Plugin org.apache.maven.plugins:maven-clean-plugin:2.5 or on
e of its dependencies could not be resolved: Failed to read artifact descriptor
for org.apache.maven.plugins:maven-clean-plugin:jar:2.5
Downloading: http://maven.aliyun.com/nexus/content/groups/public/org/apache/mave
n/plugins/maven-install-plugin/2.4/maven-install-plugin-2.4.pom
[WARNING] Failed to retrieve plugin descriptor for org.apache.maven.plugins:mave
n-install-plugin:2.4: Plugin org.apache.maven.plugins:maven-install-plugin:2.4 o
r one of its dependencies could not be resolved: Failed to read artifact descrip
tor for org.apache.maven.plugins:maven-install-plugin:jar:2.4
插件一直下载不下来,
然后在网上查了,说是中央仓库连不上,然后在setting里面加了镜像,但是还是不行

<mirror>
<id>ibiblio.org</id>
<name>ibiblio Mirror of http://repo1.maven.org/maven2/</name>
<url>http://mirrors.ibiblio.org/pub/mirrors/maven2</url>
<mirrorOf>central</mirrorOf>

</mirror>
<mirror>
<id>jboss-public-repository-group</id>
<mirrorOf>central</mirrorOf>
<name>JBoss Public Repository Group</name>
<url>http://repository.jboss.org/nexus/content/groups/public</url>
</mirror>

然后,我手动在网页上试了一下,第一个downloading中的地址http://maven.aliyun.com/nexus/content/groups/public/org/apache/mave
n/plugins/maven-clean-plugin/2.5/maven-clean-plugin-2.5.pom,可以访问到,然后好多网上说是这两个镜像不能用了,然后又试了特别多别的镜像,仍然不行,还请高手指点一下
...全文
2256 2 打赏 收藏 转发到动态 举报
写回复
用AI写文章
2 条回复
切换为时间正序
请发表友善的回复…
发表回复
  • 打赏
  • 举报
回复 1
试试这样的操作让他从头到尾的刷新一遍
mendf 2020-11-22
  • 打赏
  • 举报
回复
你好,请问解决了吗?我也是这个问题,改了好多镜像没有用

50,527

社区成员

发帖
与我相关
我的任务
社区描述
Java相关技术讨论
javaspring bootspring cloud 技术论坛(原bbs)
社区管理员
  • Java相关社区
  • 小虚竹
  • 谙忆
加入社区
  • 近7日
  • 近30日
  • 至今
社区公告
暂无公告

试试用AI创作助手写篇文章吧