maven 配置文件settings.xml设置

打开这个配置文件

在相应标签下配置这些内容

 1   //将中央仓库修改为阿里云的仓库
 2   <mirrors>
 3      <mirror>
 4         <id>nexus-aliyun</id>
 5         <mirrorOf>*</mirrorOf>
 6         <name>Nexus aliyun</name>
 7         <url>http://maven.aliyun.com/nexus/content/groups/public</url>
 8     </mirror>
 9   </mirrors>
10   
11   //修改默认新建项目jdk版本
12   </profiles>
13       <profile>    
14         <id>jdk-1.8</id>    
15         <activation>    
16             <activeByDefault>true</activeByDefault>    
17             <jdk>1.8</jdk>    
18         </activation>    
19         <properties>    
20             <maven.compiler.source>1.8</maven.compiler.source>    
21             <maven.compiler.target>1.8</maven.compiler.target>    
22             <maven.compiler.compilerVersion>1.8</maven.compiler.compilerVersion>    
23         </properties>    
24     </profile>
25   </profiles>
26   
27   //本地仓库地址
28   <localRepository>D:/Repository</localRepository>

 

这是我个人学习的一点记录!!!!!!!!!!!!!!!!

 

posted @ 2018-01-18 09:17  生活这把杀猪刀  阅读(299)  评论(0编辑  收藏  举报