Nexus安装
-
下载 nexus,解压到/usr/local/nexus/下。(解压后有 2 个目录)
-
chmod 777 -R /usr/local/nexus/
-
配置JAVE_HOME。jdk版本最好再1.7.0以上
启动 nexus
-
cd /usr/local/nexus/nexus-2.8.0-05/bin
-
./nexus start
配置 nexus
-
浏览器打开: http://localhost:8081/nexus
-
右上角登录
-
帐号:admin
-
密码:admin123
下载中心仓库
启用中心仓库的本地索引
左边菜单栏: Views/Repositories —> Repositories —> Central 下面 Configuration —> Download Remote Indexes 改为 true
下载中心仓库
右键 Central —> Repair Indexe(这个过程差不多 20 分 钟,下载的过程就是将 Central 仓库下的 Browse Remote 同步到 Browse Index)
定时更新仓库
Administration Scheduled Tasks Add name:update index Task Type:Update Repositories Index Repository/Group:Central Recurrence:周期
新建仓库
nexus安装号之后一般需要新建一个releases 仓库和一个snapshots仓库。
release仓库默认不能发布,需要再access setting ——> Deployment Policy 设置
Allow Deploy