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

2007-10-19 Thread bmat

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 problemmaven 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. 
 
 developerConnectionscm: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)
  
 developerConnectionscm: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
 connectionscm:svn:svn://fitst37/income/trunk/connection
 
 developerConnectionscm:svn:svn://fitst37/income/trunk/developerConnection
   /scm

   plugin
 artifactIdmaven-release-plugin/artifactId
 configuration
   usernamesaarfmar/username
   password12345/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://[EMAIL PROTECTED]/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://[EMAIL PROTECTED]/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: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]



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

-- 
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: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



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

2007-10-19 Thread bmat

mvn release:prepare
---

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

developerConnectionscm: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)

developerConnectionscm: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
 connectionscm:svn:svn://fitst37/income/trunk/connection
 
 developerConnectionscm:svn:svn://fitst37/income/trunk/developerConnection
   /scm
 
   plugin
 artifactIdmaven-release-plugin/artifactId
 configuration
   usernamesaarfmar/username
   password12345/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://[EMAIL PROTECTED]/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://[EMAIL PROTECTED]/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: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]
 
 
 

-- 
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: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]