window - nexus安装
下载nexus安装包
\etc目录下nexus-default.properties设置jetty启动参数
打开powerShell
\bin目录下 .\nexus.exe /run (窗口不能关)
控制面板-程序-打开windows功能:telnet telnet 127.0.0.1 8081
http://localhost:8081 打开nexus,默认用户密码 admin/admin123
blob Stores指定私库文件地址(二进制大文件)
Config中Repositories建立私库(选择对应的blob)
Browse中upload上传对应私库jar包
users建立用户
随意上传一个jar包
maven使用
中央库--私库--本地库
下载maven安装包
/conf目录下设置settings.xml文件
设置本地库路径
<localRepository>D:/Tools/mavenRepository</localRepository>
设置nexus用户密码
<server>
<id>nexus</id>
<username>repouser</username>
<password>repopwd</password>
</server>
设置nexus镜像地址(id保持跟server一致)
<mirror>
<id>nexus</id>
<mirrorOf>*</mirrorOf>
<url>http://localhost:8081/repository/maven-public/</url>
</mirror>
3+版本批量上传
中央仓库--http://mvnrepository.com/
阿里云镜像
<mirror> <id>nexus-aliyun</id> <mirrorOf>*</mirrorOf> <name>Nexus aliyun</name> <url>http://maven.aliyun.com/nexus/content/groups/public</url> </mirror>
原文:https://www.cnblogs.com/wqff-biubiu/p/10393615.html