Wednesday

Install maven on Windows by using "Command Line Prompt"

1.Download maven. http://maven.apache.org/download.cgi (apache-maven-3.3.9-bin.zip)
2. Unzip the file.
3. Open cmd - command line prompt. Set system variable using by below command. (Windows 7 & 8):    
setx M2_HOME "C:\apache-maven-3.3.9"

4. You can see M2_HOME path :
echo %M2_HOME%

5. Update PATH variable. Run the below command in command line prompt:
setx PATH "%PATH%;%M2_HOME%\bin"
echo %PATH%

6.Run the below command:
mvn - version








7. Eclipse - maven integration:
         Help - > install new software:   http://download.eclipse.org/technology/m2e/releases/

No comments:

Post a Comment