O'Reilly logo

Maven Build Customization by Giacomo Veneri, Riccardo Giomi, Umberto Antonio Cicero, Roberto Baldi, Lorenzo Anardu

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

SCM integration

SCM (Software Configuration Management), which is also referred to as version control, is the core of the project. If your organization uses an SCM system, there is an easy way to place information into the POM file. The following code snippet declares a local SVN repository:

[…]
   <scm>
    <connection>
        scm:svn:http://127.0.0.1/svn/my-project
     </connection>
    <developerConnection>
        scm:svn:http://127.0.0.1/svn/myproject
    </developerConnection>
    <tag>HEAD</tag>
    <url>http://127.0.0.1/websvn/my-project</url>
  </scm>
[…]

The Maven SCM plugin or site generation uses these SCM configurations in the POM file to perform some tasks and goals. Eclipse, through the M2Eclipse plugin, will materialize your Maven project from SCM using these configurations. ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required