使用maven-release-plugin准备版本时无法标记SCM

时间:2012-07-29 09:22:38

标签: maven-release-plugin

我在使用maven发布插件准备发布我的项目时遇到了麻烦。

SCM连接:

<scm>
    <connection>scm:svn:https://subversion.assembla.com/svn/myrepo</connection>
    <developerConnection>
        scm:svn:https://subversion.assembla.com/svn/myrepo
    </developerConnection>
</scm>

发布插件配置:

<plugin>
    <groupId>org.apache.maven.plugins</groupId>
    <artifactId>maven-release-plugin</artifactId>
    <version>2.3.2</version>
    <configuration>
        <autoVersionSubmodules>true</autoVersionSubmodules>
        <providerImplementations>
            <svn>javasvn</svn>
        </providerImplementations>
    </configuration>
    <dependencies>
        <dependency>
            <groupId>com.google.code.maven-scm-provider-svnjava</groupId>
            <artifactId>maven-scm-provider-svnjava</artifactId>
            <version>2.0.3</version>
        </dependency>
    </dependencies>
</plugin>

一切顺利,直到需要标记SCM:

Failed to execute goal org.apache.maven.plugins:maven-release-plugin:2.3.2:prepare (default-cli) on project myproject: Unable to tag SCM
Provider message:
SVN tag failed.
Command output:
svn: E175002: unknown host
svn: E175002: OPTIONS request failed on '/svn/myrepo'

有什么想法吗?

1 个答案:

答案 0 :(得分:2)

使用https可能无法使用subversion存储库? 对我来说,它改变了svn协议:

scm:svn:svn://subversion.assembla.com/svn/myrepo