0
我們有一個多模塊項目,我想使用發佈插件。Maven2發佈插件doens't要標記
在顛覆的設置是
/svn/repo/project
-- branches
-- tags
-- trunk
-- -- project
-- -- pom.xml
-- -- module1
-- -- -- pom.xml
-- -- module2
-- -- -- pom.xml
-- -- module3
-- -- -- pom.xml
-- -- module4
-- -- -- pom.xml
該項目已經從主幹簽出等我的文件系統,我沒有任何標籤或分支機構的文件夾。當我使用命令:MVN發佈:準備,我得到的錯誤:
[INFO] ------------------------------------------------------------------------
[ERROR] BUILD FAILURE
[INFO] ------------------------------------------------------------------------
[INFO] Unable to tag SCM
Provider message:
The svn tag command failed.
Command output:
svn: Commit failed (details follow):
svn: File '/svn/repo/project/tags/project-1.0/module1/pom.xml' already exists
我得到下面當我運行在調試模式下的命令:
[DEBUG] WARNING: A dependency of the current project (or of one the plugins used
in its build) was found in the reactor,
but had not been built at the time it was requested. It will be resolved from
the repository instead.
Current Project: module2
Requested Dependency: com.mycompany:module2:jar:1.0
NOTE: You may need to run this build to the 'compile' lifecycle phase,
or farther, in order to build the dependency artifact.
當然,標籤在svn中不存在。
有人有什麼想法嗎?
如果您願意,您可以接受您自己的答案。 – 2010-12-16 23:01:37