Home Navigation

Thursday 22 September 2016

Useful maven commands

Create maven project command prompt:

In a terminal /command prompt, navigate to the directory you want to create the project. Type the below command :


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

Change the version from command prompt:

mvn versions:set
mvn versions:set -DnewVersion=0.8.1

No comments:

Post a Comment