1

我在使用 maven 发布插件准备项目发布时遇到问题。

单片机连接:

<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'

有任何想法吗?

4

1 回答 1

2

也许使用 https 无法使用 subversion 存储库?对我来说,它可以更改为 svn 协议:

scm:svn:svn://subversion.assembla.com/svn/myrepo
于 2012-08-08T15:01:59.467 回答