1.下载 nexus
Nexus 是 Maven 仓库管理器,通过 nexus 可以搭建 maven 仓库,同时 nexus 还提供强
大的仓库管理功能,构件搜索功能等。
下载地址:http://www.sonatype.org/nexus/archived/
2. 安装 nexus
解压 nexus-2.12.0-01-bundle.zip:
使用windows管理员身份打开cmd进入bin目录,执行 nexus.bat install 命令
打开 services.msc 服务点击启动
cmd进入 nexus 的 bin目录,执行:nexus.bat uninstall 可以卸载
执行:nexus.bat uninstall 也可启动
3.配置nexus文件说明
4.访问nexus http://localhost:8081/nexus 默认密码 admin/admin123
5.mavne四种仓库类型
1. hosted,宿主仓库
部署自己的 jar 到这个类型的仓库,包括 releases 和 snapshot 两部分,Releases公司内部发布版本仓库、 Snapshots 公司内部测试版本仓库
2. proxy,代理仓库
用于代理远程的公共仓库,如 maven 中央仓库,用户连接私服,私服自动去中央仓库下载 jar 包或者插件。
3. group,仓库组
用来合并多个 hosted/proxy 仓库,通常我们配置自己的 maven 连接仓库组。
4. virtual,虚拟
兼容 Maven1 版本的 jar 或者插件