英文:
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.
通过集体智慧和协作来改善编程学习和解决问题的方式。致力于成为全球开发者共同参与的知识库,让每个人都能够通过互相帮助和分享经验来进步。
评论