maven 配置文件settings.xml设置

时间:2023-03-08 20:40:36

打开这个配置文件

maven 配置文件settings.xml设置

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

   //将*仓库修改为阿里云的仓库
<mirrors>
<mirror>
<id>nexus-aliyun</id>
<mirrorOf>*</mirrorOf>
<name>Nexus aliyun</name>
<url>http://maven.aliyun.com/nexus/content/groups/public</url>
</mirror>
</mirrors> //修改默认新建项目jdk版本
</profiles>
<profile>
<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>
</profile>
</profiles> //本地仓库地址
<localRepository>D:/Repository</localRepository>

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