我在使用Git的Maven SCM插件时遇到了问题。我根本无法让插件工作,因为它说供应商是找不到的。当我运行mvn scm:tag时,它会给出以下错误
未能执行org.apache.maven.plugins:maven-scm-plugin:1.9:tag (默认-cli)项目的目标失败-世界服务-最小:不能运行标签命令:不能加载供应链管理提供者。没有这样的提供者:'git:ssh://git@git-eng.REDACTED.com‘。->帮助1
我的pom.xml如下所示:
<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://git@git-eng.REDACTED.com|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>有人知道怎么解决这个问题吗?快把我逼疯了。我根本搞不清我做错了什么。
发布于 2014-03-25 04:15:53
<url>标记用于常规的可浏览URL。您需要一个<connection>标记(<connection>用于读取访问,<developerConnection>用于写访问):
<scm>
<connection>scm:git:ssh://git@git-eng.REDACTED.com|PROJECT_NAME/hello-world-service-minimal.git</connection>
<developerConnection>scm:git:ssh://git@git-eng.REDACTED.com|PROJECT_NAME/hello-world-service-minimal.git</developerConnection>
<url>http://git-eng.REDACTED.com/PROJECT_NAME/hello-world-service-minimal/tree/master</url>
</scm>有关更多信息,请参见Maven POM Reference。
https://stackoverflow.com/questions/22625295
复制相似问题