Maven 訪問加速


收錄架構

  • proxy代理倉庫
  • 不支持倉庫搜索功能

收錄版本

  • 所有版本

更新時間

  • 每24小時更新一次

使用說明

一、在maven軟件中使用

以Maven 3.5.2為例:

打開maven配置文件

./apache-maven-3.5.2/conf/settings.xml

找到 標簽節點

添加一個的mirror子節點:

<mirror>
    <id>nexus-163</id>
    <mirrorOf>*</mirrorOf>
    <name>Nexus 163</name>
    <url>http://mirrors.163.com/maven/repository/maven-public/</url>
</mirror>

二、在maven項目pom中使用

  • 打開項目配置文件

pom.xml

  • 添加或修改
<repositories>
    <repository>
        <id>nexus-163</id>
        <name>Nexus 163</name>
        <url>http://mirrors.163.com/maven/repository/maven-public/</url>
        <layout>default</layout>
        <snapshots>
            <enabled>false</enabled>
        </snapshots>
        <releases>
            <enabled>true</enabled>
        </releases>
    </repository>
</repositories>
<pluginRepositories>
    <pluginRepository>
        <id>nexus-163</id>
        <name>Nexus 163</name>
        <url>http://mirrors.163.com/maven/repository/maven-public/</url>
        <snapshots>
            <enabled>false</enabled>
        </snapshots>
        <releases>
            <enabled>true</enabled>
        </releases>
    </pluginRepository>
</pluginRepositories>
執行maven update更新一下即可。

三、其他使用

本源同時支持nuget使用,可以根據使用情況替換url

各部件地址: http://mirrors.163.com/maven/#browse/browse/components

相關鏈接


免責聲明!

本站轉載的文章為個人學習借鑒使用,本站對版權不負任何法律責任。如果侵犯了您的隱私權益,請聯系本站郵箱yoyou2525@163.com刪除。



 
粵ICP備18138465號   © 2018-2025 CODEPRJ.COM