Re: having problems with the scm plugin
According to the docs, the project.scm.connection element is used by default. Keep username and password in the plugin configuration and make sure that the project.scm.connection is correct. If you want to use developerConnection instead that's pÄossible to configure on the scm plugin, see the docs. http://maven.apache.org/scm/plugins/usage.html /Anders On Thu, Feb 25, 2010 at 01:52, Grant Lewis ukchuckt...@gmail.com wrote: The line breaks aren't the problem. I made some progress. I'm still a little confused by connectionUrl versus developerConnectionUrl but the following in my parent POM file finally worked for me. I never got developerConnectionUrl to work and I'm honestly not sure how the property is used by the plugin. plugins plugin groupIdorg.apache.maven.plugins/groupId artifactIdmaven-scm-plugin/artifactId version1.3/version configuration connectionUrlscm:svn: https://10.6.22.11/svn/icfdev/NE-FIMS/trunk/${project.artifactId}https://10.6.22.11/svn/icfdev/NE-FIMS/trunk/$%7Bproject.artifactId%7D /connectionUrl username${svn.username}/username password${svn.password}/password /configuration /plugin /plugins On Feb 24, 2010, at 6:51 PM, Bastian Spanneberg wrote: Grant Lewis schrieb: As far as I can tell my configuration is correct, using Maven 2.2.1, scm 1.3 and OS X 10.6.2. The relevant parts of my POM file are included. The tags are in my parent POM file so I expect the child project to inherit. I don't really understand the difference between connection and developerConnection so I set them both. When I try to run mvn scm:checkout on a child project I observe the error shown below from the plug-in. I also tried adding connectionUrl in the configuration for the plugin but that didn't help, same error. Anyone have some ideas? I'm not having any problems with command-line svn, only the Maven svn integration. Thanks. are these line breaks also in your pom, or just in this mail ? i remember i've got problems once with a similar situation, just cannot remember if it was with a scm connection url. - To unsubscribe, e-mail: users-unsubscr...@maven.apache.org For additional commands, e-mail: users-h...@maven.apache.org - To unsubscribe, e-mail: users-unsubscr...@maven.apache.org For additional commands, e-mail: users-h...@maven.apache.org
having problems with the scm plugin
As far as I can tell my configuration is correct, using Maven 2.2.1, scm 1.3 and OS X 10.6.2. The relevant parts of my POM file are included. The tags are in my parent POM file so I expect the child project to inherit. I don't really understand the difference between connection and developerConnection so I set them both. scm connection scm:svn:https://10.6.22.11/svn/icfdev/NE-FIMS/trunk /connection developerConnection scm:svn:https://10.6.22.11/svn/icfdev/NE-FIMS/trunk /developerConnection /scm plugins plugin groupIdorg.apache.maven.plugins/groupId artifactIdmaven-scm-plugin/artifactId version1.3/version configuration username${svn.username}/username password${svn.password}/password /configuration /plugin /plugins When I try to run mvn scm:checkout on a child project I observe the error shown below from the plug-in. I also tried adding connectionUrl in the configuration for the plugin but that didn't help, same error. Anyone have some ideas? I'm not having any problems with command-line svn, only the Maven svn integration. Thanks. Grant STACK TRACE org.apache.maven.lifecycle.LifecycleExecutionException: Cannot run checkout command : at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoals(DefaultLifecycleExecutor.java:719) at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeStandaloneGoal(DefaultLifecycleExecutor.java:569) at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoal(DefaultLifecycleExecutor.java:539) at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoalAndHandleFailures(DefaultLifecycleExecutor.java:387) at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeTaskSegments(DefaultLifecycleExecutor.java:284) at org.apache.maven.lifecycle.DefaultLifecycleExecutor.execute(DefaultLifecycleExecutor.java:180) at org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java:328) at org.apache.maven.DefaultMaven.execute(DefaultMaven.java:138) at org.apache.maven.cli.MavenCli.main(MavenCli.java:362) at org.apache.maven.cli.compat.CompatibleMain.main(CompatibleMain.java:60) 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.classworlds.Launcher.launchEnhanced(Launcher.java:315) at org.codehaus.classworlds.Launcher.launch(Launcher.java:255) at org.codehaus.classworlds.Launcher.mainWithExitCode(Launcher.java:430) at org.codehaus.classworlds.Launcher.main(Launcher.java:375) Caused by: org.apache.maven.plugin.MojoExecutionException: Cannot run checkout command : at org.apache.maven.scm.plugin.CheckoutMojo.checkout(CheckoutMojo.java:134) at org.apache.maven.scm.plugin.CheckoutMojo.execute(CheckoutMojo.java:93) at org.apache.maven.plugin.DefaultPluginManager.executeMojo(DefaultPluginManager.java:490) at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoals(DefaultLifecycleExecutor.java:694) ... 17 more Caused by: org.apache.maven.scm.ScmException: Can't load the scm provider. at org.apache.maven.scm.plugin.AbstractScmMojo.getScmRepository(AbstractScmMojo.java:334) at org.apache.maven.scm.plugin.CheckoutMojo.checkout(CheckoutMojo.java:112) ... 20 more Caused by: java.lang.NullPointerException: You need to define a connectionUrl parameter at org.apache.maven.scm.plugin.AbstractScmMojo.getConnectionUrl(AbstractScmMojo.java:222) at org.apache.maven.scm.plugin.AbstractScmMojo.getScmRepository(AbstractScmMojo.java:271) ... 21 more /STACK TRACE - To unsubscribe, e-mail: users-unsubscr...@maven.apache.org For additional commands, e-mail: users-h...@maven.apache.org
Re: having problems with the scm plugin
Grant Lewis schrieb: As far as I can tell my configuration is correct, using Maven 2.2.1, scm 1.3 and OS X 10.6.2. The relevant parts of my POM file are included. The tags are in my parent POM file so I expect the child project to inherit. I don't really understand the difference between connection and developerConnection so I set them both. When I try to run mvn scm:checkout on a child project I observe the error shown below from the plug-in. I also tried adding connectionUrl in the configuration for the plugin but that didn't help, same error. Anyone have some ideas? I'm not having any problems with command-line svn, only the Maven svn integration. Thanks. are these line breaks also in your pom, or just in this mail ? i remember i've got problems once with a similar situation, just cannot remember if it was with a scm connection url. - To unsubscribe, e-mail: users-unsubscr...@maven.apache.org For additional commands, e-mail: users-h...@maven.apache.org
Re: having problems with the scm plugin
The line breaks aren't the problem. I made some progress. I'm still a little confused by connectionUrl versus developerConnectionUrl but the following in my parent POM file finally worked for me. I never got developerConnectionUrl to work and I'm honestly not sure how the property is used by the plugin. plugins plugin groupIdorg.apache.maven.plugins/groupId artifactIdmaven-scm-plugin/artifactId version1.3/version configuration connectionUrlscm:svn:https://10.6.22.11/svn/icfdev/NE-FIMS/trunk/${project.artifactId}/connectionUrl username${svn.username}/username password${svn.password}/password /configuration /plugin /plugins On Feb 24, 2010, at 6:51 PM, Bastian Spanneberg wrote: Grant Lewis schrieb: As far as I can tell my configuration is correct, using Maven 2.2.1, scm 1.3 and OS X 10.6.2. The relevant parts of my POM file are included. The tags are in my parent POM file so I expect the child project to inherit. I don't really understand the difference between connection and developerConnection so I set them both. When I try to run mvn scm:checkout on a child project I observe the error shown below from the plug-in. I also tried adding connectionUrl in the configuration for the plugin but that didn't help, same error. Anyone have some ideas? I'm not having any problems with command-line svn, only the Maven svn integration. Thanks. are these line breaks also in your pom, or just in this mail ? i remember i've got problems once with a similar situation, just cannot remember if it was with a scm connection url. - To unsubscribe, e-mail: users-unsubscr...@maven.apache.org For additional commands, e-mail: users-h...@maven.apache.org - To unsubscribe, e-mail: users-unsubscr...@maven.apache.org For additional commands, e-mail: users-h...@maven.apache.org