eclipse preferences maven user settings

1. External maven settings configuration, set the source to Alibaba Cloud,
set the configuration under properties localRepository, activeProfiles and profiles, other default
D:\Program Files\apache-maven-3.3.1\conf\settings.xml


<localRepository>D: /Program Files/apache-maven-3.3.1/repo</localRepository>


<activeProfiles>
    <!--make the profile active all the time -->
    <activeProfile>securecentral</activeProfile>
  </activeProfiles>
  <profiles>
< profile>
      <id>securecentral</id>
      <!--Override the repository (and pluginRepository) "central" from the
         Maven Super POM -->
      <repositories>
        <repository>
          <id> central</id>
          <!--<url>http://repo1.maven.org/maven2</url> -->
  <url>http://maven.aliyun.com/nexus/content/groups/public</url>
          <releases>
            <enabled>true</enabled>
          </releases>
        </repository>
      </repositories>
      <pluginRepositories>
        <pluginRepository>
          <id>central</id>
          <!--<url>http://repo1.maven.org/maven2</url> -->
  <url>http://maven.aliyun.com/nexus/content/groups/public</url>
          <releases>
            <enabled>true</enabled>
          </releases>
        </pluginRepository>
      </pluginRepositories>
    </profile>
  </profiles>



2. eclipse maven configure
windows->Preferences->maven->user setttings



users according to their own local path configuration

Guess you like

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