If I understand this right the scm plugin will not
read the connection tag in the pom.xml and requires a
system  variable to be defined to point it to the
source repository. How do I use this feature in a
multiproject environment, where each child project is
a different module in the same source repository. 

Will it read other information such as the 'tag'
element from the pom.xml.

Thanks
Sid

--- Emmanuel Venisse <[EMAIL PROTECTED]> wrote:

> yes, it's a pb I just see, you need to add your
> password to the scm 
> connection
> 
> m2 scm:checkout 
>
-DconnectionUrl=scm:cvs:pserver:<my-userid>:<my-password>@<my.cvs.server.com>:<my-cvs-repository>:<my-module>
> 
> Emmanuel
> 
> 
> [EMAIL PROTECTED] wrote:
> > Thanks for the tip, Emmanual
> > 
> > I run the scm:checkout with the system property
> defined, as follows:
> > 
> > cvs login
> > <my password>
> > 
> > m2 scm:checkout
>
-DconnectionUrl=scm:cvs:pserver:<my-userid>@<my.cvs.server.com>:<my-cvs-repository>:<my-module>
> > 
> > and receive the following response:
> > 
> > [INFO] Searching repository for plugin with
> prefix: 'scm'.
> > [INFO]
>
----------------------------------------------------------------------------
> > [INFO] Building Maven Quick Start Archetype
> > [INFO]    task-segment: [scm:checkout]
> > [INFO]
>
----------------------------------------------------------------------------
> > [INFO] [scm:checkout]
> > [INFO]
>
----------------------------------------------------------------------------
> > [ERROR] BUILD ERROR
> > [INFO]
>
----------------------------------------------------------------------------
> > [INFO] Diagnosis: Cannot run checkout command : 
> > [INFO]
>
----------------------------------------------------------------------------
> > [ERROR] Cause: 
> > org.apache.maven.plugin.MojoExecutionException:
> Cannot run checkout command : 
> >     at
>
org.apache.maven.scm.plugin.CheckoutMojo.execute(CheckoutMojo.java:77)
> >     at
>
org.apache.maven.plugin.DefaultPluginManager.executeMojo(DefaultPluginManager.java:357)
> >     at
>
org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoals(DefaultLifecycleExecutor.java:479)
> >     at
>
org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeStandaloneGoal(DefaultLifecycleExecutor.java:460)
> >     at
>
org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoal(DefaultLifecycleExecutor.java:442)
> >     at
>
org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeTaskSegments(DefaultLifecycleExecutor.java:273)
> >     at
>
org.apache.maven.lifecycle.DefaultLifecycleExecutor.execute(DefaultLifecycleExecutor.java:131)
> >     at
>
org.apache.maven.DefaultMaven.execute(DefaultMaven.java:186)
> >     at
>
org.apache.maven.cli.MavenCli.main(MavenCli.java:316)
> >     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:585)
> >     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.scm.ScmException:
> Exception while executing SCM command.
> >     at
>
org.apache.maven.scm.command.AbstractCommand.execute(AbstractCommand.java:59)
> >     at
>
org.apache.maven.scm.provider.cvslib.CvsScmProvider.login(CvsScmProvider.java:497)
> >     at
>
org.apache.maven.scm.provider.AbstractScmProvider.login(AbstractScmProvider.java:201)
> >     at
>
org.apache.maven.scm.provider.AbstractScmProvider.checkOut(AbstractScmProvider.java:160)
> >     at
>
org.apache.maven.scm.plugin.CheckoutMojo.execute(CheckoutMojo.java:65)
> >     ... 16 more
> > Caused by: org.apache.maven.scm.ScmException:
> password is required
> >     at
>
org.apache.maven.scm.provider.cvslib.command.login.CvsPass.execute(CvsPass.java:94)
> >     at
>
org.apache.maven.scm.provider.cvslib.command.login.CvsLoginCommand.executeLoginCommand(CvsLoginCommand.java:57)
> >     at
>
org.apache.maven.scm.login.AbstractLoginCommand.executeCommand(AbstractLoginCommand.java:44)
> >     at
>
org.apache.maven.scm.command.AbstractCommand.execute(AbstractCommand.java:55)
> >     ... 20 more
> > [INFO]
>
----------------------------------------------------------------------------
> > [INFO] Total time: 1 second
> > [INFO] Finished at: Thu Sep 15 07:06:46 PDT 2005
> > [INFO] Final Memory: 2M/4M
> > [INFO]
>
----------------------------------------------------------------------------
> > 
> > It doesn't seem to be recognizing my 'cvs login'
> state/information. Is there anonther system
> > property I should be setting?
> > 
> > Thanks for any help!
> > 
> > John
> > 
> > -----Original Message-----
> > From: Emmanuel Venisse
> [mailto:[EMAIL PROTECTED]
> > Sent: Thursday, September 15, 2005 12:23 AM
> > To: Maven Users List
> > Subject: Re: [m2] scm:checkout
> > 
> > 
> > checkout mojo don't look at scmConnection in pom.
> My previous comment 
> > told to create simple pom for don't obtain the
> NPE.
> > 
> > You need to run checkout mojo with 'connectionUrl'
> system property
> > 
> > m2 -DconnectionUrl=your_scm_url
> > 
> > Emmanuel
> > 
> > [EMAIL PROTECTED] wrote:
> > 
> >>Hi Emmanuel and All, Thanks for the help!
> >>
> >>I've implemented the command in my pom.xml, as
> follows:
> >>
> >><project>
> >>   .
> >>   .
> >>   .
> >>  <scm>
> >>   
>
<connection>scm:cvs:pserver:<my-userid>@<my.cvs.server.com>:<my-cvs-repository>:<my-module></connection>
> >>  </scm>
> >>   .
> >>   .
> >>   .
> >></project>
> >>
> >>using
>
http://maven.apache.org/maven2/maven-model/maven.html#class_Scm
> as a guide, and get
> >>the following result:
> >>
> >>+ Error stacktraces are turned on.
> >>[DEBUG] Building Maven global-level plugin
> registry from:
> 'c:\maven-2.0-alpha-3\conf\plugin-registry.xml'
> >>[DEBUG] Building Maven user-level plugin registry
> from: 'C:\Documents and
> Settings\jharriso\.m2\plugin-registry.xml'
> >>[INFO] Searching repository for plugin with
> prefix: 'scm'.
> >>[DEBUG] Skipping disabled repository
> central-plugins
> >>[DEBUG] Skipping disabled repository central
> >>[DEBUG] resolveMetaData:
>
org.apache.maven.plugins:maven-scm-plugin:pom:1.0-alpha-2-SNAPSHOT:
> NOT checking for updates from snapshots-plugins
> (http://snapshots.maven.codehaus.org/maven2/plugins)
> >>[DEBUG] resolveMetaData:
>
org.apache.maven.plugins:maven-scm-plugin:pom:1.0-alpha-2-SNAPSHOT:
> Skipping disabled repository central-plugins
> (http://repo1.maven.org/maven2/plugins)
> >>[DEBUG] resolveMetaData:
>
org.apache.maven.plugins:maven-scm-plugin:pom:1.0-alpha-2-SNAPSHOT:
> Skipping disabled repository central
> (http://repo1.maven.org/maven2)
> >>[DEBUG] maven-scm-plugin: using locally installed
> snapshot
> >>[DEBUG] maven-scm-plugin: using locally installed
> snapshot
> >>[DEBUG] Skipping disabled repository
> central-plugins
> >>[DEBUG] Skipping disabled repository central
> >>[DEBUG] resolveMetaData: Artifact version metadata
> for:
>
org.apache.maven.plugins:maven-plugin-parent:pom:2.0-beta-1-SNAPSHOT
> could not be found on repository: snapshots-plugins
>
>>org.apache.maven.wagon.ResourceDoesNotExistException:
> Unable to locate resource in repository
> 
=== message truncated ===



                
__________________________________ 
Yahoo! Mail - PC Magazine Editors' Choice 2005 
http://mail.yahoo.com

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

Reply via email to