Working with your source control system in Maven is quite simple. Maven can provide the following services:
Support is provided by the Maven SCM subproject. This provides support for the following SCM systems:
Configuration is extremely simple - in most cases, you need only specify the <connection/>
string in the <repository/>
element of your POM. Specifics about this connection string
can be found in the SCM plugin documentation.
It is possible to perform several common tasks with Maven. These can be particularly useful for automation in your development environment, or in continuous integration.
There are also goals that provide assistance with making releases from your SCM.
For more information about common tasks and SCM based releases, see the
SCM Plugin Documentation. This contains a complete guide to
the scm:
goals and related properties.
For general information on making releases with Maven, please see Making Releases.
Maven provides three different reports on SCM usage that can be included in your project site. These are provided by the Change Log, File Activity and Developer Activity plugins.
These are included in your project site by default, however if you would like to explicitly select them
for your project, add any or all of the following lines to project.xml
inside the
<reports/>
section:
<report>maven-changelog-plugin</report> <report>maven-file-activity-plugin</report> <report>maven-developer-activity-plugin</report>
For examples of these reports, please see the ones published for this project: Change Log, File Activity, and Developer Activity.
There are other SCM reports available for Maven, such as the excellent StatCVS plugin. These are included on the 3rd Party Plugins list.
The source control information for the project is included by default in the project site. For example, see the SCM Usage page for this project.
For more information, please see Creating a Site.