STIW3054-A172 / Main-Issues

1 stars 1 forks source link

Exercise_04 #5

Closed zhamri closed 6 years ago

zhamri commented 6 years ago

Download Maven and install to your local machine. Finally run mvn -version at command prompt (Terminal). If successful, then:

  1. Write the installation process step-by-step here.
  2. References.
kzkit commented 6 years ago
  1. Make sure JDK is installed, and “JAVA_HOME” variable is added as Windows environment variable.

  2. Download Apache Maven Visit Maven official website, download the Maven zip file, for example : apache-maven-3.2.2-bin.zip. Unzip it to the folder you want to install Maven.

  3. Add M2_HOME and MAVEN_HOME Add both M2_HOME and MAVEN_HOME variables in the Windows environment, and point it to your Maven folder.

  4. Add To PATH Update PATH variable, append Maven bin folder – %M2_HOME%\bin, so that you can run the Maven’s command everywhere.

  5. Verification Done, to verify it, run mvn –version in the command prompt. You should get

C:\Users\mkyong>mvn -version
Apache Maven 3.2.2 (45f7c06d68e745d05611f7fd14efb6594181933e; 2014-06-17T21:51:42+08:00)
Maven home: C:\Program Files\Apache\maven
Java version: 1.7.0_65, vendor: Oracle Corporation
Java home: C:\Program Files\Java\jdk1.7.0_65\jre
Default locale: en_US, platform encoding: Cp1252
OS name: "windows 8.1", version: "6.3", arch: "amd64", family: "windows"
C:\Users\mkyong>

References : https://www.mkyong.com/maven/how-to-install-maven-in-windows/

ghost commented 6 years ago
  1. Make sure java sdk is installed.Then go to advances system settings and make sure Java_home is added into the System Variables

screen shot 03-19-18 at 07 55 pm

  1. Download Apache Maven file then unzip the file to the folder you want.For example : c:\users\Rasyid\Maven

screen shot 03-19-18 at 07 58 pm

  1. Add both M2_HOME and MAVEN_HOME variables to the System variables then point the variable values to the maven folder

screen shot 03-19-18 at 08 13 pm

screen shot 03-19-18 at 08 14 pm

  1. Update PATH variable, append Maven bin folder – %M2_HOME%\bin, so that you can run the Maven’s command everywhere

screen shot 03-19-18 at 08 07 pm

  1. Then check whether if the maven successfully installed or not by click mvn -version in the command promt

screen shot 03-19-18 at 08 10 pm

As you can see,The picture above shows that the installation was success

References : https://www.mkyong.com/maven/how-to-install-maven-in-windows/

AsadRazali commented 6 years ago
  1. Check JDK is installed first, and “JAVA_HOME” variable is added as Windows environment variable. 1

  2. Download Apache Maven Visit Maven official website, download the Maven zip file, for example : apache-maven-3.2.2-bin.zip. Unzip it to the folder you want to install Maven.

2

  1. Add M2_HOME and MAVEN_HOME Add both M2_HOME and MAVEN_HOME variables in the Windows environment, and point it to your Maven folder.

3

  1. Add To PATH Update PATH variable, append Maven bin folder – %M2_HOME%\bin, so that you can run the Maven’s command everywhere.

4

  1. Verification Done, to verify it, run mvn –version in the command prompt

5

Picture above show the installation is successful.

References : https://www.mkyong.com/maven/how-to-install-maven-in-windows