开发者

Problem release maven

I have a problem with the release plugin for maven.

I use maven 2.2 and maven-release-plugin 2.1

When I run the next command line, the release plugin create tag in svn but nothing is into the tags. The command line is:

mvn  -DautoVersionSubmodules=true -Dusername=kiva -Dpassword=xxxx --batch-mode release:prepare

First strange thing, submodules are not release. Here is the command output:

[INFO] personnes-parent .................................. SKIPPED
[INFO] personnes-reactor ................................. SUCCESS [25.116s]
[INFO] personnes-dto ..................................... SKIPPED

And next, the tag personnes-reactor is create on svn but nothing is inside.

I configure the scm like开发者_高级运维 this:

<distributionManagement>
  <repository>
    <id>repo</id>
    <url>http://10.211.55.4/svn/personnes/trunk</url>
  </repository>
</distributionManagement>

<scm>
  <connection>scm:svn:http://10.211.55.4/svn/personnes/tags/</connection>
</scm>

I don't understand why nothing work with the release.

Thanks for your help.


distributionManagement has nothing to do with SCM. Try configuring the your SCM as follows:

<scm>
  <connection>scm:svn:http://10.211.55.4/svn/personnes/trunk</connection>
</scm>

This is the default SVN layout, maven-release-plugin will recognize it and tag accordingly.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜