IDEA arrangement position maven-- modify maven local repository of configuration and Ali cloud central warehouse

1.IDEA comes maven path

Find the installation path idea, and then locate \ plugins \ maven \ lib path, there maven2 and maven3
Here Insert Picture Description

2. Modify the position maven local repository

Settings.xml find the path, and open
at the approximate location of 50 lines will <localRepository>/path/to/local/repo</localRepository>remove comments, or remove the comment, change the path to the location maven local repository own settings and save.
Here Insert Picture Description

3. Configure Ali cloud central warehouse

In the approximate location of the line 150, the <mirrors>add under the label

<mirror>
      <id>alimaven</id>
      <name>aliyun maven</name>
 <url>http://maven.aliyun.com/nexus/content/groups/public/</url>
      <mirrorOf>central</mirrorOf>        
</mirror>

Here Insert Picture Description
Save've modified.

4. Configuration of IDEA maven

Set to open
Here Insert Picture Description
Here Insert Picture Description
later configured click OK!

Released nine original articles · won praise 1 · views 438

Guess you like

Origin blog.csdn.net/cMengZ/article/details/104578957