1.下载http://maven.apache.org/download.cgi
2.解压到安装目录,如:D:\apache-maven-3.0.5
3.配置环境变量
M2_HOME=D:\apache-maven-3.0.5
M2=%M2_HOME%\bin
path=%M2%
命令窗口中执行:mvn -v,运行正常则安装成功
4.设置本地库:
%M2%\conf\settings.xml中,<localRepository>E:\maven_repository</localRepository>
2.解压到安装目录,如:D:\apache-maven-3.0.5
3.配置环境变量
M2_HOME=D:\apache-maven-3.0.5
M2=%M2_HOME%\bin
path=%M2%
命令窗口中执行:mvn -v,运行正常则安装成功
4.设置本地库:
%M2%\conf\settings.xml中,<localRepository>E:\maven_repository</localRepository>