maven私服nexus安装

maven私服nexus安装

1、nexus特性

1.1、nexus私服实际上是一个javaEE的web 系统

1.2、作用:用来管理一个公司所有的jar包,实现项目jar包的版本统一

1.3、jar下载搜索顺序:本地仓库 -->  nexus私服  ---> Maven中央库.

1.4、私服的搭建基本是架构师或者项目组长的职能范畴

2、nexus下载

2.1、下载地址:https://sonatype-download.global.ssl.fastly.net/repository/repositoryManager/3/nexus-3.13.0-01-win64.zip

3、nexus安装

3.1 解压nexus安装包

解压后,在解压目录中包含,nexus-3.9.0-01和sonatype-work两个文件夹

nexus-3.9.0-01:核心目录

nexus-3.9.0-01\bin:存放nexus的启动命令

sonatype-work:工作目录。

sonatype-work\nexus3\etc\nexus.properties :配置文件可更改port、host、nexus-work、runtime。

3.2启动nexus私服

打开cmd,一路cd到安装目录下的bin目录,输入命令:nexus /run 运行安装 

注:如果出现错误:java.lang.NumberFormatException: null,则可能是jdk版本不对,或路径中带中文

3.3浏览器访问(http://localhost:8081) 

本地访问Nexus,默认用户/名密码是admin/admin123

4、nexus配置

猜你喜欢

转载自www.cnblogs.com/vvonline/p/9347381.html