"mvn -v" - Verify Apache Maven Version

Q

How to verify Apache Maven version? I have installed it on my Windows computer.

✍: FYIcenter.com

A

You can run the "mvn -v" command to verify your Apache Maven installation and get the version information

If your Maven installation is at C:\fyicenter\apache-maven-3.5.4, type in the following command:

C:\fyicenter>\fyicenter\apache-maven-3.5.4\bin\mvn -v

Apache Maven 3.5.4 (1edded0938998edf8bf061f1ceb3cfdeccf443fe; 2018-06-17T14:33:14-04:00)
Maven home: C:\fyicenter\apache-maven-3.5.4\bin\..

Java version: 10.0.1, vendor: Oracle Corporation, runtime: C:\PROGRA~1\Java\jdk-10.0.1
Default locale: en_US, platform encoding: Cp1252
OS name: "windows 7", version: "6.1", arch: "amd64", family: "windows"

If your JDK is installed at a different location, you can use %JAVA_PATH% environment variable to help:

C:\fyicenter>set JAVA_HOME=\fyicenter\jdk-1.8.0

C:\fyicenter>\fyicenter\apache-maven-3.5.4\bin\mvn -v

Apache Maven 3.5.4 (1edded0938998edf8bf061f1ceb3cfdeccf443fe; 2018-06-17T14:33:14-04:00)
Maven home: C:\fyicenter\apache-maven-3.5.4\bin\..
Java version: 1.8.0_45, vendor: Oracle Corporation, runtime: C:\local\jdk\jre
Default locale: en_US, platform encoding: Cp1252
OS name: "windows 7", version: "6.1", arch: "x86", family: "windows"

 

"mvn -h" - List Maven Commands and Options

Using Apache Maven

Using Apache Maven

⇑⇑ FAQ for Apache Maven

2018-10-31, 160👍, 0💬