logo Maven SCM Plugin

Maven Plugin that allows accessing different SCMs.

homepage: maven.apache.org/scm
fresh index:
last release: 4 months ago, first release: 2 decades ago
packaging: maven-plugin
get this artifact from: central nuxeo
see this artifact on: search.maven.org


Display vulnerabilities (snyk): Vulnerability check

This chart shows how much is this artifact used as a dependency in other Maven artifacts in Central repository and GitHub:


select version:

Add this snippet into pom.xml inside tag <project><build><plugins>:




Switch to artifact.
goals:
scm:add

Add a file set to the project.

scm:bootstrap

Pull the project source from the configured scm and execute the configured goals.

scm:branch

Branch the project.

scm:changelog

Dump changelog contents to console. It is mainly used to test maven-scm-api's changelog command.

scm:check-local-modification

This mojo will fail the build if there is any local modifications

scm:checkin

Commit changes to the configured scm url.

scm:checkout

Get a fresh copy of the latest source from the configured scm url.

scm:diff

Display the difference of the working copy with the latest copy in the configured scm url.

scm:edit

Edit/lock a set of files.

scm:export

Get a fresh exported copy of the latest source from the configured scm url.

scm:help

Display help information on maven-scm-plugin. Call mvn scm:help -Ddetail=true -Dgoal=<goal-name> to display parameter details.

scm:list

Get the list of project files.

scm:remove

Mark a set of files for deletion.

scm:status

Display the modification status of the files in the configured scm url.

scm:tag

Tag the project.

scm:unedit

Unedit/unlock a set of files.

scm:untag

Untag the project.

scm:update

Update the local working copy with the latest source from the configured scm url.

scm:update-subprojects

Updates 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:validate

Validate scm connection string.

scm:validate-recursively

Validate scm connection string recursively for all projects

Often used code snippets:

<plugin>
  <artifactId>maven-scm-plugin</artifactId>
  <version>1.8.1</version>
  <configuration>
    <tag>${project.artifactId}-${project.version}</tag>
  </configuration>
</plugin>
<plugin>
  <artifactId>maven-scm-plugin</artifactId>
  <version>1.9.4</version>
  <configuration>
    <pushChanges>false</pushChanges>
    <tag>${project.version}</tag>
  </configuration>
</plugin>
<plugin>
  <groupId>org.apache.maven.plugins</groupId>
  <artifactId>maven-scm-plugin</artifactId>
  <version>1.8.1</version>
  <configuration>
    <connectionType>connection</connectionType>
  </configuration>
</plugin>
<plugin>
  <groupId>org.apache.maven.plugins</groupId>
  <artifactId>maven-scm-plugin</artifactId>
  <version>1.9.2</version>
  <configuration>
    <providerImplementations>
      <git>jgit</git>
    </providerImplementations>
  </configuration>
  <dependencies>
    <dependency>
      <groupId>org.apache.maven.scm</groupId>
      <artifactId>maven-scm-provider-jgit</artifactId>
      <version>1.9.2</version>
    </dependency>
  </dependencies>
</plugin>
<plugin>
  <artifactId>maven-scm-plugin</artifactId>
  <version>1.9.4</version>
  <configuration>
    <tag>${project.artifactId}-${project.version}</tag>
  </configuration>
</plugin>

© Jiri Pinkas 2015 - 2022. All rights reserved! Admin login To submit bugs / feature requests please use this github page
related: JavaVids | Top Java Blogs | Java školení
Apache and Apache Maven are trademarks of the Apache Software Foundation. The Central Repository is a service mark of Sonatype, Inc.