admin管理员组文章数量:1794759
windows nexus
1.Nexus官网:
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 最终更新如下:
代码语言:javascript代码运行次数:0运行复制<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>
本文参与 腾讯云自媒体同步曝光计划,分享自作者个人站点/博客。 原始发表:2022-06-10,如有侵权请联系 cloudcommunity@tencent 删除解决方案mavenwindowsnexus登录本文标签: windows nexus
版权声明:本文标题:windows nexus 内容由林淑君副主任自发贡献,该文观点仅代表作者本人, 转载请联系作者并注明出处:http://www.xiehuijuan.com/baike/1754986481a1709078.html, 本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌抄袭侵权/违法违规的内容,一经查实,本站将立刻删除。
发表评论