O'Reilly logo

Apache Maven 3 Cookbook by Srirangan

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

Verifying the Apache Maven installation

Did you just try and install Apache Maven? It’s time to verify it. Alternatively, your operating system may have Apache Maven pre-installed.

Whether user installed or pre-installed, here’s how to verify that your workstation has Apache Maven extracted and the operating system configured correctly.

How to do it...

  • You have installed Maven on your system, or so you think? Before you start using it, the setup and availability of Maven needs to be verified. This is done by executing the following command line:
    mvn -version
    
  • If Maven has been correctly installed, you will see something resembling the following output:
    Apache Maven 3.0.2
    Java version: 1.6.0_18
    Java home: /usr/lib/jvm/java-6-openjdk/jre
    Default locale: ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required