添加链接
link管理
链接快照平台
  • 输入网页链接,自动生成快照
  • 标签化管理网页链接

Get full access to Apache Maven Cookbook and 60K+ other titles, with a free 10-day trial of O'Reilly.

There are also live events, courses curated by job role, and more.

Start your free trial

Using the Maven SCM plugin

Maven provides a mechanism to interact with SCM systems in a vendor-independent way. Typically, a Maven project is checked in an SCM. Using the Maven SCM plugin, you can perform a number of SCM-related activities.

Getting ready

The Maven project that we want to use the plugin with should be in an SCM. Maven supports a number of SCM providers. We will use Git to illustrate this.

How to do it...

  1. Add the following code to your pom file:
      <scm>
            <connection>scm:git:https://bitbucket.org/maruhgar/apache-maven-cookbook</connection>
         <developerConnection>scm:git:https://[email protected]/maruhgar/apache-maven-cookbook</developerConnection>
            <url>https://bitbucket.org/maruhgar/apache-maven-cookbook</url>
        </scm>
  2. Run the following ...

Get Apache Maven Cookbook now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.

Start your free trial

Don’t leave empty-handed

Get Mark Richards’s Software Architecture Patterns ebook to better understand how to design components—and how they should interact.

It’s yours, free.

Get it now

Check it out now on O’Reilly

Dive in for free with a 10-day trial of the O’Reilly learning platform—then explore all the other resources our members count on to build skills and solve problems every day.

Start your free trial Become a member now