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

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