java中关于maven的配置settings.xml

2022-07-01  本文已影响0人  Mracale

apache-maven-3.5.4\conf\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">
  
  <pluginGroups>

  </pluginGroups>

  <proxies>

  </proxies>

  <servers>
    
  </servers>

  <localRepository>C:\maven-repository</localRepository>
  <mirrors>
    <mirror> 
      <id>alimaven</id> 
      <mirrorOf>central</mirrorOf> 
      <name>aliyun maven</name> 
      <url>http://maven.aliyun.com/nexus/content/groups/public/</url> 
    </mirror>
  </mirrors>

  <profiles>
    <id>jdk-1.8</id> 
    <activation> 
      <activeByDefault>true</activeByDefault> 
      <jdk>1.8</jdk> 
    </activation> 
    <properties> 
      <maven.compiler.source>1.8</maven.compiler.source> 
      <maven.compiler.target>1.8</maven.compiler.target> 
      <maven.compiler.compilerVersion>1.8</maven.compiler.compilerVersion> 
    </properties>
  </profiles>

</settings>

上一篇 下一篇

猜你喜欢

热点阅读