With svn, you need to specify a tagbase, so you can run maven like this:

maven scm:tag -Dmaven.scm.tag=TEST_TAG -Dmaven.scm.svn.tag.base=http://svn.server.com/repos_root/tags

Emmanuel


Jamie Bisotti wrote:
Assuming Subversion looks like the following:

http://svn.server.com/repos_root/
     branches/
     tags/
     trunk/
          foo/

In C:\sandbox\blah, I perform: maven
-Dmaven.scm.url=scm:svn:http://svn.server.com/repos_root/trunk
-Dmaven.scm.checkout.dir=trunk scm:checkout

Then, I switch to C:\sandbox\blah\trunk\foo and perform: maven
-Dmaven.scm.tag=TEST_TAG scm:tag and I get the following error:



C:\sandbox\blah\trunk\foo>maven scm:tag -Dmaven.scm.tag=TEST_TAG
 __  __
|  \/  |__ _Apache__ ___
| |\/| / _` \ V / -_) ' \  ~ intelligent projects ~
|_|  |_\__,_|\_/\___|_||_|  v. 1.0.2

build:start:

scm:find-connection:
    [echo] Using connection: scm:svn:http://svn.server.com/repos_root/trunk/foo

scm:tag:
    [echo] Tagging scm:svn:http://svn.server.com/repos_root/trunk/foo
with TEST_TAG
[INFO] Working directory: C:\sandbox\blah\trunk\foo
[INFO] Command line: svn --username usr --password psw
--non-interactive copy --file
C:\DOCUME~1\JAMESF~1\LOCALS~1\Temp\maven-scm-1309405301.commit .
 http://svn.server.com/repos_root/trunk/tags/TEST_TAG
Provider message:
The svn tag command failed.
Command output:
svn: Commit failed (details follow):
svn: PROPFIND request failed on '/repos_root/trunk/tags'
svn: '/repos_root/trunk/tags' path not found


BUILD FAILED
File...... C:\Documents and Settings\James F Bisotti\.maven\cache\maven-scm-plug
in-1.5\plugin.jelly
Element... scm:tag
Line...... 145
Column.... 194
Error!
Total time: 7 seconds
Finished at: Mon Jun 27 22:16:40 EDT 2005


Question:  Why is it looking for trunk/tags?  'tags' is a peer of
'trunk'; not a child.


---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to