【发布时间】:2012-11-27 18:54:50
【问题描述】:
我正在使用 maven-release-plugin 2.3.2 并且能够 prepare and perform release 。问题是这样的。
SVN 回购: http://svnserver:8080/myrepo/test/projectA
Project A
|
branches/
tags/
trunk/
当我第一次执行mvn release:perform 时,它会在 tags/ 文件夹中创建这个结构
branches/
tags/
|
ProjectA_1.0.0
|
branches/ <structure from the parent branches/ folder>
tags/
trunk/
当我第二次执行mvn release:perform 时,这是输出
branches/
tags/
|
ProjectA_1.0.0
|
branches/<structure from the parent branches/ folder>
tags/
trunk/
ProjectA_1.0.1
|
branches/<structure from the parent branches/ folder>
tags/ProjectA_1.0.0/branches/<structure from the parent branches/ folder>
tags/ProjectA_1.0.0/tags/
tags/ProjectA_1.0.0/trunk
trunk/
等等......整个 1.0.1 将被复制到 1.0.2 中,直到我有一个递归的噩梦:)
虽然如果我在 Nexus 中访问我的 <releases> 存储库,一切都很好,我看到像这样的干净目录
1.0.0
1.0.1
1.0.2
其中包含正确的工件。
我已经直接在命令行上使用插件测试了这一点,并使用 M2 发布插件从 Jenkins 进行了测试。结果相同。这指出了我在某处错误配置的方向,而不是我如何或从哪里调用它。
插件或scm 标签有什么问题?
【问题讨论】:
-
我认为开发者连接错误(没有指向你父 pom.xml 的位置)。或者你为发布插件配置了错误的 branchBase / tagBase。
-
我正在调查
developerConnection,正如@khmarbaise 所建议的那样,但我没有明确使用标签库,因为我的 SVN 是非常标准的结构。 -
@wemu .. 它实际上是两种设置。我最终也使用了
-DtagBase。干杯
标签: maven jenkins maven-3 jenkins-plugins maven-release-plugin