Maven setup on windows

/, JPA/Maven setup on windows

To set up Maven:

  1. Create a JAVA_HOME System Variable
  2. Create an M2_HOME System Variable
  3. Add %JAVA_HOME%\bin;
  4. %M2_HOME%\bin; to your System Path

Step 1 :

Step 2: 

  • Open your system properties, to do that right click on “My Computer” –> click on “Properties” –> click on “Advanced System Settings”. Below window will pop-up.
  • Click on “Environment Variables”.

Step 3: 

  • Under User Variables click on “New..” –> Create a JAVA_HOME variable, follow below screen.
  • Java home path is location of java installation in the system.

Step 4: 

  • Under User Variables click on “New..” –> Create a MAVEN_HOME variable, follow below screen.
  • Maven home path is location of maven installation(Extracted directory in Step 1).

Step 5: 

  • Under System Variables click on “path..” –> click on  “Edit” –> add java bin path to the path variable, follow below screen.
  • In java bin is the standard directory name where jars or native libraries of the application available and it will be in home path.

Step 6: 

  • Under System Variables click on “path..” –> click on  “Edit” –> add maven bin path to the path variable, follow below screen.
  • Now installation has completed.

Testing Installation :

  • Open new command line editor –>issue “mvn -version”.
  • If installation success you can see below screen.
2017-08-31T12:42:04+00:00Categories: Hibernate, JPA|Tags: , , , |0 Comments

Leave A Comment