maven nexus 初装后
一. 开启中央仓库的索引下载功能:
这个设置需要登录进来
1.选择Repositories
2.central ->configuration ->download remote indexes 设置为true!
3.save
4.cental 反键 update index
二.上传第三方 jar GAV 模式
1.选择3rd party 该仓库主要用于非公共的的jar的宿主仓库。
2.选择artifact upload -> GAV Definition 选择 -> GAV Parameters
3.group 选择你jar包所在的组 ,然后输入相应的 artifact ,version
4.package 按个人需要,这里选择的jar
5.选择下面的select artifact for update <可以选择多个文件上传>
6.最后点击下面的 upload artifact上传即可!
三.关于上传jar的删除
1.选择browse storage
2.选择相应目录 反键 delete 即可!
四.个人仓库的建立
1.选择Repositories
2.选择你想创建的工厂类型,proxy /hosted/virtual
3.填入相应的id 和 name
4.deployment policy 通常选择allow redeploy 允许重新部署
完毕,然后可以上传自己项目组的jar包到此,即可!