Hi - I have a multi module project structured like this

Review Manager

--- Review Manager JAR

--- Review Manager HL7 JAR

--- Review Manager WAR

The parent's pom.xml has no scm configuration 

The 3 child pom's use the following scm configuration:

  <scm>

 
<connection>scm:cvs:pserver:fakeusern...@fakeserver:/repo/path:${artifac
tId}</connection>

  </scm>

When I run the mvn scm:checkout command at the parent level, I get the
following:


+ Error stacktraces are turned on.

[INFO] Scanning for projects...

[INFO] Reactor build order: 

[INFO]   Review Manager

[INFO]   Review Manager JAR

[INFO]   Review Manager HL7 JAR

[INFO]   Review Manager WAR

[INFO] Searching repository for plugin with prefix: 'scm'.

[INFO]
------------------------------------------------------------------------

[INFO] Building Review Manager

[INFO]    task-segment: [scm:checkout] (aggregator-style)

[INFO]
------------------------------------------------------------------------

[INFO] [scm:checkout {execution: default-cli}]

[INFO]
------------------------------------------------------------------------

[ERROR] BUILD ERROR

[INFO]
------------------------------------------------------------------------

[INFO] Cannot run checkout command : 

Embedded error: Can't load the scm provider.

You need to define a connectionUrl parameter

[INFO]
------------------------------------------------------------------------

[INFO] Trace

org.apache.maven.lifecycle.LifecycleExecutionException: Cannot run
checkout command : 

        at
org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoals(Default
LifecycleExecutor.java:719)

        at
org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeStandaloneGoa
l(DefaultLifecycleExecutor.java:569)

        at
org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoal(DefaultL
ifecycleExecutor.java:539)

        at
org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoalAndHandle
Failures(DefaultLifecycleExecutor.java:387)

        at
org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeTaskSegments(
DefaultLifecycleExecutor.java:284)

        at
org.apache.maven.lifecycle.DefaultLifecycleExecutor.execute(DefaultLifec
ycleExecutor.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.jav
a:39)

        at
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessor
Impl.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(DefaultPluginMa
nager.java:490)

        at
org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoals(Default
LifecycleExecutor.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(AbstractScm
Mojo.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(AbstractScm
Mojo.java:222)

        at
org.apache.maven.scm.plugin.AbstractScmMojo.getScmRepository(AbstractScm
Mojo.java:271)

        ... 21 more

[INFO]
------------------------------------------------------------------------

[INFO] Total time: 2 seconds

[INFO] Finished at: Thu Jun 10 17:09:03 EDT 2010

[INFO] Final Memory: 8M/254M

[INFO]
------------------------------------------------------------------------

If I remove the parent element from any of the child projects then I can
run the same mvn scm:checkout command without any problem.

I'd appreciate if somebody could help me figure out what steps need to
be taken to make all checkouts occur when the command is run from the
parent project.

Thanks

Tom 

Reply via email to