Beginner maven (3)-use Nexus instead of Artifactory as a maven

Source: Internet
Author: User
Tags command line zip artifactory

I've seen some nexus before, and I didn't care much about Artifactory when I first contacted Maven. Today thought that since Nexus can have the courage to come out to mix, should have a bit of true skill is, looked at Nexus installation introduction, quite simple, try no harm. So put on a small try, the result is overjoyed, Nexus performance is very good, especially after the remote index is opened, simply too convenient.

He decided to give up artifactory and use Nexus as his own. Tu, ashamed, quite a bit of the taste of the artifactory, just loaded up for a few days, was brutally abandoned ...

Sorted out, the whole process is recorded as follows:

1. First download Nexus

Download the latest version from the official website http://nexus.sonatype.org/download.html, because it is installed on Windows, so download the zip version, the size is about 16m.

2. Installation

Simply unzip the downloaded ZIP package to the installation directory.

The executable file is under the%nexus installation directory%\nexus-webapp-1.0.0\binjsw\windows-x86-32:

Installnexus.bat/uninstallnexus.bat is install/uninstall Nexus for Windows service, if necessary set Nexus can be installed for automatic boot to Windows The service then sets the startup mode to Automatic.

Nexus.bat is to start Nexus directly on the command line, and if you do not want to install Nexus as Windows service, you can use this file to manually control the Nexus startup exit.

3. Configure Nexus

Login first, default address http://localhost:8081/nexus/, default username password is admin/admin123.

The most important thing is to open the remote index download, the function of indexing is so good.

Nexus by default is to turn off remote indexing downloads, mainly to worry about the huge burden on the server, we need to manually open.

The way to open:

Click the repositories below the Administration menu to place the three warehouses Apache Snapshots,codehaus snapshots,maven the download Remote Indexes modified to True. Then right-click on the three warehouses and select Re-index so that Nexus will download the remote index file.

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.