idea pom.xml 中的jar包 install不了本地仓库 解决方案
报错:501 HTTPS Required.
Use https://repo.maven.apache.org/maven2/
More information at https://links.sonatype.com/central/501-https-required
原因:官方有原来的http更换成了https
解决方案:在本地maven 的setting.xml文件中镜像处加入:
<mirror>
<id>central</id>
<name>Maven Repository Switchboard</name>
<url>https://repo1.maven.org/maven2/</url>
<mirrorOf>central</mirrorOf>
</mirror>
ok 。解决
本文解决IDEA中pom.xml文件配置的jar包无法通过http安装到本地仓库的问题,原因是官方仓库从http更换为https。解决方案是在maven的setting.xml文件中加入中央仓库的https镜像配置。
2023

被折叠的 条评论
为什么被折叠?



