2

We're using a standard svn layout (/branches/x.y, /tags, /trunk) and mvn release (i.e. maven-release-plugin) to perform releases, from the branches.

We usually try to make sure the section follows the branch, so it looks like this

<scm>
    <connection>scm:svn:http://DOMAIN/svn/PROJECT/MODULE/branches/1.5</connection>
    <developerConnection>( same as connection )</developerConnection>
</scm>

Can anybody tell me whether the "branches/1.5" at the end is strictly necessary? Or does maven-plugin figure this out anyway? What happens if it's wrong - say I'm on the 1.5 branch and the scm section of the pom say 1.4, or trunk? I have no immediate desire to try it. :-/

4

1 に答える 1

1

Subversionで使用されるMavenSCMURLを考慮して:

scm:svn:http://[username[:password]@]server_name[:port]/path_to_repository
scm:svn:http://svn.apache.org/svn/root/module

、必要なのは、リポジトリ内の適切なMavenモジュールへのパスです。
Mavenはそれ自体ではそのパスを推測できないため、' branches/1.5'が必要です。

イラストについては、SOの質問「maven-release-pluginを使用して、モジュールとその子を分岐する方法は?」を参照してください。

于 2011-10-20T10:55:40.333 に答える