无法转移

huangapple go评论66阅读模式
英文:

Failure to transfer

问题

无法从http://repo.maven.apache.org/maven2/传输org.apache.maven.plugins:maven-resources-plugin:pom:2.5,已在本地存储库中缓存,直到中央仓库的更新间隔已过或强制更新为止,将不会重新尝试解析。原始错误:无法传输artifact org.apache.maven.plugins:maven-resources-plugin:pom:2.5到central(http://repo.maven.apache.org/maven2):

传输失败http://repo.maven.apache.org/maven2/org/apache/maven/plugins/maven-resources-plugin/2.5/maven-resources-plugin-2.5.pom。错误代码501,要求使用HTTPS。

尝试:

cd %userprofile%.m2\repository
for /r %i in (*.lastUpdated) do del %i

仍然没有成功。

英文:

Failure to transfer org.apache.maven.plugins:maven-resources-plugin:pom:2.5 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.plugins:maven-resources-
plugin:pom:2.5 from/to central (http://repo.maven.apache.org/maven2):

Failed to transfer http://
 repo.maven.apache.org/maven2/org/apache/maven/plugins/maven-resources-plugin/2.5/maven-resources-
 plugin-2.5.pom. Error code 501, HTTPS Required

Tried

cd %userprofile%\.m2\repository
for /r %i in (*.lastUpdated) do del %i

Still no luck.

答案1

得分: 1

Maven需要https:

https://repo.maven.apache.org/

是否有自定义的Maven settings.xml文件,例如~/.m2/settings.xml?如果有的话,删除或更改此文件的名称可能会有帮助,因为Maven中央仓库有一个默认的https URL,您可能正在覆盖它。

英文:

Maven requires https:

https://repo.maven.apache.org/

Do you have a custom maven settings.xml ie ~/.m2/settings.xml. If so it may help to delete or change the name of this file as maven central has a default https url which you may be overriding.

huangapple
  • 本文由 发表于 2020年8月14日 15:08:11
  • 转载请务必保留本文链接:https://go.coder-hub.com/63408108.html
匿名

发表评论

匿名网友

:?: :razz: :sad: :evil: :!: :smile: :oops: :grin: :eek: :shock: :???: :cool: :lol: :mad: :twisted: :roll: :wink: :idea: :arrow: :neutral: :cry: :mrgreen:

确定