2022-08-17
1,搭建Maven服務(wù)器用到的軟件。
該軟件是運(yùn)行在Java 8.0上面的。
nexus下載
下載好后解壓到指定目錄下。

image.png
2,運(yùn)行:
前臺(tái)運(yùn)行:
nexus.exe /run
服務(wù)配置,計(jì)算機(jī)開機(jī)自動(dòng)啟動(dòng)的方式
nexus.exe /install 安裝
nexus.exe / uninstall 卸載
nexus.exe / start 啟動(dòng)
nexus.exe /stop 停止
nexus.exe / status 狀態(tài)查看
3,端口號查看和修改。

image.png
所有訪問maven倉庫的地址就是http://localhost:8081/
4,登陸和改密碼
賬號是:admin
默認(rèn)密碼

image.png
修改密碼后這個(gè)文件自動(dòng)消失。
倉庫
代理倉庫

image.png
給代理配置阿里倉庫
http://maven.aliyun.com/nexus/content/groups/public
正式倉庫和測試倉庫
正式:http://localhost:8081/repository/maven-releases/
測試:http://localhost:8081/repository/maven-snapshots/

image.png
是代理倉庫,正式倉庫,測試倉庫匯總。

image.png