You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@maven.apache.org by bmat <be...@benmatthews.info> on 2007/10/19 14:28:20 UTC

Re: M2 release:prepare fails with Subversion to tag SCM reason: Source url is from different repository

mvn release:prepare
-------------------

I recently had this problem using a local installation of subversion and
using file uris e.g. 

<developerConnection>scm:svn:file://localhost/repostory/myproject/trunk</developerConnection>

I could not get this to work... so I installed Apache 2.0 (Note 2.0 NOT 2.2
cos this doesn't work with subversion apparently).  Now using the following
(NOTE: the trailing slash! this is important)
	
<developerConnection>scm:svn:http://localhost/svn/repository/myproject/trunk/</developerConnection>

this works fine for me (even on windows vista! amazing!)

This link was useful : "http://www.codeproject.com/w2k/SubversionApache.asp"
but the authentication file is wrong i think..at least it didn't work for
me.  If you change the recommended line from this
[/] * = r [test1:/] user1 = rw user2 = [test2:/] user1 = r user2 = rw
to this
[test1:/myproject] 
user1 = rw 
user2 = rw 

it should work... it is important to specify the repository name here if
SVNParentPath is specified in apache httpd.conf.


I hope this saves somebody some time and hair as I've nearly pulled all mine
out :-)
Cheers
Ben




Markku Saarela wrote:
> 
> Hi,
> 
> We are using Maven2 2.0.4 with Subversion 1.3 and now we can't make 
> anymore releases. Previously we success.
> 
> Here is snippet from parent pom.xml
> 
>   <scm>
>     <connection>scm:svn:svn://fitst37/income/trunk</connection>
>     
> <developerConnection>scm:svn:svn://fitst37/income/trunk</developerConnection>
>   </scm>
> 
>       <plugin>
>         <artifactId>maven-release-plugin</artifactId>
>         <configuration>
>           <username>saarfmar</username>
>           <password>12345</password>
>         </configuration>
>       </plugin>
> 
> Here is output:
> 
> [INFO] [release:prepare]
> [INFO] Resuming release from phase 'scm-tag'
> [INFO] Tagging release with the label 1.0.0...
> [INFO] Executing: svn --non-interactive copy --file 
> C:\DOCUME~1\saarfmar\LOCALS~1\Temp\maven-scm-108
> 0661760.commit . svn://fitst37/income/tags/1.0.0
> [INFO] Working directory: C:\temp\income
> [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://saarfmar@fitst37/income/trunk' is from different 
> repository
> 
> [INFO] 
> ------------------------------------------------------------------------
> [DEBUG] Trace
> org.apache.maven.BuildFailureException: Unable to tag SCM
> Provider message:
> The svn tag command failed.
> Command output:
> svn: Commit failed (details follow):
> svn: Source url 'svn://saarfmar@fitst37/income/trunk' is from different 
> repository
> 
>         at 
> org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoals(DefaultLifecycleExecutor
> .java:555)
> 
> Anyone have any idea what do to?
> 
> Regards,
> 
> Markku Saarela
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
> For additional commands, e-mail: users-help@maven.apache.org
> 
> 
> 

-- 
View this message in context: http://www.nabble.com/M2-release%3Aprepare-fails-with-Subversion--to-tag-SCM-reason%3A-Source-url-is-from-different-repository-tf2213675s177.html#a13293445
Sent from the Maven - Users mailing list archive at Nabble.com.


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


Re: M2 release:prepare fails with Subversion to tag SCM reason: Source url is from different repository

Posted by Dennis Lundberg <de...@apache.org>.
I got the error message "Source url is from different repository" a 
while back. It turned out that having a user name in the scm url can 
sometimes cause problems for the release-plugin. After I removed the 
user name from the scm url it worked.

bmat wrote:
> mvn release:prepare
> -------------------
> 
> I recently had this problem using a local installation of subversion and
> using file uris e.g. 
> 
> <developerConnection>scm:svn:file://localhost/repostory/myproject/trunk</developerConnection>
> 
> I could not get this to work... so I installed Apache 2.0 (Note 2.0 NOT 2.2
> cos this doesn't work with subversion apparently).  Now using the following
> (NOTE: the trailing slash! this is important)
> 	
> <developerConnection>scm:svn:http://localhost/svn/repository/myproject/trunk/</developerConnection>
> 
> this works fine for me (even on windows vista! amazing!)
> 
> This link was useful : "http://www.codeproject.com/w2k/SubversionApache.asp"
> but the authentication file is wrong i think..at least it didn't work for
> me.  If you change the recommended line from this
> [/] * = r [test1:/] user1 = rw user2 = [test2:/] user1 = r user2 = rw
> to this
> [test1:/myproject] 
> user1 = rw 
> user2 = rw 
> 
> it should work... it is important to specify the repository name here if
> SVNParentPath is specified in apache httpd.conf.
> 
> 
> I hope this saves somebody some time and hair as I've nearly pulled all mine
> out :-)
> Cheers
> Ben
> 
> 
> 
> 
> Markku Saarela wrote:
>> Hi,
>>
>> We are using Maven2 2.0.4 with Subversion 1.3 and now we can't make 
>> anymore releases. Previously we success.
>>
>> Here is snippet from parent pom.xml
>>
>>   <scm>
>>     <connection>scm:svn:svn://fitst37/income/trunk</connection>
>>     
>> <developerConnection>scm:svn:svn://fitst37/income/trunk</developerConnection>
>>   </scm>
>>
>>       <plugin>
>>         <artifactId>maven-release-plugin</artifactId>
>>         <configuration>
>>           <username>saarfmar</username>
>>           <password>12345</password>
>>         </configuration>
>>       </plugin>
>>
>> Here is output:
>>
>> [INFO] [release:prepare]
>> [INFO] Resuming release from phase 'scm-tag'
>> [INFO] Tagging release with the label 1.0.0...
>> [INFO] Executing: svn --non-interactive copy --file 
>> C:\DOCUME~1\saarfmar\LOCALS~1\Temp\maven-scm-108
>> 0661760.commit . svn://fitst37/income/tags/1.0.0
>> [INFO] Working directory: C:\temp\income
>> [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://saarfmar@fitst37/income/trunk' is from different 
>> repository
>>
>> [INFO] 
>> ------------------------------------------------------------------------
>> [DEBUG] Trace
>> org.apache.maven.BuildFailureException: Unable to tag SCM
>> Provider message:
>> The svn tag command failed.
>> Command output:
>> svn: Commit failed (details follow):
>> svn: Source url 'svn://saarfmar@fitst37/income/trunk' is from different 
>> repository
>>
>>         at 
>> org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoals(DefaultLifecycleExecutor
>> .java:555)
>>
>> Anyone have any idea what do to?
>>
>> Regards,
>>
>> Markku Saarela
>>
>> ---------------------------------------------------------------------
>> To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
>> For additional commands, e-mail: users-help@maven.apache.org
>>
>>
>>
> 


-- 
Dennis Lundberg

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


Re: M2 release:prepare fails with Subversion to tag SCM reason: Source url is from different repository

Posted by bmat <be...@benmatthews.info>.
Hi,

Thanks for your reply!

but....  file:///my/path or file://localhost/my/path or file://127.0.0.1/
my/path,  shouldn't all of these work?

I don't think this was the cause of my problem....maven was able to commit
the modified pom.xml to the trunk however it was unable to create a tag, 
the process failed at the last step....

Cheers
Ben



Tim Kettler wrote:
> 
> Hi,
> 
> bmat schrieb:
>> mvn release:prepare
>> -------------------
>> 
>> I recently had this problem using a local installation of subversion and
>> using file uris e.g. 
>> 
>> <developerConnection>scm:svn:file://localhost/repostory/myproject/trunk</developerConnection>
> 
> The syntax for urls is: [protokoll]://[path]. A file url to the path
> '/my/path' looks like this:
> 
>   file:///my/path
> 
> You url is missing the leading slash of the path.
> 
> -Tim
> 
>> I could not get this to work... so I installed Apache 2.0 (Note 2.0 NOT
>> 2.2
>> cos this doesn't work with subversion apparently).  Now using the
>> following
>> (NOTE: the trailing slash! this is important)
>> 	
>> <developerConnection>scm:svn:http://localhost/svn/repository/myproject/trunk/</developerConnection>
>> 
>> this works fine for me (even on windows vista! amazing!)
>> 
>> This link was useful :
>> "http://www.codeproject.com/w2k/SubversionApache.asp"
>> but the authentication file is wrong i think..at least it didn't work for
>> me.  If you change the recommended line from this
>> [/] * = r [test1:/] user1 = rw user2 = [test2:/] user1 = r user2 = rw
>> to this
>> [test1:/myproject] 
>> user1 = rw 
>> user2 = rw 
>> 
>> it should work... it is important to specify the repository name here if
>> SVNParentPath is specified in apache httpd.conf.
>> 
>> 
>> I hope this saves somebody some time and hair as I've nearly pulled all
>> mine
>> out :-)
>> Cheers
>> Ben
>> 
>> 
>> 
>> 
>> Markku Saarela wrote:
>>> Hi,
>>>
>>> We are using Maven2 2.0.4 with Subversion 1.3 and now we can't make 
>>> anymore releases. Previously we success.
>>>
>>> Here is snippet from parent pom.xml
>>>
>>>   <scm>
>>>     <connection>scm:svn:svn://fitst37/income/trunk</connection>
>>>     
>>> <developerConnection>scm:svn:svn://fitst37/income/trunk</developerConnection>
>>>   </scm>
>>>
>>>       <plugin>
>>>         <artifactId>maven-release-plugin</artifactId>
>>>         <configuration>
>>>           <username>saarfmar</username>
>>>           <password>12345</password>
>>>         </configuration>
>>>       </plugin>
>>>
>>> Here is output:
>>>
>>> [INFO] [release:prepare]
>>> [INFO] Resuming release from phase 'scm-tag'
>>> [INFO] Tagging release with the label 1.0.0...
>>> [INFO] Executing: svn --non-interactive copy --file 
>>> C:\DOCUME~1\saarfmar\LOCALS~1\Temp\maven-scm-108
>>> 0661760.commit . svn://fitst37/income/tags/1.0.0
>>> [INFO] Working directory: C:\temp\income
>>> [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://saarfmar@fitst37/income/trunk' is from different 
>>> repository
>>>
>>> [INFO] 
>>> ------------------------------------------------------------------------
>>> [DEBUG] Trace
>>> org.apache.maven.BuildFailureException: Unable to tag SCM
>>> Provider message:
>>> The svn tag command failed.
>>> Command output:
>>> svn: Commit failed (details follow):
>>> svn: Source url 'svn://saarfmar@fitst37/income/trunk' is from different 
>>> repository
>>>
>>>         at 
>>> org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoals(DefaultLifecycleExecutor
>>> .java:555)
>>>
>>> Anyone have any idea what do to?
>>>
>>> Regards,
>>>
>>> Markku Saarela
>>>
>>> ---------------------------------------------------------------------
>>> To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
>>> For additional commands, e-mail: users-help@maven.apache.org
>>>
>>>
>>>
>> 
> 
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
> For additional commands, e-mail: users-help@maven.apache.org
> 
> 
> 

-- 
View this message in context: http://www.nabble.com/M2-release%3Aprepare-fails-with-Subversion--to-tag-SCM-reason%3A-Source-url-is-from-different-repository-tf2213675s177.html#a13294025
Sent from the Maven - Users mailing list archive at Nabble.com.


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


Re: M2 release:prepare fails with Subversion to tag SCM reason: Source url is from different repository

Posted by Tim Kettler <ti...@udo.edu>.
Hi,

bmat schrieb:
> mvn release:prepare
> -------------------
> 
> I recently had this problem using a local installation of subversion and
> using file uris e.g. 
> 
> <developerConnection>scm:svn:file://localhost/repostory/myproject/trunk</developerConnection>

The syntax for urls is: [protokoll]://[path]. A file url to the path
'/my/path' looks like this:

  file:///my/path

You url is missing the leading slash of the path.

-Tim

> I could not get this to work... so I installed Apache 2.0 (Note 2.0 NOT 2.2
> cos this doesn't work with subversion apparently).  Now using the following
> (NOTE: the trailing slash! this is important)
> 	
> <developerConnection>scm:svn:http://localhost/svn/repository/myproject/trunk/</developerConnection>
> 
> this works fine for me (even on windows vista! amazing!)
> 
> This link was useful : "http://www.codeproject.com/w2k/SubversionApache.asp"
> but the authentication file is wrong i think..at least it didn't work for
> me.  If you change the recommended line from this
> [/] * = r [test1:/] user1 = rw user2 = [test2:/] user1 = r user2 = rw
> to this
> [test1:/myproject] 
> user1 = rw 
> user2 = rw 
> 
> it should work... it is important to specify the repository name here if
> SVNParentPath is specified in apache httpd.conf.
> 
> 
> I hope this saves somebody some time and hair as I've nearly pulled all mine
> out :-)
> Cheers
> Ben
> 
> 
> 
> 
> Markku Saarela wrote:
>> Hi,
>>
>> We are using Maven2 2.0.4 with Subversion 1.3 and now we can't make 
>> anymore releases. Previously we success.
>>
>> Here is snippet from parent pom.xml
>>
>>   <scm>
>>     <connection>scm:svn:svn://fitst37/income/trunk</connection>
>>     
>> <developerConnection>scm:svn:svn://fitst37/income/trunk</developerConnection>
>>   </scm>
>>
>>       <plugin>
>>         <artifactId>maven-release-plugin</artifactId>
>>         <configuration>
>>           <username>saarfmar</username>
>>           <password>12345</password>
>>         </configuration>
>>       </plugin>
>>
>> Here is output:
>>
>> [INFO] [release:prepare]
>> [INFO] Resuming release from phase 'scm-tag'
>> [INFO] Tagging release with the label 1.0.0...
>> [INFO] Executing: svn --non-interactive copy --file 
>> C:\DOCUME~1\saarfmar\LOCALS~1\Temp\maven-scm-108
>> 0661760.commit . svn://fitst37/income/tags/1.0.0
>> [INFO] Working directory: C:\temp\income
>> [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://saarfmar@fitst37/income/trunk' is from different 
>> repository
>>
>> [INFO] 
>> ------------------------------------------------------------------------
>> [DEBUG] Trace
>> org.apache.maven.BuildFailureException: Unable to tag SCM
>> Provider message:
>> The svn tag command failed.
>> Command output:
>> svn: Commit failed (details follow):
>> svn: Source url 'svn://saarfmar@fitst37/income/trunk' is from different 
>> repository
>>
>>         at 
>> org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoals(DefaultLifecycleExecutor
>> .java:555)
>>
>> Anyone have any idea what do to?
>>
>> Regards,
>>
>> Markku Saarela
>>
>> ---------------------------------------------------------------------
>> To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
>> For additional commands, e-mail: users-help@maven.apache.org
>>
>>
>>
> 


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