windows nexus-3.20安装

2024-10-09 08:48:05 浏览数 (1)

1.Nexus官网:https://www.sonatype.com/download-oss-sonatype

2.环境变量 NEXUS_HOME = D:nexus-3.20.1-01-win64nexus-3.20.1-01 path = %NEXUS_HOME%bin

3.修改配置文件 -Xms256m -Xmx256m -XX:MaxDirectMemorySize=512m D:nexus-3.20.1-01-win64nexus-3.20.1-01binnexus.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-win64sonatype-worknexus3admin.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.3confsettings.xml 最终更新如下:

代码语言:javascript复制
<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 人点赞