maven 配置 添加 阿里雲 鏡像

錯誤提示如下:maven 相關包下載不下來

Could not transfer artifact org.apache.maven.surefire:maven-surefire-common:


Could not transfer artifact org.springframework.boot:spring-boot-loader-tools:pom:2.2.4.RELEASE from/to central (http://repo.maven.apache.org/maven2): Failed to transfer file: http://repo.maven.apache.org/maven2/org/springframework/boot/spring-boot-loader

請 添加國內鏡像 阿里雲

打開maven下的conf\settings.xml

然後到<mirrors>裏面添加


   <mirror>
    <id>nexus-aliyun</id>
    <mirrorOf>*</mirrorOf>
    <name>Nexus aliyun</name>
    <url>http://maven.aliyun.com/nexus/content/groups/public</url>
</mirror>

 

發表評論
所有評論
還沒有人評論,想成為第一個評論的人麼? 請在上方評論欄輸入並且點擊發布.
相關文章