Maven Learning Summary (ix)--using Nexus to build a maven

Source: Internet
Author: User

First, the purpose of building a nexus

Why to set up a nexus, the reason is very simple, some companies do not provide the network to the project team, so you can not use MAVEN to access the remote warehouse address, it is necessary to find a network in the LAN access to a network of machines, to build a nexus, and then developers to connect to this server, This will allow you to access MAVEN's remote repository through this PC with a nexus.

1.1. Nexus Architecture

  

Download and installation of Nexus 2.1, Nexus download

To download the latest version of Nexus,:http://www.sonatype.org/nexus/go, as shown in:

  

The compressed package that is obtained after the download is complete.

2.2. Nexus Installation

Unzip the tarball as shown in:

  

Open Directory NEXUS-2.10.0-02-BUNDLE\NEXUS-2.10.0-02\BIN\JSW, this directory below you will find there are many system versions of the Nexus environment, as shown in:

  

My Computer is Win7 (64) for the system, so I chose windows-x86-64 this version, of course, according to the personal computer system to select the corresponding version, open the Windows-x86-64 folder, you can see inside the file as shown:

  

The nexus is typically installed as a Windows service, so click Install-nexus.bat to install the Nexus as a window service and start automatically when it is powered on. As shown in the following:

  

As you can see from the list of services, the Nexus Service has not started yet, so we're going to start the Nexus Service, run nexus-2.10.0-02-bundle\nexus-2.10.0-02\bin\jsw\windows-x86-64 under " Start-nexus.bat "The batch program starts the service as shown in:

  

Start the service process as shown in:

  

Note that when you start the service, you must ensure that port 8081 is not occupied by another program, or the service cannot be started.

2.3. Test if the Nexus is successfully installed

After the Nexus service is started, enter "http://localhost:8081/nexus/" in the browser to access it, as shown in:

  

In the upper right corner there is a "log in" hyperlink, click Login, the default username is the admin password is admin123

  

  

As you can see, the Nexus can be accessed and logged in normally, which means the Nexus has been successfully installed.

Maven Learning Summary (ix)--using Nexus to build a maven

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.