Maven Project Creation Commnds

 Maven is a great build management tool.



 

Create a Simple Maven Projet

mvn archetype:create -DgroupId=com.onebeartoe.timer -DartifactId=timer

 

Parent Project Creation

  1. mnv command

  2. POM configuration


 

Create DAO Project


 

DAO Project Creation - Maven Command

 


 

Parent Project Creation - Maven Command

mvn archetype:create -DarchetypeGroupId=org.apache.maven.archetypes -DarchetypeArtifactId=maven-archetype-quickstart -DgroupId=sample-enterprise-parent-project-GroupId -DartifactId=sample-enterprise-parent-project-ArtifactId -DpackageName= -Dversion=1.0

Change to the directory created by this command before calling any commands to create child projects.

 

Parent Project Creation - POM Configuration


 

Child Projects

The commands for the child projects must be called using the parent Maven project as the base directory.

 

DAO Project Creation - POM Configuration


 

Create Enterprise Service Project


 

Create Enterprise Application Project


 

Enterprise Service Project Creation - Maven Command

 


 

Enterprise Service Project Creation - POM Configuration


 

Enterprise Application Module Creation - Maven Command

 


 

Enterprise Application Module Creation - POM Configuration


 

Create Enterprise Application Project


 

Create Web Application Project


 

Parent Project Creation - Maven Command

mvn archetype:create -DarchetypeGroupId=org.apache.maven.archetypes -DarchetypeArtifactId=maven-archetype-webapp -DgroupId=sample-enterprise-parent-project-GroupId.sample-enterprise-parent-project-ArtifactId -DartifactId=sample-web-application-module -DpackageName=sep.web.application -Dversion=1.0


back  

Web Application Module Creation - POM Configuration


Date Created: 2012-09-08 13:34:28 -0500 (Sat, 08 Sep 2012)



back    |    top