maven全局仓库中添加阿里云镜像

版权声明:本文为博主原创文章,未经博主允许不得转载。 https://blog.csdn.net/HistoryCreator/article/details/82662372

找到maven 的配置文件settings.xml,在其中添加以下配置,可解决在中央仓库无法下载jar包问题。

Could not transfer artifact * from/to central (https://repo.maven.apache.org/maven2): Received fatal alert: protocol_version

<!-- 阿里云仓库 -->
<mirror>
    <id>alimaven</id>
    <mirrorOf>central</mirrorOf>
    <name>aliyun maven</name>
    <url>http://maven.aliyun.com/nexus/content/repositories/central/</url>
</mirror>

猜你喜欢

转载自blog.csdn.net/HistoryCreator/article/details/82662372