Use Nexus2 to build Maven local warehouse

Since the OS is WindowsXP and the Nexus3forWindows is an x64 version, you can only choose to install nexus2.

Windows (x86) platform, Nexus Repository Manager OSS 2.x

download link:

https://www.sonatype.com/download-oss-sonatype

After downloading, get nexus-2.14.8-01-bundle.zip, after decompression

 

The above picture is an example, the nexus-2.14.8-01 folder is the installation path of nexus2.

In the nexus-2.14.8-01\bin\jsw\windows-x86-32 directory

It is recommended to execute install-nexus.bat to install as a Windows service and start it. The service can be uninstalled via uninstall-nexus.bat.

At this point, the host repository is up and running, and we can access it through the following url:

http://localhost:8081/nexus

Log in:

Username: admin

Password: admin123

 Configure Nexus2 repository

Log in

Configure Alibaba Cloud

maven configuration

maven/conf\settings.xml

  <servers>
    
    <!--配置nexus仓库认证信息-->
    <server>
        <id>nexus-releases</id> 
        <username>admin</username> 
        <password>admin123</password> 
    </server> 
    <server> 
        <id>nexus-snapshots</id> 
        <username>admin</username> 
        <password>admin123</password> 
    </server> 
    
  </servers>

 

 

Guess you like

Origin http://43.154.161.224:23101/article/api/json?id=324928140&siteId=291194637