Search This Blog

Wednesday, November 21, 2018

What version of Java is being used by Maven

mvn -version will output which java it's using.


$ mvn -version
Apache Maven 3.5.0
Maven home: /usr/share/maven
Java version: 9-Ubuntu, vendor: Oracle Corporation
Java home: /usr/lib/jvm/java-9-openjdk-amd64
Default locale: en_US, platform encoding: UTF-8
OS name: "linux", version: "4.4.0-98-generic", arch: "amd64", family: "unix"