Monday, March 23, 2015

Make a Maven Project



Make a Maven Project:
Step - 1:
Java path set as
JAVA_HOME = C:\Program Files\Java\jdk1.7.0_51
PATH = ;%JAVA_HOME%\bin;

Step - 2:
First extract the apache-maven-3.2.5-bin.tar.gz file. Then go to "Environment Setting". Make a path to bin folder of maven.
PATH = ;C:\apache-maven\bin;

Step - 3:
Then restart the PC and check in command prompt as
mvn -v

It will give as below:
C:\Users\USER>mvn -v
Apache Maven 3.2.5 (12a6b3acb947671f09b81f49094c53f426d8cea1; 2014-12-15T02:29:23+09:00)
Maven home: C:\apache-maven\bin\..
Java version: 1.7.0_51, vendor: Oracle Corporation
Java home: C:\Program Files\Java\jdk1.7.0_51\jre
Default locale: en_US, platform encoding: MS932
OS name: "windows 7", version: "6.1", arch: "amd64", family: "windows"
C:\Users\USER>

Step - 4:
Next open the command prompt. Then go to project folder.
My folder is
E:\workspace\test
Then run the command.
mvn eclipse:eclipse

No comments:

Post a Comment