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