windows nexus

1.Nexus官网:2.环境变量NEXUS_HOME = D:nexus-3.20.1-01-win64nexus-3.20.1-01path = %NEXUS_HOME%bin3.修改配置文件-Xms256m-Xmx256m

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登录

发布者:admin,转转请注明出处:http://www.yc00.com/web/1754986469a5224261.html

相关推荐

  • windows nexus

    1.Nexus官网:2.环境变量NEXUS_HOME = D:nexus-3.20.1-01-win64nexus-3.20.1-01path = %NEXUS_HOME%bin3.修改配置文件-Xms256m-Xmx256m

    1月前
    160

发表回复

评论列表(0条)

  • 暂无评论

联系我们

400-800-8888

在线咨询: QQ交谈

邮件:admin@example.com

工作时间:周一至周五,9:30-18:30,节假日休息

关注微信