Common SCM Tasks

The Maven SCM plugin allows you to perform some common SCM actions.

Checking out a project

This command is usually performed without a project, as that is what you are checking out, so you need to specify the SCM URL. The URL takes the same format as the <repository><connection> element in your project.xml file.

maven scm:checkout -Dmaven.scm.url=scm:svn:http://svn.apache.org/repos/asf/maven/maven-1/core/trunk

Updating a project

This command is always performed on an existing project. It is used to update to the latest code from the server for the project.

maven scm:update

Tagging a project

This command is always performed on an existing project. It will apply a tag (or equivalent operation in your SCM) to the current checkout. You must specify a tag name.

maven scm:tag -Dmaven.scm.tag=MAVEN_1_0