1. 搭建环境
nexus-2.12.0-01(版本无所谓,大同小异)windows操作系统(主要是自己测试,没有使用linux,但是方法相同)
2.nexus安装
2.1.配置文件
修改nexus的配置文件,不修改可以使用默认的,路径为nexus-2.12.0-01\conf\ nexus.properties
# Jetty section application-port=8889 #application-host=0.0.0.0 application-host=127.0.0.1 nexus-webapp=${bundleBasedir}/nexus nexus-webapp-context-path=/nexus application-port-ssl=8443 # Nexus section nexus-work=${bundleBasedir}/../sonatype-work/nexus runtime=${bundleBasedir}/nexus/WEB-INF
2.2.安装nexus
运行nexus-2.12.0-01\bin\ nexus.bat(linux下就是nexus)最好使用管理员身份运行cmd,进入此目录之后执行以下操作(也可以直接运行nexus.bat会有提示操作): nexus.bat install(start,restart,stop,uninstall等)
2.3. 测试
启动之后输入地址访问
3.登录
点击页面右上角的Log in按钮登录(默认admin/admin123)
登录界面如下所示
4.新增jar包
点击Repositories之后就可以添加自己的jar包,我自己用到的主要就是3rd party