Maven by Example
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 3.0.1 Java version: 1.6.0_21 Java home: /System/Library/Frameworks/JavaVM.framework/Versions/1.6.0/Home Default locale: en_US, platform encoding: MacRoman OS name: "mac os x" version: "10.6.3" arch: "x86_64" Family: "mac"
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.