Mac Tutorials - Herong's Tutorial Examples - v3.08, by Herong Yang
Install Apache Maven on macOS
This section provides a tutorial on how to install Apache Maven as a tool to build Java applications on macOS.
If you want to develop Java applications on macOS, you should consider to install Apache Maven build tool. Here is what I did to install Apache Maven.
1. Go to Maven download Website at https://maven.apache.org/download.cgi".
2. Click apache-maven-3.6.2-bin.tar.gz to save it to the Downloads directory.
3. Start a Terminal window and run these commands to install it:
herong$ cd ~/Downloads herong$ tar -xf apache-maven-3.6.2-bin.tar herong$ sudo mkdir /Library/Maven herong$ sudo mv apache-maven-3.6.2/ /Library/Maven/
4. Verify the installation by running the "mvn" command.
herong$ /Library/Maven/apache-maven-3.6.2/bin/mvn --help
usage: mvn [options] [<goal(s)>] [<phase(s)>]
Options:
-am,--also-make If project list is specified, also
build projects required by the
list
-amd,--also-make-dependents If project list is specified, also
build projects that depend on
projects on the list
-B,--batch-mode Run in non-interactive (batch)
mode (disables output color)
-b,--builder <arg> The id of the build strategy to
use
-C,--strict-checksums Fail the build if checksums don't
match
-c,--lax-checksums Warn if checksums don't match
-cpu,--check-plugin-updates Ineffective, only kept for
backward compatibility
-D,--define <arg> Define a system property
-e,--errors Produce execution error messages
...
Table of Contents
Macintosh OS (Operating System) History
System and Application Processes
Keychain Access - Password Manager
Keychain Access - Certificate Manager
►Develop and Run Java Applications
Install JDK (Java Development Kit) on macOS
►Install Apache Maven on macOS
The Simplest Maven Project File
Use "profile" in Maven Project File
Use "parent" in Maven Project File
Install FOP (Formatting Objects Processor) on macOS