Modify maven's setting.xml under idea to configure Alibaba Cloud image

1. Open the maven plugin that comes with idea or the maven installed by yourself, find the conf folder where the configuration parameters are stored, and edit the settings.xml configuration file.

 

2. Find the mirror label and modify it to the following information:

<mirror>

  <id>alimaven</id>

  <name>aliyun maven</name>

  <url>http://maven.aliyun.com/nexus/content/groups/public/</url>

  <mirrorOf>central</mirrorOf>

</mirror>

 

3. Configure the maven plugin in the idea,

Set the Maven home directory parameter to the setting configuration in which maven version you just changed (maven2 or maven3).

Set the    User setting file to the setting.xml file you just modified.

Set Localrepository as the custom repository downloaded by maven (you can create a new directory and put it here to reduce the pressure on the c drive).

 

4. When creating a maven project, you can directly set the maven version (the requirement is that the setting.xml in this version has been modified), and the maven repository.

 

Guess you like

Origin http://43.154.161.224:23101/article/api/json?id=325480924&siteId=291194637