Setting up MAVEN test server with Nexus in Windows environment

Source: Internet
Author: User

After the development team has configured MAVEN, each time MAVEN generates a default of C:\Documents and settings\administrator\.m2, it needs to download the jar package for the request from the MAVEN website every time. This increases the cost of development and the amount of network requests, so you need to build a MAVEN test server.

First downloaded from the official website Nexus:http://www.sonatype.org/nexus/go decompression into the \nexus-2.1.2-bundle\nexus-2.1.2\bin\jsw\, according to the operating system Type selection folder, I chose the windows-x86-64 (64-bit operating system) folder to see the bat file as shown below when you enter.

Console-nexus.bat: Start Nexus

Install-nexus.bat: Installing a Nexus into a window service

Start-nexus.bat: Window installation service to start Nexus

Stop-nexus.bat: Turn off the Nexus Window installation service

Uninstall-nexus.bat: Cancel to install Nexus as window service

Double-click Console-nexus.bat to run. Enter http://127.0.0.1:8081/nexus/in the browser, if it can be opened on behalf of the Nexus has started successfully.

8081 is the default port number, to modify the port number can go into the nexus-2.1.2-bundle\nexus-2.1.2\conf\ open nexus.properties file, modify the Application-port property value is available.

Default user name and password: admin/admin123, log in to view,

Nexus Warehouse types are divided into the following four kinds: Group: Warehouse Group, hosted: Host, Proxy: agent,virtual: dummy

How to add and remove is no longer described in detail, input http://127.0.0.1:8081/nexus/content/groups/public/,maven setting.xm point to this URL can be, l to this nexus configuration success!

Setting up MAVEN test server with Nexus in Windows environment

Related Article

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.