Maven: The Complete Reference
2.4. Testing a Maven Installation
Once Maven is installed, you can check the version by running
from the command-line. If Maven has been installed, you should see
something resembling the following output.
$ mvn -v Apache Maven 2.2.0 (r788681; 2009-06-26 08:04:01-0500) Java version: 1.5.0_19 Java home: /System/Library/Frameworks/JavaVM.framework/Versions/1.5.0/Home Default locale: en_US, platform encoding: MacRoman OS name: "mac os x" version: "10.5.7" arch: "i386" Family: "unix"
If you see this output, you know that Maven is available and ready to
be used. If you do not see this output, and your operating system
cannot find the
mvn command, make sure that your
M2_HOME environment variable have been properly set.