一、Maven安装及配置
1.下载安装包:apache-maven-3.5.2.zip,下载地址:http://maven.apache.org/download.cgi 2.安装及配置环境变量: $ 安装 -> 解压apache-maven-3.5.2.zip -> D:appapache-maven-3.5.2 $ 配置环境变量: MAVEN_HOME=D:appapache-maven-3.5.2 PATH=.;%MAVEN_HOME%bin 3.查看版本: $ mvn -v 4.配置settings.mxl ... <localRepository>D:mavenlocalRepositories</localRepository>
二、IDEA Intellji 配置Maven
1.打开File->Settings->Build,Execution,Deployment->maven 2.配置选项: $ Maven home directory = D:appapache-maven-3.5.2 $ User settings file = D:appapache-maven-3.5.2confsettings.xml $ Local Repository = D:mavenlocalRepositories