Set up AndroMDA build environment on Windows

Notes on Setting up AndroMDA build environment on Windows

This tutorial show you how to set up AndroMDA build environment on Windows

Set up JDK and JAVA_HOME


Windows 2000/XP

  1. Unzip the distribution archive, i.e. apache-maven-2.0.9-bin.zip to the directory you wish to install Maven 2.0.9. These instructions assume you chose "C:Program FilesApache Software Foundation" . The subdirectory apache-maven-2.0.9 will be created from the archive.
  2. Add the M2_HOME environment variable by opening up the system properties (WinKey + Pause), selecting the “Advanced” tab, and the “Environment Variables” button, then adding the M2_HOME variable in the user variables with the value "C:Program FilesApache Software Foundationapache-maven-2.0.9" . Note : for Maven < 2.0.9, be sure that the M2_HOME doesn’t have a ” as last character.
  3. In the same dialog, add the M2 environment variable in the user variables with the value "%M2_HOME%bin" .
  4. Optional : in the same dialog, add the MAVEN_OPTS environment variable in the user variables to specify JVM properties, e.g. the value "-Xms256m -Xmx512m" . This environment variable can be used to supply extra options to Maven.
  5. In the same dialog, update/create the Path environment variable in the user variables with the value "%M2%;%Path%" to add maven available in the command line.
  6. In the same dialog, make sure that JAVA_HOME exists in your user variables or in the system variables and it is set to the location of your JDK, e.g. "C:Program FilesJavajdk1.5.0_02" and that "%JAVA_HOME%bin" is in your Path environment variable.
  7. Open a new command prompt (Winkey + R then type "cmd" ) and run "mvn --version" to verify that it is correctly installed.