...
Table of Contents | ||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
|
...
Step 1. Obtain Installation Pack
...
2. Inside that path there will be one or more subdirectories, for example, jdk1.5.0_08
. If you have just installed the Java Development Kit, it is in the newest directory, which you can find by sorting by date. For example, it may be installed in C:\Program Files\Java\jdk1.6.0_25
. This is the installation path.
...
There are two ways to set up JAVA_HOME: via "System Properties", or via "Windows Command Prompt".
...
- Download and run the Apache Maven Windows installer package.
- Set the "Environment Variables" (create the system variable
M2_HOME
and edit the path. For example,C:\Program Files\Apache Software Foundation\maven-2.02.61
; path%M2_HOME%\bin
). - Make sure that the system variable JAVA_HOME is set to the location of your JDK, for example,
C:\Program Files\Java\jdk1.56
. - Run mvn - version to verify that it is installed correctly.
...