直接在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