Maven SCM Plugin: Git SSH provider not found

I’m having a problem using the Maven SCM plugin with Git. I cannot get the plugin to work at all because it says the provider is not found. It gives me the following error when I run mvn scm:tag:

[ERROR] Failed to execute goal org.apache.maven.plugins:maven-scm-plugin:1.9:tag (default-cli) on project hello-world-service-minimal: Cannot run tag command : Can’t load the scm provider. No such provider: ‘git:ssh://[email protected]’ . -> [Help 1]

My pom.xml looks like the following:

<project>
  <modelVersion>4.0.0</modelVersion>

  <groupId>net.REDACTED</groupId>
  <artifactId>hello-world-service-minimal</artifactId>
  <version>1.0.13</version>
  <packaging>pom</packaging>

  <name>hello-world-service</name>

  <properties>
     <lang.java.source>1.7</lang.java.source>
     <lang.java.target>1.7</lang.java.target>

    <dep.junit>4.11</dep.junit>
  </properties>

  <scm>
     <developerConnection>scm:git:ssh://[email protected]|PROJECT_NAME/hello-world-service-minimal.git</developerConnection>
     <url>scm:git:http://git-eng.REDACTED.com/PROJECT_NAME/hello-world-service-minimal/tree/master</url>
  </scm>

  <distributionManagement>
     <repository>
        <id>dev.release</id>
        <url>file:${project.build.directory}/repository/</url>
     </repository>
  </distributionManagement>

  <build>
      <plugins>
          <plugin>
              <groupId>org.codehaus.mojo</groupId>
              <artifactId>versions-maven-plugin</artifactId>
              <version>2.1</version>
          </plugin>
          <plugin>
              <artifactId>maven-scm-plugin</artifactId>
              <version>1.9</version>
              <configuration>
                  <tag>${project.artifactId}-${project.version}</tag>
              </configuration>
          </plugin>
      </plugins>
  </build>
</project>

Anyone have any idea how to fix this? This is driving me crazy. I can’t figure out what I am doing wrong at all.



Maven release plugin and scm plugin configuration

If I want to use release plugin with CVS, do I also declare maven-scm-plugin and set it up for my CVS environment ? The release plugin is using maven-scm-providers internally and there is no way to se

Maven-scm plugin: Why is the scmRevision not working as expected?

I’m using Maven 3.0.3, the Maven/SCM plugin (1.5) and Git 1.7.4.1. I want to run a maven command to check out a revision of git, but the plugin is treating my scmVersion parameter like a branch name

SCM Provider not available – Maven

I was trying to materialize apache Camel project in my eclipse environment. I’m using Maven 3 with Eclipse Galileo and I’m using m2Eclipse plugin. I’m consistently getting below error message. Is this

How do I get the Maven Release Plugin to work with Git over SSH?

I’m trying to use the Maven Release plugin with git over ssh. I run the command mvn release:prepare and get the following error: [INFO] Working directory: C:/projects/sample [INFO] Executing: cmd.exe

When using maven-release-plugin, why not just detect scm info from local repo?

As far as I am aware, in order to use the maven-release-plugin, you have to drop in an scm section into your POM file. E.g.: <scm> <connection>scm:hg:ssh://[email protected]/my_account/my_p

How to force Maven SCM Perforce provider version?

I am trying to reproduce an existing maven environment on another computer and when I try to use the release plugin it gives me an password is required for the perforce scm plugin The odd thing is I

maven scm plugin – what is the url config-value?

Question re. the Maven scm-plugin: http://maven.apache.org/scm/plugins/usage.html Example, in pom.xml: <scm> <connection>scm:svn:http://somerepository.com/svn_repo/trunk</connection&gt

Maven Buildnumber plugin – Git

The Maven Buildnumber plugin doesn’t appear to work with GIT yet. Is there a workaround for the time being? I recently switched from SVN to GIT and have found it to be an easy transition, but this is

Maven-Release-Plugin: Force to use specific version of scm provider

I’m in the process of trying to migrate our repository from SVN to Git and I’m having trouble with the release plugin on a very large project. Problem: There are about 50+ sub-modules to this project

Maven Subversion scm configuration for release plugin

I am attempting to use $HOME/.scm/svn-settings.xml to coax Maven into invoking svn with the –trust-server-cert option to bypass some self-signed server certs. Maven appears to pass along the correct

Answers

The <url> tag is for a regular browsable URL. You need a <connection> tag (<connection> is for read access, <developerConnection> is for write access):

<scm>
  <connection>scm:git:ssh://[email protected]|PROJECT_NAME/hello-world-service-minimal.git</connection>
  <developerConnection>scm:git:ssh://[email protected]|PROJECT_NAME/hello-world-service-minimal.git</developerConnection>
  <url>http://git-eng.REDACTED.com/PROJECT_NAME/hello-world-service-minimal/tree/master</url>
</scm>

See the Maven POM Reference for more information.