The installation process of maven private server nexus

If the team develops and uses maven for project management, it is essential to establish their own use warehouse. Here, I will briefly introduce the installation process of a Nexus.

 

First of all, we need to download the nexus installation package from the official website, which is actually a decompression package address: http://www.sonatype.org/nexus/go

 

Here we download the nexus-2.1.2-bundle.zip version

 

1. After downloading the installation package, we extract it to the corresponding directory: such as D:\Program Files\nexus-2.1.2-bundle

 

2. Add to the system's environment variable path: D:\Program Files\nexus-2.1.2-bundle\nexus-2.1.2\bin

 

3. Run the following command in the cmd window: first enter the nexus command if the prompt is as follows:

usage:nexus{console:start:stop:restart:install:uninstall}The environment variable configuration is correct and can be recognized,

Next, formally install nexus into the service through the nexus install command,

Officially start by closing nexus start, the following indicates that the startup is correct.

 

 

If the following error occurs during startup:

 

 

At this point, go to the wrapper.conf file in the config folder under the bin directory of the nexus installation and make corresponding modifications: (D:\Program Files\nexus-2.1.2-bundle\nexus-2.1.2\bin\jsw \conf)

Set the value of wrapper.java.command under Set the JVM executable to the path corresponding to the java command in the JDK on your system:

 

before fixing:

 

 

After modification:

 

 

Then go to the running cmd window and enter the command nexus start If the situation in Figure 1 appears, the startup is successful.

 

Finally, enter the address of the browser: http://localhost:8081/nexus/index.html#welcome

 

If the command line is successfully started, and the warehouse interface cannot be opened in the browser, most of them are port 8081 conflicts, which can be modified

 

The application-port under conf/nexus.properties is another port, such as 4041

 

You will see the repository page like:

 

 

 

This is fully configured successfully.

Guess you like

Origin http://10.200.1.11:23101/article/api/json?id=327047185&siteId=291194637