Maven-Repository Manager (Nexus)-download, install, run, and upgrade maven-nexus

Source: Internet
Author: User
Tags sonatype

Maven-Repository Manager (Nexus)-download, install, run, and upgrade maven-nexus

Chen kichao

====================================

1. Introduction

Using Nexus has two purposes:

I,It is a component of our project that uses Nexus to access a remote central repository, so that dependencies can be downloaded to the local device. The next time a developer accesses a downloaded component, the developer does not need to access the remote central repository and directly access the local private server. This advantage is obvious. In a team, it helps us save both bandwidth and time.

II,You can easily manage your internal development components. You can upload the internal development components to Nexus, and other developers can obtain them through dependencies.

2. Download

Http://nexus.sonatype.org/downloads/

Select the desired version and click Download!

3. Install

Because Nexus is a web application, it can be directly decompressed after download.

Go to the directory: D: \ nexus-2.10.0-02-bundle \ nexus-2.10.0-02 \ bin \ jsw, select the operating system version, and run


After the startup, access localhost: 8081/nexus and log on (default port: 8081, Username: admin, password: admin123)


4. Check the ticket after installation

After the installation is complete, you need to perform the following project operations to confirm!

1). Change the administrator password and Email:

Click users in the left-side navigation pane of the browser window, select the users in the list, and right-click to bring up menu modifications.

2) Configure SMTP settings:

Omitted

3) enable remote index download

Nexus has three important agent repositories: Central Maven repository, Apache snapshot repository, and Codehaus snapshot repository. Each of these repositories has

It is impractical to download all the content of each repository, including thousands or tens of thousands of components. For this reason, most repositories maintain

The Lucene index of the entire content to provide quick and effective search. Nexus uses these remote index search components, but the default settings are disabled.

Index download.

To download a remote index,

1. Click Repositories under the Views/Repositories menu to change the Download Remote Indexes of the three agent Repositories to true.

2. Right-click each agent repository and select Re-index. This triggers Nexus to download remote index files. Nexus may need to download the entire index

Several minutes, but once downloaded, you can search for all the content in the Maven repository.

Note:
Sonatype wants to be sure not to create a product that will cause a large number of congestion to the central repository by default. Although most users want to enable remote Cable

We still don't want to make it the default setting. When millions of users download a new version of Nexus, they will continue to download this 21 MB Central Cable.

When cited, it will create denial-of-service attacks against ourselves. If you want Nexus to return all search results, you must enable the remote cable explicitly.

Download.

4. Upgrade

After using Nexus for a period of time, your private server will naturally Save the components you have downloaded before. However, when you want to upgrade, you naturally don't want these components to be downloaded from the central repository.

To upgrade Nexus, download the "upgrade" Distribution package instead of the "bundle" Distribution package.

To be continued...







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.