Jumat, 03 Juli 2009

install maven2 di Windows

  1. Download Maven:

    Maven 2.0.9

    GeoTools Maven Version
    2.6.x maven-2.0.9
    2.5.x maven-2.0.9
    2.4.x
    2.3.x
    2.2.x maven-2.0.5-bin.zip
  2. Unzip the maven download to your computer: C:\java\maven-2.0.9
    • The use of maven-2.0.9 is now required
    • If you do not have an unzip program may we recommend: http://www.7-zip.org/
  3. You need to have the following environmental variables set for maven to work:
    JAVA_HOME C:\j2sdk1.4.2_07\ Location of your JDK installation
    M2_HOME C:\java\maven-2.0.9 Location of your maven installation
    PATH %JAVA_HOME%\bin;%M2_HOME%\bin Include java and maven bin directory in your PATH

    (You can change all of that with Control Panel > System > Advanced > Environmental Variables)

Did it Work?

Open up a cmd window and type the following:

C:\java>mvn --version

Tidak ada komentar: