window下搭建maven的nexus私服

1、本地(windows)搭建nexus私服
先去官网现在nexus安装包https://www.sonatype.com/download-oss-sonatype选择oos 2.x的bundle.zip,bundel意思捆绑,意思这是多个操作系统的版本集合进入目录
\nexus-2.14.4-03-bundle\nexus-2.14.4-03\bin\jsw\windows-x86-64
这里我启动console-nexus.bat之后
这里写图片描述
然后访问:http://localhost:8081/nexus;默认端口是8081,配置在
\nexus-2.14.4-03-bundle\nexus-2.14.4-03\conf

# Jetty section
application-port=8081
application-host=0.0.0.0
nexus-webapp=${bundleBasedir}/nexus
nexus-webapp-context-path=/nexus

# Nexus section
nexus-work=${bundleBasedir}/../sonatype-work/nexus
runtime=${bundleBasedir}/nexus/WEB-INF

# orientdb buffer size in megabytes
storage.diskCache.bufferSize=4096

这里写图片描述
默认用户名密码admin/admin123,登录之后点击repositories如下所示
这里写图片描述
nexus仓库有group,hosted,proxy,virtual四种类型,下面介绍下public repositories说明
3rd party: 无法从公共仓库获得的第三方发布版本的构件仓库
Apache Snapshots: 用了代理ApacheMaven仓库快照版本的构件仓库
Central: 用来代理maven中央仓库中发布版本构件的仓库
Central M1 shadow: 用于提供中央仓库中M1格式的发布版本的构件镜像仓库
Codehaus Snapshots: 用来代理CodehausMaven 仓库的快照版本构件的仓库
Releases: 用来部署管理内部的发布版本构件的宿主类型仓库
Snapshots:用来部署管理内部的快照版本构件的宿主类型仓库

猜你喜欢

转载自blog.csdn.net/fuyuwei2015/article/details/74508488