Verify Environment Variables

WARNING - TOPIC NOT WRITTEN - TOPIC ID: 1840

This topic has not yet been written. The content below is from the topic description.
Verify the environment variable changes and Maven install For Linux Users To verify that the changes have been implemented correctly, open a terminal and execute the following commands: Execute echo $M2_HOME, which should return the following result. [localhost]$ echo $M2_HOME /home/username/apache-maven-2.2.1 Execute echo $M2, which should return the following result. [localhost]$ echo $M2 /home/username/apache-maven-2.2.1/bin Execute echo $PATH, and verify the Maven /bin directory is included. [localhost]$ echo $PATH /home/username/apache-maven-2.2.1/bin Execute which mvn, which should display the path to the Maven executable. [localhost]$ which mvn ~/apache-maven-2.2.1/bin/mvn Execute mvn -version, which should display the Maven version, related Java version, and operating system information. [localhost]$ $ mvn -version Apache Maven 2.2.1 (r801777; 2009-08-07 05:16:01+1000) Java version: 1.6.0_0 Java home: /usr/lib/jvm/java-1.6.0-openjdk-1.6.0.0/jre Default locale: en_US, platform encoding: UTF-8 OS name: "Linux" version: "2.6.30.9-96.fc11.i586" arch: "i386" Family: "unix" For Windows Users To verify that the changes have been implemented correctly, open a terminal and execute the following command: In a command prompt, execute mvn -version C:> mvn -version Apache Maven 2.2.1 (r801777; 2009-08-06 12:16:01-0700) Java version: 1.6.0_17 Java home: C:SunSDKjdkjre Default locale: en_US, platform encoding: Cp1252 OS name: "windows xp" version: "5.1" arch: "x86" Family: "windows" You have now successfully configured Maven for use with the examples in this guide.