IDEA配置Maven
我用的是IDEA默认的maven,可以修改仓库位置,默认在C盘,可以更改到D盘

如果使用的是自己下载的Maven以及镜像下载问题,需要使用下面的代码,先存起来备用
<localRepository>D:\web老师软件\tools\Maven\repository</localRepository>
<mirror>
<id>nexus-aliyun</id>
<mirrorOf>central</mirrorOf>
<name>Nexus aliyun</name>
<url>http://maven.aliyun.com/nexus/content/groups/public</url>
</mirror>
<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>