我正在使用maven-release-plugin 2.3.2並能夠使用prepare and perform release
。問題是這樣的。Maven發佈插件在svn中創建遞歸目錄
SVN回購:http://svnserver:8080/myrepo/test/projectA
Project A
|
branches/
tags/
trunk/
當我做一個mvn release:perform
它第一次將創建標籤內這種結構/文件夾
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被複制,直到我有一個遞歸的噩夢了:)
但如果我轉到我的<releases>
庫中的Nexus,沒事了,我看到乾淨的目錄如
1.0.0
1.0.1
1.0.2
其中有正確的工件。
我已經在命令行直接使用插件並使用M2發佈插件從Jenkins進行了測試。同樣的結果。這指向了某個地方錯誤配置的方向,而不是我如何或從哪裏調用它。
我在做什麼錯誤的插件或scm
標籤?
我認爲開發人員連接是錯誤的(不指向您的父pom.xml的位置)。或者你的發行版插件配置錯誤的branchBase/tagBase。 – wemu
我正在研究'developerConnection'也是由@khmarbaise建議的,但我沒有明確使用標記庫,因爲我的SVN是相當標準的結構。 –
@wemu ..它實際上是兩個設置。我最終也使用了'-DtagBase'。歡呼聲 –