windows nexus-3.20安装
作者:互联网
1.Nexus官网:https://www.sonatype.com/download-oss-sonatype
2.环境变量
NEXUS_HOME = D:\nexus-3.20.1-01-win64\nexus-3.20.1-01
path = %NEXUS_HOME%\bin
3.修改配置文件
-Xms256m
-Xmx256m
-XX:MaxDirectMemorySize=512m
D:\nexus-3.20.1-01-win64\nexus-3.20.1-01\bin\nexus.vmoptions
4.nexus-3.16.2-01 cmd启动报错“Could not start service. Error code: 1060”
解决方案: 进入到nexus的bin目录 “nexus /start” 执行会出现“Could not start service. Error code: 1060”,这是因为nexus版本造成的启动命令不一样,改为“nexus /run”就可以正常启动了
5.访问地址:http://127.0.0.1:8081/
修改为:admin/admin123
安装后的默认密码:D:\nexus-3.20.1-01-win64\sonatype-work\nexus3\admin.password
登录后提示修改密码,该文件消失了。
6.本地仓库地址:
http://127.0.0.1:8081/repository/maven-public/
http://127.0.0.1:8081/repository/maven-central/
7.maven配置文件 D:\apache-maven-3.2.3\conf\settings.xml 最终更新如下:
<profile> <id>nexus</id> <activation> <jdk>1.8</jdk> </activation> <repositories> <repository> <id>nexus</id> <name>LAN nexus</name> <url>http://127.0.0.1:8081/repository/maven-public/</url> <releases> <enabled>true</enabled> </releases> <snapshots> <enabled>false</enabled> </snapshots> </repository> </repositories> <pluginRepositories> <pluginRepository> <id>nexus central</id> <name>LAN nexus central</name> <url>http://127.0.0.1:8081/repository/maven-central/</url> <releases> <enabled>true</enabled> </releases> <snapshots> <enabled>false</enabled> </snapshots> </pluginRepository> </pluginRepositories> </profile>
标签:0.1,01,3.20,windows,maven,nexus,127.0 来源: https://www.cnblogs.com/oktokeep/p/16361858.html