Maven – Creating new project

Command line:

Creating a simple application structure:

mvn archetype:generate 
    -DgroupId=com.mycompany.app 
    -DartifactId=my-app 
    -DarchetypeArtifactId=maven-archetype-quickstart 
    -DinteractiveMode=false

An example:

mvn archetype:generate -DgroupId={project-packaging}
 -DartifactId={project-name}
 -DarchetypeArtifactId=maven-archetype-quickstart
 -DinteractiveMode=false

Creating a web application structure:

 mvn archetype:generate 
   -DgroupId=com.sip.tezinventory.client 
   -DartifactId=sip-client 
   -DarchetypeArtifactId=maven-archetype-webapp 
   -DinteractiveMode=false