maven的setting设置

maven的setting设置,settings.xml文件,多写了几个仓库的地址;

<?xml version="1.0" encoding="UTF-8"?>
<settings xmlns="http://maven.apache.org/SETTINGS/1.0.0"
          xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
          xsi:schemaLocation="http://maven.apache.org/SETTINGS/1.0.0 http://maven.apache.org/xsd/settings-1.0.0.xsd">
  <localRepository>E:apache-maven-3.3.9-binLocal_repository</localRepository>
  <pluginGroups>
  </pluginGroups>
  <servers>
  </servers>
  <mirrors>
    <mirror>
      <id>alimaven</id>
      <name>aliyun maven</name>
      <url>http://maven.aliyun.com/nexus/content/groups/public/</url>
      <mirrorOf>central</mirrorOf>        
   </mirror>
   <mirror>
      <id>apachemaven</id>
      <name>apache org</name>
      <url>http://repo.maven.apache.org/</url>
      <mirrorOf>central</mirrorOf>        
    </mirror>
    <mirror>
      <id>apachemaven</id>
      <name>maven org</name>
      <url>http://mvnrepository.com/</url>
      <mirrorOf>central</mirrorOf>        
    </mirror>
    <mirror>
      <id>apachemaven</id>
      <name>repo1 org</name>
      <url>http://repo1.maven.org/maven2/ </url>
      <mirrorOf>central</mirrorOf>        
    </mirror>
  </mirrors>
  <profiles>
  </profiles>
</settings>
原文地址:https://www.cnblogs.com/stono/p/8116287.html