Monday, July 2, 2007

SCM control

The problem:

You would like to integrate your source control management directly into a Maven 2 project.

The solution:

Source control is needed to maintain the health of any mid to large size project. Maven knows this! Maven has very broad source control management support. Have you heard of Mercurial? Well you can integrate Mercurial SCM support right into a Maven 2 project. Or Subversion, CVS, Perforce, etc. To get started is easy, you will need to configure an "scm" section in your projects pom.xml file. I will give an example:
<scm>
<connection>scm:svn:https://svn.oreilly.com/RobUtils/trunk</connection>
<developerConnection>scm:svn:https://svn.oreilly.com/RobUtils/trunk</developerConnection>
<url>https://svn.oreilly.com/RobUtils</url>
</scm>

Once you have configured your scm section other plug ins (such as release) will be able to leverage it's information. You should see the documentation on SCM configuration to get up and running with your SCM implementation.