maven deploy 上傳 jar 包到nexus私服

直接在nexus上界面填寫信息上傳

mvn deploy 命令上傳


groupId,artifactId,version 這些可以參看包的meta信息

另外幾個參數
file 本地jar包位置
url nexus倉庫url
repositoryId 可以在nexus上看, repository path 的後綴

注意不要選擇local倉庫裏的包
會報cannot deploy artifact from the local repositoy 的錯

如果遇到return code is 401。需要在mvn 的setting.xml文件中配置server的賬號密碼, id爲 repostioryId

發表評論
所有評論
還沒有人評論,想成為第一個評論的人麼? 請在上方評論欄輸入並且點擊發布.
相關文章