As part of my investigation into SonarQube, as per: -
I wanted to validate SQ's ability to scan Java projects.
SQ "assumes" that you're either using Maven or Gradle: -
so I thought I'd play with Maven, having used it for other Java work recently.
Thankfully, the Apache Maven project has a really useful tutorial on their site: -
which I followed, both on a Linux virtual server and on my Mac.
Here's a whiz-through the tutorial on my Mac ( with a bit of editorialising on my part ) : -
Validate Maven version
Apache Maven 3.6.3 (cecedd343002696d0abb50b32b541b8a6ba2883f)
Maven home: /usr/local/Cellar/maven/3.6.3_1/libexec
Java version: 1.8.0_251, vendor: Oracle Corporation, runtime: /Library/Java/JavaVirtualMachines/jdk1.8.0_251.jdk/Contents/Home/jre
Default locale: en_GB, platform encoding: UTF-8
OS name: "mac os x", version: "10.15.7", arch: "x86_64", family: "mac"