You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@maven.apache.org by David Moss <mo...@googlemail.com> on 2007/06/08 12:16:48 UTC

Problems with release:prepare

I sent this to the users mailing list yesterday but as yet haven't had any
response...

I'm having problems trying to run the release:prepare goal.  Can anyone
help?

My pom contains.

<scm>
     <connection>scm:svn:svn://username:password@SERVER001/trunk</connection>

     <developerConnection>scm:svn:svn://username:password@SERVER001
/trunk</developerConnection>
        <tag>HEAD</tag>
        <url>http://server001:8080/svnwebclient/directoryContent.jsp?url=trunk
</url>
</scm>


When I run mvn release:prepare it asks me for the version numbers (keeping
defaults), then changes the project version number,builds the project,
COMMITS THE PROJECT FILE, then fails with the following:

--------------------------------

[INFO] Checking in modified POMs...
[INFO] Executing: svn --username username --password ***** --non-interactive
commit --file C:\DOCUME~1\DAVID~1.MOS\LOCALS~1
\Temp\maven- scm-1801658713.commit --targets
C:\DOCUME~1\DAVID~1.MOS\LOCALS~1\Temp\maven-scm-9516-targets
[INFO] Working directory: C:\release4
[INFO] Tagging release with the label product-4.0...
[INFO] Executing: svn --username username --password ***** --non-interactive
copy --file C:\DOCUME~1\DAVID~1.MOS\LOCALS~1\T
emp\maven-scm-403689689.commit . svn://SERVER001/tags/product-4.0
[INFO] Working directory: C:\release4\product
[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: Source url 'svn://server001/trunk/product' is from different repository

--------------------------------------

Does anyone know what's wrong here?  The only difference that I can see here
is the working directory, which is slightly different between the commit and
the tag.
There isn't anything wrong with the project / src files themselves or the
current checkout, as proven by the fact that maven successfully commits the
changed pom.
It's just the tag that fails.

Any help would be greatly appreciated!

Re: Problems with release:prepare

Posted by Kenney Westerhof <ke...@apache.org>.

Graham Leggett wrote:
> On Fri, June 8, 2007 12:16 pm, David Moss wrote:
> 
>> [INFO] Executing: svn --username username --password *****
>> --non-interactive
>> copy --file C:\DOCUME~1\DAVID~1.MOS\LOCALS~1\T
>> emp\maven-scm-403689689.commit . svn://SERVER001/tags/product-4.0
> 
>> The svn tag command failed.
>> Command output:
>> svn: Commit failed (details follow):
>> svn: Source url 'svn://server001/trunk/product' is from different
>> repository
> 
> This seems to be a subversion problem, as the error message is from
> subversion.
> 
> Another potential issue is the SERVER001 compared with server001, it's
> quite possible svn is treating these as two different servers.
> 
> Always be consistent with your naming.

Yup, that could be it, though I don't think so, since svn uses a special ID for
repositories (can't think of the name but it's some windows ID like {aaaa-bbbb-ccc-ddd etc}.

Try 'svn info' and look at the URL and see if it matches svn://server001/trunk/product.

-- Kenney

> 
> Regards,
> Graham
> --
> 
> 
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: dev-unsubscribe@maven.apache.org
> For additional commands, e-mail: dev-help@maven.apache.org

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@maven.apache.org
For additional commands, e-mail: dev-help@maven.apache.org


Re: Problems with release:prepare

Posted by Graham Leggett <mi...@sharp.fm>.
On Fri, June 8, 2007 12:16 pm, David Moss wrote:

> [INFO] Executing: svn --username username --password *****
> --non-interactive
> copy --file C:\DOCUME~1\DAVID~1.MOS\LOCALS~1\T
> emp\maven-scm-403689689.commit . svn://SERVER001/tags/product-4.0

> The svn tag command failed.
> Command output:
> svn: Commit failed (details follow):
> svn: Source url 'svn://server001/trunk/product' is from different
> repository

This seems to be a subversion problem, as the error message is from
subversion.

Another potential issue is the SERVER001 compared with server001, it's
quite possible svn is treating these as two different servers.

Always be consistent with your naming.

Regards,
Graham
--



---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@maven.apache.org
For additional commands, e-mail: dev-help@maven.apache.org