Nexus (Maven manager) download and installation

We take Nexus 2.x as an example to demonstrate the installation process of Nexus.

1. Enter  the Nexus 2.x download page and select the corresponding version to download according to the local operating system, as shown in the figure below.

Nexus 2.x download page

2. Unzip the downloaded Nexus installation package to the local disk, and you will get 2 directories: nexus-2.14.20-02 and sonatype-work, as shown below

Nexus unzip

in:

  • nexus-2.14.20-02: This directory contains files required to run Nexus 2.x, such as startup scripts, dependent jar packages, etc.
  • sonatype-work: This directory contains configuration files, log files, etc. generated by Nexus 2.x.

3. nexus-2.14.20-02 contains the following directories and files.

nexus2.x subdirectory 1

nexus-2.14.20-02 directory description, as shown in the following table.

subdirectory illustrate
bin Command center (start command, close command)
conf Configuration center (manages warehouse list, log configuration, and security settings)
lib Nexus library files, the directory where the jar packages required for Nexus runtime are located
logs Store log files
nexus Nexus App
tmp Store temporary files generated when Nexus is running

4. Enter the \nexus-2.14.20-02\bin\jsw folder and select the appropriate directory depending on the operating system version. Since my operating system is Windows 10 64-bit, I chose the windows-x86-64 directory. As shown below.

Nexus 2.x bin

5. After entering the windows-x86-64 directory, you can see the following files.

nexus bin

in:

  • console-nexus.bat: Starts Nexus and displays the startup process in the DOS command line.
  • install-nexus.bat: Install Nexus as a Windows service and start it automatically at boot.
  • start-nexus.bat: Start Nexus.
  • stops-nexus.bat: Stop Nexus.
  • uninstall-nexus.bat: Corresponds to install-nexus.bat, responsible for uninstalling the Nexus service.

6. Double-click to run install-nexus.bat to install the Nexus service, and then run start-nexus.bat to start the service.

Notice:

  • Run install-nexus.bat to install the service. If it prompts "wrapper | OpenSCManager failed - Access denied. (0x5)", just close the window and run it as an administrator to solve the problem.
  • Run start-nexus.bat to start the service. If it prompts "wrapper | OpenSCManager failed - Access denied. (0x5)", just close the window and run it as an administrator to solve the problem.

7. Visit http://localhost:8081/nexus. If the result is as shown below, it means the service started successfully. Otherwise, it means the service started failed.

Nexus welcom

8. Click the "Log In" button in the upper right corner of the homepage, enter the user name and password on the login page (the defaults are: admin and admin123 respectively), and finally click the "Log In" button to log in.

Nexus 2.x login

9. After successful login, the result is as shown below.

Nexus 2 login successful

Guess you like

Origin blog.csdn.net/qq_43079001/article/details/132402607