常用 Maven 配置

<?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:/JAR-Repository/mavenRepository</localRepository>
  
    <mirrors>

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

    <profiles>

        <profile>
          <id>jdk-1.8</id>

          <activation>
            <jdk>1.8</jdk>
            <activeByDefault>true</activeByDefault>
          </activation>

          <repositories>
            <maven.compiler.source>1.8</maven.compiler.source>
            <maven.compiler.target>1.8</maven.compiler.target>
            <maven.compiler.compilerVersion>1.8</maven.compiler.compilerVersion>
          </repositories>
        </profile>
    
    </profiles>

</settings>

 

posted @ 2020-08-04 17:29  hapday  阅读(127)  评论(0编辑  收藏  举报