記錄nexue配置

1、nexus 當前啓動及關閉、賬戶信息以及相關使用
配置:參考第一章
啓動:nexus start
查看狀態:nexus status
關閉:nexus stop
賬戶:admin/1
更新:nexus 目錄如下有兩個,其中sonatype-work存儲用戶信息以及倉庫信息,另一個爲【nexus-版本號】,將新版本的 【nexus-版本號】目錄替換替換原本的即可。
開啓 maven central 倉庫索引下載。進入 maven 倉庫configuration頁,download remote index 選擇爲 true,然後保存,然後選擇 rebuild index 開始下載,下載過程視乎網絡。
註銷anonymous、Deployment用戶,即在用戶設置裏面將 status 設置爲 disable。爲了方便修改admin用戶密碼爲“1”。

2、私人倉庫及第三方倉庫的地址及賬戶
創建倉庫:Thirdparty、IRepo,並在 privilege 中加入對應的 crud 權限。
(倉庫的刪除及權限的需要重啓 nexus)
私人倉庫:
http://127.0.0.1:8081/nexus/content/repositories/ThirdParty/
第三方倉庫用於上傳此類由私人或私人機構開發、沒有提供官方倉庫的構件。
http://127.0.0.1:8081/nexus/content/repositories/IRepo/
個人開發的構件庫,並用於 deploy
http://127.0.0.1:8081/nexus/content/repositories/central/
maven 中央倉庫。
第三方倉庫:
http://maven.restlet.com/
restlet倉庫。
參考第五章:定製 proxy 倉庫

3、 用戶級 settings.xml 配置及說明
參考 精簡1 settings.xml 配置 精簡2 第三方庫加入 settings.xml 配置
發表評論
所有評論
還沒有人評論,想成為第一個評論的人麼? 請在上方評論欄輸入並且點擊發布.
相關文章