Maven配置本地仓库、中央仓库及默认编译环境JDK1.8

//setting.xml中相应位置配置
//配置默认编译环境JDK1.8
1
<profile> 2 <id>jdk-1.8</id> 3 <activation> 4 <activeByDefault>true</activeByDefault> 5 <jdk>1.8</jdk> 6 </activation> 7 <properties> 8 <maven.compiler.source>1.8</maven.compiler.source> 9 <maven.compiler.target>1.8</maven.compiler.target> 10 <maven.compiler.compilerVersion>1.8</maven.compiler.compilerVersion> 11 </properties> 12 </profile>

配置本地仓库:

1 <localRepository>E:\\localrepo</localRepository> 

配置中央仓库:

1 <mirror>
2       <id>alimaven</id>
3       <name>aliyun maven</name>
4       <url>http://maven.aliyun.com/nexus/content/groups/public/</url>
7       <mirrorOf>central</mirrorOf>        
8 </mirror>

 

posted @ 2018-02-26 15:35  迷途_小羔羊  阅读(440)  评论(0编辑  收藏  举报