Build a Maven repository using Nexus

Source: Internet
Author: User

Build a Maven repository using Nexus
1. PurposeBy creating your own private server, you can reduce the load on the central repository, save Internet bandwidth, accelerate maven building, and deploy your own components, so that you can use maven efficiently, nexus is a popular Maven repository management software.2. Download nexus2.1 URL: http://www.sonatype.org/nexus/, I choose to download zippackage

2.2 unzip to the E disk, select enter the version of the machine to enter, I choose: E: \ nexus-2.12.1-01-bundle \ nexus-2.12.1-01 \ bin \ jsw \ windows-x86-64, you can install nexus as a windows Service and view and start it in the service.


If the startup fails, the default service port 8081 may be in use. You can modify it in E: \ nexus-2.12.1-01-bundle \ nexus-2.12.1-01 \ conf \ nexus. properties.
2.3 open the first interface in the browser: http: // 127.0.0.1: 8082/nexus, default user name and password: admin/admin123 <喎?http: www.bkjia.com kf ware vc " target="_blank" class="keylink"> Vc3Ryb25nPjxiciAvPg0KPGltZyBhbHQ9 "" src = "http://www.bkjia.com/uploads/allimg/160414/04130C441-5.png" title = "\"/> 2.4 create a host repository and specify the location of the local repository (E: \ MavenRepository contains common components)


2.5 create a proxy repository. You can use the OSC Public Address:
Http://maven.oschina.net/content/groups/public/
2.6 create a warehouse group. A warehouse group can correspond to multiple warehouses. Here we test the settings of host1 and proxy1.

2.7 set up an Open Library for Internet users. Access address: http: // 127.0.0.1: 8082/nexus/content/groups/public/

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.