Plugin Documentation

Goals available for this plugin:

GoalDescription
scm:addAdd a file set to the project.
scm:bootstrapPull the project source from the configured scm and execute the configured goals.
scm:branchBranch the project.
scm:changelogDump changelog contents to console. It is mainly used to test maven-scm-api's changelog command.
scm:check-local-modificationThis mojo will fail the build if there is any local modifications
scm:checkinCommit changes to the configured scm url.
scm:checkoutGet a fresh copy of the latest source from the configured scm url.
scm:diffDisplay the difference of the working copy with the latest copy in the configured scm url.
scm:editEdit/lock a set of files.
scm:exportGet a fresh exported copy of the latest source from the configured scm url.
scm:helpDisplay help information on maven-scm-plugin.
Call
  mvn scm:help -Ddetail=true -Dgoal=<goal-name>
to display parameter details.
scm:listGet the list of project files.
scm:removeMark a set of files for deletion.
scm:statusDisplay the modification status of the files in the configured scm url.
scm:tagTag the project.
scm:uneditUnedit/unlock a set of files.
scm:updateUpdate the local working copy with the latest source from the configured scm url.
scm:update-subprojectsUpdates all projects in a multi project build. This is useful for users who have adopted the flat project structure where the aggregator project is a sibling of the sub projects rather than sitting in the parent directory.
scm:validateValidate scm connection string.

System Requirements

The following specifies the minimum requirements to run this Maven plugin:

Maven2.0
JDK1.5
MemoryNo minimum requirement.
Disk SpaceNo minimum requirement.

Usage

You should specify the version in your project's plugin configuration:

<project>
  ...
  <build>
    <!-- To define the plugin version in your parent POM -->
    <pluginManagement>
      <plugins>
        <plugin>
          <groupId>org.apache.maven.plugins</groupId>
          <artifactId>maven-scm-plugin</artifactId>
          <version>1.8</version>
        </plugin>
        ...
      </plugins>
    </pluginManagement>
    <!-- To use the plugin goals in your POM or parent POM -->
    <plugins>
      <plugin>
        <groupId>org.apache.maven.plugins</groupId>
        <artifactId>maven-scm-plugin</artifactId>
        <version>1.8</version>
      </plugin>
      ...
    </plugins>
  </build>
  ...
</project>

For more information, see "Guide to Configuring Plug-ins"