PW Maven repository index configuration (detailed

Disclaimer: This article is a blogger original article, shall not be reproduced without the bloggers allowed. https://blog.csdn.net/qq_29556507/article/details/73070825

1 First, build a good maven PW,

• To solve the problem

- LAN only one computer connected to the Internet

• Raw materials: nexus-latest-bundle.zip

• build step

- unzip nexus-latest-bundle.zip

- into the nexus-latest-bundle \ nexus-2.10.0-02 \ bin \ jsw directory, select the operating system that matches the current directory

- Run as administrator: console-nexus.bat

- Run as administrator: install-nexus.bat (Nexus creation service)

- Run as administrator: start-nexus.bat (Start Nexus Services)

Download maven PW Tools

 

if

•Error message

–Thenexus service was launched, but failed to start.

•Solution

- find nexus-latest-bundle \ nexus-2.10.0-02 \ bin \ jsw \ conf \ wrapper.conf file

- find #Set the JVM executable

- Modify wrapper.java.command attributes, such as: wrapper.java.command = D: \ DevInstall \ Java \ jdk1.8.0_111 \ bin \ java

 

 

 

• Nexus default access a central repository, download speed is very slow. Access Ali cloud images will be much faster.

• Ali cloud images Address: http://maven.aliyun.com/nexus/content/groups/public/

 

 

 

Local warehouse setting this time, it started maven to find conf in the settings.xml in maven

Profiles

 

 

 

 

 

 

 

 

This is the effect

 

 

 

After this configuration, you download something, can save warehouse space, no extra little more

 

Guess you like

Origin blog.csdn.net/qq_29556507/article/details/73070825