Friday, 18 January 2013

Maven: Installation For Beginners

 Follow steps 1 to 4 to create a sample web project using maven.
  Download apache maven here.
  1.  Set path for maven till /bin and JAVA_HOME/bin.
  2.  To test maven is properly configured or not, open command prompt, type mvn --version it will show the path variable.
  3. Type following instruction at the command prompt (Replace groupID with your package structure and artificatID with your projectname).
mvn archetype:generate -DgroupId=com.test -DartifactId=sampleWebApp -Dversion=1.0-SNAPSHOT -DarchetypeArtifactId=maven-archetype-webapp -DinteractiveMode=false

No comments:

Post a Comment