One, check the java version
/usr/libexec/java_home -V
Matching Java Virtual Machines (1):
1.8.0_281, x86_64: "Java SE 8" /Library/Java/JavaVirtualMachines/jdk1.8.0_281.jdk/Contents/Home
/Library/Java/JavaVirtualMachines/jdk1.8.0_281.jdk/Contents/Home
Two, download apache-maven
https://maven.apache.org/download.cgi
- Binary tar.gz archive: compiled binary files for Linux and Mac systems
- Binary zip archive: the compiled binary file of the Windows system
- Source tar.gz archive : Linux 和 Mac