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