Maven – Create a project on the command line

Command

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

Example

mvn archetype:generate
-DgroupId=com.codejago
-DartifactId=project
-DarchetypeArtifactId=maven-archetype-quickstart
-DinteractiveMode=false

Leave a Reply

Your email address will not be published. Required fields are marked *