You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@maven.apache.org by revengeofthepencil <re...@gmail.com> on 2011/11/07 20:20:23 UTC
newbie issue in preparing release: svn tag dies with "Unable to
open an ra_local session to URL"
Hello all,
I'm a little new to cutting a release with Maven and I'm having a terrible
time getting it to work. Everything looks good until I get to the svn tag
step, at which point it always fails. Here's the error:
[INFO]
------------------------------------------------------------------------
[INFO] BUILD FAILURE
[INFO]
------------------------------------------------------------------------
[INFO] Total time: 17.274s
[INFO] Finished at: Mon Nov 07 10:57:30 PST 2011
[INFO] Final Memory: 5M/81M
[INFO]
------------------------------------------------------------------------
[ERROR] Failed to execute goal
org.apache.maven.plugins:maven-release-plugin:2.0-beta-9:prepare
(default-cli) on project testproject: Unable to tag SCM
[ERROR] Provider message:
[ERROR] The svn tag command failed.
[ERROR] Command output:
[ERROR] svn: Unable to open an ra_local session to URL
[ERROR] svn: Unable to open repository
'file:///Users/ignatiusjreilly/release/testproject'
[ERROR] -> [Help 1]
org.apache.maven.lifecycle.LifecycleExecutionException: Failed to execute
goal org.apache.maven.plugins:maven-release-plugin:2.0-beta-9:prepare
(default-cli) on project testproject: Unable to tag SCM
Provider message:
The svn tag command failed.
Command output:
svn: Unable to open an ra_local session to URL
svn: Unable to open repository
'file:///Users/ignatiusjreilly/release/testproject'
at
org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:213)
at
org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:153)
at
org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:145)
at
org.apache.maven.lifecycle.internal.LifecycleModuleBuilder.buildProject(LifecycleModuleBuilder.java:84)
at
org.apache.maven.lifecycle.internal.LifecycleModuleBuilder.buildProject(LifecycleModuleBuilder.java:59)
at
org.apache.maven.lifecycle.internal.LifecycleStarter.singleThreadedBuild(LifecycleStarter.java:183)
at
org.apache.maven.lifecycle.internal.LifecycleStarter.execute(LifecycleStarter.java:161)
at org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java:319)
at org.apache.maven.DefaultMaven.execute(DefaultMaven.java:156)
at org.apache.maven.cli.MavenCli.execute(MavenCli.java:537)
at org.apache.maven.cli.MavenCli.doMain(MavenCli.java:196)
at org.apache.maven.cli.MavenCli.main(MavenCli.java:141)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
at
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:597)
at
org.codehaus.plexus.classworlds.launcher.Launcher.launchEnhanced(Launcher.java:290)
at
org.codehaus.plexus.classworlds.launcher.Launcher.launch(Launcher.java:230)
at
org.codehaus.plexus.classworlds.launcher.Launcher.mainWithExitCode(Launcher.java:409)
at
org.codehaus.plexus.classworlds.launcher.Launcher.main(Launcher.java:352)
Caused by: org.apache.maven.plugin.MojoFailureException: Unable to tag SCM
Provider message:
The svn tag command failed.
Command output:
svn: Unable to open an ra_local session to URL
svn: Unable to open repository
'file:///Users/ignatiusjreilly/release/testproject'
I am certain that the path /Users/ignatiusjreilly/release/testproject is
valid and is part of an svn checkout. Here are the relevant portions of my
pom:
<scm>
<developerConnection>scm:svn:file:////Users/ignatiusjreilly/release/testproject/trunk</developerConnection>
</scm>
....
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-release-plugin</artifactId>
<version>2.0-beta-9</version>
<configuration>
<tagBase>file:////Users/ignatiusjreilly/release/testproject/tags</tagBase>
</configuration>
</plugin>
Anyone who can spot what I'm doing wrong here will have my eternal
gratitude.
Thanks,
Alex
--
View this message in context: http://maven.40175.n5.nabble.com/newbie-issue-in-preparing-release-svn-tag-dies-with-Unable-to-open-an-ra-local-session-to-URL-tp4972156p4972156.html
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: newbie issue in preparing release: svn tag dies with "Unable to
open an ra_local session to URL"
Posted by Dennis Lundberg <de...@gmail.com>.
Hi
The developerConnection should point to the svn server - not the svn
checkout.
On Monday, November 7, 2011, revengeofthepencil <
revengeofthepencil@gmail.com> wrote:
> Hello all,
>
> I'm a little new to cutting a release with Maven and I'm having a terrible
> time getting it to work. Everything looks good until I get to the svn tag
> step, at which point it always fails. Here's the error:
>
> [INFO]
> ------------------------------------------------------------------------
> [INFO] BUILD FAILURE
> [INFO]
> ------------------------------------------------------------------------
> [INFO] Total time: 17.274s
> [INFO] Finished at: Mon Nov 07 10:57:30 PST 2011
> [INFO] Final Memory: 5M/81M
> [INFO]
> ------------------------------------------------------------------------
> [ERROR] Failed to execute goal
> org.apache.maven.plugins:maven-release-plugin:2.0-beta-9:prepare
> (default-cli) on project testproject: Unable to tag SCM
> [ERROR] Provider message:
> [ERROR] The svn tag command failed.
> [ERROR] Command output:
> [ERROR] svn: Unable to open an ra_local session to URL
> [ERROR] svn: Unable to open repository
> 'file:///Users/ignatiusjreilly/release/testproject'
> [ERROR] -> [Help 1]
> org.apache.maven.lifecycle.LifecycleExecutionException: Failed to execute
> goal org.apache.maven.plugins:maven-release-plugin:2.0-beta-9:prepare
> (default-cli) on project testproject: Unable to tag SCM
> Provider message:
> The svn tag command failed.
> Command output:
> svn: Unable to open an ra_local session to URL
> svn: Unable to open repository
> 'file:///Users/ignatiusjreilly/release/testproject'
>
> at
>
org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:213)
> at
>
org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:153)
> at
>
org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:145)
> at
>
org.apache.maven.lifecycle.internal.LifecycleModuleBuilder.buildProject(LifecycleModuleBuilder.java:84)
> at
>
org.apache.maven.lifecycle.internal.LifecycleModuleBuilder.buildProject(LifecycleModuleBuilder.java:59)
> at
>
org.apache.maven.lifecycle.internal.LifecycleStarter.singleThreadedBuild(LifecycleStarter.java:183)
> at
>
org.apache.maven.lifecycle.internal.LifecycleStarter.execute(LifecycleStarter.java:161)
> at org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java:319)
> at org.apache.maven.DefaultMaven.execute(DefaultMaven.java:156)
> at org.apache.maven.cli.MavenCli.execute(MavenCli.java:537)
> at org.apache.maven.cli.MavenCli.doMain(MavenCli.java:196)
> at org.apache.maven.cli.MavenCli.main(MavenCli.java:141)
> at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
> at
>
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
> at
>
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
> at java.lang.reflect.Method.invoke(Method.java:597)
> at
>
org.codehaus.plexus.classworlds.launcher.Launcher.launchEnhanced(Launcher.java:290)
> at
>
org.codehaus.plexus.classworlds.launcher.Launcher.launch(Launcher.java:230)
> at
>
org.codehaus.plexus.classworlds.launcher.Launcher.mainWithExitCode(Launcher.java:409)
> at
> org.codehaus.plexus.classworlds.launcher.Launcher.main(Launcher.java:352)
> Caused by: org.apache.maven.plugin.MojoFailureException: Unable to tag SCM
> Provider message:
> The svn tag command failed.
> Command output:
> svn: Unable to open an ra_local session to URL
> svn: Unable to open repository
> 'file:///Users/ignatiusjreilly/release/testproject'
>
>
> I am certain that the path /Users/ignatiusjreilly/release/testproject is
> valid and is part of an svn checkout. Here are the relevant portions of my
> pom:
>
>
> <scm>
>
>
<developerConnection>scm:svn:file:////Users/ignatiusjreilly/release/testproject/trunk</developerConnection>
> </scm>
>
> ....
> <plugin>
> <groupId>org.apache.maven.plugins</groupId>
> <artifactId>maven-release-plugin</artifactId>
> <version>2.0-beta-9</version>
> <configuration>
>
> <tagBase>file:////Users/ignatiusjreilly/release/testproject/tags</tagBase>
> </configuration>
> </plugin>
>
> Anyone who can spot what I'm doing wrong here will have my eternal
> gratitude.
>
> Thanks,
> Alex
>
>
> --
> View this message in context:
http://maven.40175.n5.nabble.com/newbie-issue-in-preparing-release-svn-tag-dies-with-Unable-to-open-an-ra-local-session-to-URL-tp4972156p4972156.html
> 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
>
>
--
Dennis Lundberg