记录nexue配置

1、nexus 当前启动及关闭、账户信息以及相关使用
    配置:参考第一章
启动:nexus start
查看状态:nexus status
关闭:nexus stop
账户:admin/1
更新:nexus 目录如下有两个,其中sonatype-work存储用户信息以及仓库信息,另一个为【nexus-版本号】,将新版本的 【nexus-版本号】目录替换替换原本的即可。
开启 maven central 仓库索引下载。进入 maven 仓库configuration页,download remote index 选择为 true,然后保存,然后选择  rebuild index 开始下载,下载过程视乎网络。
注销anonymous、Deployment用户,即在用户设置里面将 status 设置为 disable。为了方便修改admin用户密码为“1”。

2、私人仓库及第三方仓库的地址及账户
创建仓库:Thirdparty、IRepo,并在 privilege 中加入对应的 crud 权限。
(仓库的删除及权限的需要重启 nexus)
私人仓库:
http://127.0.0.1:8081/nexus/content/repositories/ThirdParty/
第三方仓库用于上传此类由私人或私人机构开发、没有提供官方仓库的构件。
http://127.0.0.1:8081/nexus/content/repositories/IRepo/
个人开发的构件库,并用于 deploy
http://127.0.0.1:8081/nexus/content/repositories/central/
maven 中央仓库。
第三方仓库:
http://maven.restlet.com/
restlet仓库。
参考第五章:定制 proxy 仓库

3、 用户级 settings.xml 配置及说明
参考  精简1 settings.xml 配置  精简2 第三方库加入 settings.xml 配置







猜你喜欢

转载自simon-ezer.iteye.com/blog/2352492