1.下载解压
可参考README.txt
JDK:
1.7 or above (this is to execute Maven - it still allows you to build against 1.3
and prior JDK's).
Installing Maven
----------------
1) Unpack the archive where you would like to store the binaries, e.g.:
Unix-based operating systems (Linux, Solaris and Mac OS X)
tar zxvf apache-maven-3.x.y.tar.gz
Windows
unzip apache-maven-3.x.y.zip
2) A directory called "apache-maven-3.x.y" will be created.
3) Add the bin directory to your PATH, e.g.:
Unix-based operating systems (Linux, Solaris and Mac OS X)
export PATH=/usr/local/apache-maven-3.x.y/bin:$PATH
Windows
set PATH="c:\program files\apache-maven-3.x.y\bin";%PATH%
2.配置本地 仓库。修改conf-/setting.xml文件
3.修改中央仓库。默认在国外, 国内使用很慢,我这里用阿里的中央仓库,也可以用网易的,或者Apache的。
修改conf-/setting.xml文件
<mirrors>
<mirror>
<id>alimaven</id>
<name>aliyun maven</name>
<url>http://maven.aliyun.com/nexus/content/groups/public/</url>
<mirrorOf>central</mirrorOf>
</mirror>
</mirrors>
4.idea配置为刚刚下载的maven