Dear Wiki user,

You have subscribed to a wiki page or wiki category on "Maven Wiki" for change 
notification.

The following page has been changed by AlexMayorga:
http://wiki.apache.org/maven/MavenInWindows

------------------------------------------------------------------------------
   * '''Install''': if you downloaded the Windows Installer, locate the .exe, 
double click on it and follow instructions. Please note the ''Destination 
Folder'' as it will be set as your ''MAVEN_HOME'' variable.
  
    or
-  * '''Decompress''': use your preferred decompressing tool to extract into a 
folder of choice. Please note the ''Destination Folder'' as you will set your 
''MAVEN_HOME'' variable to it.
+  * '''Decompress''': use your preferred decompressing tool to extract into a 
folder of choice. Please note the ''Destination Folder'' as you will set your 
{{{MAVEN_HOME}}} variable to it.
  
-  * '''Verify Environment Variables''': under Windows 2000 and Windows XP, 
open the Control Panel, and open the System panel. Under the Advanced tab, 
select the Environment Variables button. Maven needs a ''JAVA_HOME'' 
environment variable set this variable should be the directory where a JDK is 
installed (note that a JRE is not sufficient). This directory will contain the 
bin, jre and lib directories. Check if you have this variable, if not, set it 
to your [http://java.sun.com/j2se/1.5.0/install-windows.html JDK Installation] 
main folder (Something like: ''C:\jdk1.5.0_04''). If you used Windows Installer 
''MAVEN_HOME'' variable should be already set, if it's not please follow next 
step.
+  * '''Verify Environment Variables''': under Windows 2000 and Windows XP, 
open the Control Panel, and open the System panel. Under the Advanced tab, 
select the Environment Variables button. Maven needs a {{{JAVA_HOME}}} 
environment variable set this variable should be the directory where a JDK is 
installed (note that a JRE is not sufficient). This directory will contain the 
bin, jre and lib directories. Check if you have this variable, if not, set it 
to your [http://java.sun.com/j2se/1.5.0/install-windows.html JDK Installation] 
main folder (Something like: {{{C:\jdk1.5.0_04}}}). If you used Windows 
Installer {{{MAVEN_HOME}}} variable should be already set, if it's not please 
follow next step.
  
-  * '''Set ''MAVEN_HOME'' Variable''': under Windows 2000 and Windows XP, open 
the Control Panel, and open the System panel. Under the Advanced tab, select 
the Environment Variables button. Click the New... button and input MAVEN_HOME 
as the Variable Name and the whole path to your Maven installation or 
extraction ''Destination Folder'' as the Variable Value, then click OK.
+  * '''Set {{{MAVEN_HOME}}} Variable''': under Windows 2000 and Windows XP, 
open the Control Panel, and open the System panel. Under the Advanced tab, 
select the Environment Variables button. Click the New... button and input 
{{{MAVEN_HOME}}} as the Variable Name and the whole path to your Maven 
installation or extraction ''Destination Folder'' as the Variable Value 
(something like {{{C:\Program Files\Maven 1.2.1}}}), then click OK.
  
-  * '''Add ''MAVEN_HOME'' to ''PATH'' Variable'''(Optional): under Windows 
2000 and Windows XP, open the Control Panel, and open the System panel. Under 
the Advanced tab, select the Environment Variables button. It is convenient to 
add ''MAVEN_HOME'' to the ''PATH'' variable so Maven commands can be accessible 
system wide.
+  * '''Add {{{%MAVEN_HOME%\bin}}} to the {{{PATH}}} Variable'''(Optional): 
under Windows 2000 and Windows XP, open the Control Panel, and open the System 
panel. Under the Advanced tab, select the Environment Variables button. It is 
convenient to add {{{MAVEN_HOME}}} to the {{{PATH}}} variable so Maven commands 
can be accessible system wide.
  
-   *''User PATH'': if you want Maven commands accessible system wide just for 
the current user and you already have a ''PATH'' user variable, select it and 
click Edit, go to the end of the variable value and if there isn't one add a 
semicolon (;) and after it "%MAVEN_HOME%" (without quotes) then click OK. If 
there is not a ''PATH'' user variable create one by clicking the New... button 
and input PATH as the Variable Name and "%MAVEN_HOME%\bin" (without quotes) as 
the Variable Value, then click OK.
+   *''User {{{PATH}}}'': if you want Maven commands accessible system wide 
just for the current user and you already have a {{{PATH}}} user variable, 
select it and click Edit, go to the end of the variable value and if there 
isn't one add a semicolon {{{;}}} and after it {{{%MAVEN_HOME%\bin}}} then 
click OK. If there is not a {{{PATH}}} user variable create one by clicking the 
New... button and input PATH as the Variable Name and {{{%MAVEN_HOME%\bin}}}  
as the Variable Value, then click OK.
  
-   *''System PATH'': if you want Maven commands accessible system wide for 
every user , select ''PATH'' system variable and click Edit, go to the end of 
the variable value and if there isn't one add a semicolon (;) and after it 
"%MAVEN_HOME%\bin" (without quotes) then click OK.
+   *''System {{{PATH}}}'': if you want Maven commands accessible system wide 
for every user, select {{{PATH}}} system variable and click Edit, go to the end 
of the variable value and if there isn't one add a semicolon {{{;}}} and after 
it {{{%MAVEN_HOME%\bin}}} then click OK.
  
-  * '''Test Maven''': by now your Maven should be working. Open a command 
prompt, if you added ''MAVEN_HOME'' to your user or system ''PATH'' variable, 
you should be able to type "maven -v" (no quotes) anywhere, if not you should 
be inside the folder where you installed Maven. You should see something like 
this after you issue the command:
+  * '''Test Maven''': by now your Maven should be working. Open a command 
prompt, if you added ''MAVEN_HOME'' to your user or system {{{PATH}}} variable, 
you should be able to type {{{maven -v}}} (no quotes) anywhere, if not you 
should be inside the folder where you installed Maven. You should see something 
like this after you issue the command:
  
  {{{  __  __
  |  \/  |__ _Apache__ ___

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to