nexus 離線更新索引


1、到http://repo.maven.apache.org/maven2/.index/頁面下載下面這兩個文件:
  nexus-maven-repository-index.gz
  nexus-maven-repository-index.properties

2、到http://search.maven.org,搜索g:"org.apache.maven.indexer" AND a:"indexer-cli"下載特定解壓文
  nexus-maven-repository-index.gz

3、把這幾個文件放在同一個文件路徑下面,從cmd進入到這個路徑里,輸入命令:
  $ java -jar indexer-cli-5.1.1.jar -u nexus-maven-repository-index.gz -d indexer

4、執行完之后,把indexer文件夾下的所有內容都復制到%nexus-home%\sonatype-work\nexus\indexer\central-ctx下面。
  重新啟動nexus,進入管理界面,選擇central->Browse Index,就看到更新的索引了。
  注意:nexus是需要重新啟動的,我是在做上面的所有步驟之前,先停掉nexus,等上面四個步驟完成之后,再啟動nexus的。

如果網速慢,可下載打包附件

 


免責聲明!

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



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