2) 下载Maven

时间:2023-03-09 15:07:54
2) 下载Maven

2) 下载Maven

http://maven.apache.org/

http://maven.apache.org/download.cgi

Maven 3.3.3 (Binary tar.gz)

Maven 3.3.3 (Binary zip)

Maven 3.3.3 (Source tar.gz)

Maven 3.3.3 (Source zip)

注:具体版本以官网为准。

这几个包的区别:

Installing Maven
----------------
1) Unpack the archive where you would like to store the binaries, eg: 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, eg: 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% 4) Make sure JAVA_HOME is set to the location of your JDK 5) Run "mvn --version" to verify that it is correctly installed.

——摘自“README.txt"

所以区别显而易见:

.tar.gz用于linux

.zip 用于windows

另外src.zip 是源码

.zip 是安装包

下载之前版本

https://maven.apache.org/download.cgi

If you still want to use an old version you can find more information in the Maven Releases History and can download files from the archives for versions 3.0.4+ and legacy archives for earlier releases.