"Snaptype Nexus" to build a Maven repository

Source: Internet
Author: User
Tags maven central sonatype

The local Development private library is designed to solve the problem that the local start is limited by the network environment, and the concrete construction steps include the following steps:

1, the server is using Ubuntu, first download the installation package (version number: 2.12),: http://www.sonatype.org/nexus/go/After the download is complete, the tar.gz compression package is extracted directly to the/OPT directory;

2, the specific will see two folders, respectively, Snaptype-work and nexus-2.12.1-01, because the current path needs to use root permissions to handle,

Edit Startup Script/opt/nexus-2.12.1-01/bin/nexus

Turn on script execution User Configuration item Run_as_user=root

Save the configuration;

3. Start the service

./nexus Start

After the correct boot is complete, access the Http://127.0.0.1:8081/nexus in the browser

Click Login in the upper right corner to login, the default account is admin/admin123

Then respository the basic configuration of the local repository in the left menu:

4. Basic Configuration

After the above startup is complete, the absolute path corresponding to the local warehouse http://127.0.0.1:8081/nexus/content/groups/public/is/opt/sonatype-work/nexus/storage/ Public

5. How to use the local database properly

The main focus is to modify the URL address of the MAVEN central repository to a local warehouse address, such as http://127.0.0.1:8081/nexus/content/groups/public/

"Snaptype Nexus" to build a Maven repository

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.