0

Maven: install on macOS

 2 years ago
source link: https://marco.dev/maven-install-macos
Go to the source link to view the article. You can view the picture content, updated content and better typesetting reading experience. If the link is broken, please click the button below to view the snapshot at that time.

You received your new Apple shiny machine and you don't remember how to install Maven?

We will use Homebrew, de facto the package manager for macOS. We won't cover other methods in this example. If you cannot use Homebrew you will have to install directly maven and configure it.

Here the few steps required:

  1. Verify / Install Homebrew

Verify that brew is installed in your system.

marco@mac ~ % brew 
Example usage: 
  brew search TEXT|/REGEX/ 

If the command is not found go on https://brew.sh/ and copy / paste the instruction found in your Terminal.

  1. Install maven

In your macOS Terminal write:
`brew maven``

  1. Verify your maven installation

marco@Marcos-Mac-mini ~ % mvn -version 
Apache Maven 3.8.4 (9b656c72d54e5bacbed989b64718c159fe39b537) 
Maven home: /opt/homebrew/Cellar/maven/3.8.4/libexec 
Java version: 17.0.1, vendor: Homebrew, runtime: /opt/homebrew/Cellar/openjdk/17.0.1/libexec/openjdk.jdk/Contents/Home 

A quick video tutorial is on YouTube:


About Joyk


Aggregate valuable and interesting links.
Joyk means Joy of geeK