下载
下载地址:https://maven.apache.org/download.cgi
安装
解压即可
配置
打开安装目录中conf/settings.xml文件,添加以下内容:
设置本地仓库位置
<localRepository>D:\software\apache-maven-3.9.6\repository</localRepository>
阿里云仓库
<mirror>
<id>alimaven</id>
<mirrorOf>central</mirrorOf>
<name>aliyun maven</name>
<url>http://maven.aliyun.com/nexus/content/repositories/central/</url>
</mirror>
配置jdk版本
<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>
然后配置系统环境变量、idea配置maven(略)