Build a Maven test server using Nexus in Windows, nexusmaven

Source: Internet
Author: User

Build a Maven test server using Nexus in Windows, nexusmaven

After Maven is configured by the development team, every maven generation defaults to C: \ Documents ents and Settings \ Administrator \. m2, but every time you need to download the jar package required for the request from the maven official website, this increases development costs and the amount of network requests, so you need to build a Maven test server.

First download Nexus from the official website: unzip the http://www.sonatype.org/nexus/go and enter \ nexus-2.1.2-bundle \ nexus-2.1.2 \ bin \ jsw \, select the folder according to the operating system type, I chose the windows-x86-64 (64-bit operating system) folder, and the following bat file is displayed.

Console-nexus.bat: Starting nexus

Install-nexus.bat: Install nexus as a window service

Start-nexus.bat: Start Windows installation service for nexus

Stop-nexus.bat: Disable Windows installation service for nexus

Uninstall-nexus.bat: uninstalling nexus as a window service

Double-click the console-nexus.bat to run. Enter http: // 127.0.0.1: 8081/nexus/in the browser.

8081 is the default port number. to modify the port number, go to nexus-2.1.2-bundle \ nexus-2.1.2 \ conf \ to open the nexus. properties file and modify the application-port attribute value.

Default username and password: admin/admin123. log on and check the password,

The nexus warehouse types are divided into four types: group: warehouse group, hosted: Host, proxy: proxy, virtual: virtual

We will not go into details about how to add and delete maven. Input http: // 127.0.0.1: 8081/nexus/content/groups/public/and maven setting. xm points to this url. l The nexus configuration is successful!

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.