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://[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]