安裝nexus
1.下載
源碼包 nexus-2.13.0-01-bundle.tar.gz 下載地址 http://www.sonatype.org/nexus/
2.解壓源碼包
3.啟動並訪問
./nexus start 啟動 restart重啟 stop 關閉
ip:端口/nexus訪問 端口可在config的nexus.properties中修改
默認用戶名admin 密碼admin123
更新索引
1.下載文件
nexus-maven-repository-index.gz
nexus-maven-repository-index.properties
indexer-cli-5.1.0.jar
2.安裝
將三個文件移到同一個文件夾
執行命令java -jar indexer-cli-5.1.0.jar -u nexus-maven-repository-index.gz -d indexer
將原來indexer文件夾中的文件全部刪除
將生成后的indexer文件夾中的文件全部放到central-ctx
重啟nexus
更新索引前記得先關閉nexus服務