Hello all,

I'm having a problem trying to use the wagon-scm plugin. I have added
the following to my pom (in this case, a parent pom):

<build>
 <extensions>
  <extension>
   <groupId>org.apache.maven.wagon</groupId>
   <artifactId>wagon-scm</artifactId>
   <version>1.0-beta-2-SNAPSHOT</version>
  </extension>
  <extension>
   <groupId>org.apache.maven.scm</groupId>
   <artifactId>maven-scm-manager-plexus</artifactId>
   <version>1.0-SNAPSHOT</version>
  </extension>
  <extension>
   <groupId>org.apache.maven.scm</groupId>
   <artifactId>maven-scm-provider-svnexe</artifactId>
   <version>1.0-SNAPSHOT</version>
  </extension>
 </extensions>
</build>

However, when I now try to build my project from the child pom, an
execution which uses the scm checkout goal stops working. The
execution is:

 <plugin>
   <groupId>org.apache.maven.plugins</groupId>
   <artifactId>maven-scm-plugin</artifactId>
   <version>1.0-SNAPSHOT</version>
   <executions>
    <execution>
     <phase>validate</phase>
     <configuration>
      <checkoutDirectory>SOME_DIR</checkoutDirectory>
      <connectionUrl>scm:svn:http://SOMEHOST/etc</connectionUrl>
      <skipCheckoutIfExists>false</skipCheckoutIfExists>
     </configuration>
     <goals>
      <goal>checkout</goal>
     </goals>
    </execution>
   </executions>
  </plugin>

The error I get is:

[ERROR] BUILD ERROR
[INFO] ------------------------------------------------------------------------
[INFO] Internal error in the plugin manager executing goal 'org.apache.maven.plu
gins:maven-scm-plugin:1.0-SNAPSHOT:checkout': Unable to find the mojo
'org.apache.
maven.plugins:maven-scm-plugin:1.0-SNAPSHOT:checkout' in the plugin
'org.apache.ma
ven.plugins:maven-scm-plugin'

Note that this execution starts working again if I comment out the
<extensions> element from the parent pom, and the wagon-scm plugin
works if I comment out the maven-scm-plugin <execution>. Also, the
problem arises even though the wagon-scm plugin is not (to my
knowledge) being used. I have also tried various versions of wagon-scm
and maven-scm-plugin, but the same problem always occurs. I have
attached the full stack trace of the error.

Thanks for any help,

Dean.
[ERROR] BUILD ERROR
[INFO] ------------------------------------------------------------------------
[INFO] Internal error in the plugin manager executing goal 'org.apache.maven.plu
gins:maven-scm-plugin:1.0-SNAPSHOT:checkout': Unable to find the mojo 'org.apach
e.maven.plugins:maven-scm-plugin:1.0-SNAPSHOT:checkout' in the plugin 'org.apach
e.maven.plugins:maven-scm-plugin'
[INFO] ------------------------------------------------------------------------
[INFO] Trace
org.apache.maven.lifecycle.LifecycleExecutionException: Internal error in the pl
ugin manager executing goal 'org.apache.maven.plugins:maven-scm-plugin:1.0-SNAPS
HOT:checkout': Unable to find the mojo 'org.apache.maven.plugins:maven-scm-plugi
n:1.0-SNAPSHOT:checkout' in the plugin 'org.apache.maven.plugins:maven-scm-plugi
n'
        at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoals(Defa
ultLifecycleExecutor.java:538)
        at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoalWithLi
fecycle(DefaultLifecycleExecutor.java:475)
        at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoal(Defau
ltLifecycleExecutor.java:454)
        at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoalAndHan
dleFailures(DefaultLifecycleExecutor.java:306)
        at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeTaskSegmen
ts(DefaultLifecycleExecutor.java:273)
        at org.apache.maven.lifecycle.DefaultLifecycleExecutor.execute(DefaultLi
fecycleExecutor.java:140)
        at org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java:322)
        at org.apache.maven.DefaultMaven.execute(DefaultMaven.java:115)
        at org.apache.maven.cli.MavenCli.main(MavenCli.java:256)
        at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
        at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.
java:39)
        at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAcces
sorImpl.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.plugin.PluginManagerException: Unable to find the mo
jo 'org.apache.maven.plugins:maven-scm-plugin:1.0-SNAPSHOT:checkout' in the plug
in 'org.apache.maven.plugins:maven-scm-plugin'
        at org.apache.maven.plugin.DefaultPluginManager.getConfiguredMojo(Defaul
tPluginManager.java:533)
        at org.apache.maven.plugin.DefaultPluginManager.executeMojo(DefaultPlugi
nManager.java:390)
        at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoals(Defa
ultLifecycleExecutor.java:534)
        ... 16 more
Caused by: org.codehaus.plexus.component.repository.exception.ComponentLookupExc
eption: Unable to lookup component 'org.apache.maven.plugin.Mojoorg.apache.maven
.plugins:maven-scm-plugin:1.0-SNAPSHOT:checkout', it could not be started
        at org.codehaus.plexus.DefaultPlexusContainer.lookup(DefaultPlexusContai
ner.java:339)
        at org.codehaus.plexus.DefaultPlexusContainer.lookup(DefaultPlexusContai
ner.java:440)
        at org.apache.maven.plugin.DefaultPluginManager.getConfiguredMojo(Defaul
tPluginManager.java:524)
        ... 18 more
Caused by: org.codehaus.plexus.component.repository.exception.ComponentLifecycle
Exception: Error starting component
        at org.codehaus.plexus.component.manager.AbstractComponentManager.startC
omponentLifecycle(AbstractComponentManager.java:109)
        at org.codehaus.plexus.component.manager.AbstractComponentManager.create
ComponentInstance(AbstractComponentManager.java:95)
        at org.codehaus.plexus.component.manager.PerLookupComponentManager.getCo
mponent(PerLookupComponentManager.java:48)
        at org.codehaus.plexus.DefaultPlexusContainer.lookup(DefaultPlexusContai
ner.java:331)
        ... 20 more
Caused by: org.codehaus.plexus.personality.plexus.lifecycle.phase.PhaseExecution
Exception: Error composing component
        at org.codehaus.plexus.personality.plexus.lifecycle.phase.CompositionPha
se.execute(CompositionPhase.java:33)
        at org.codehaus.plexus.lifecycle.AbstractLifecycleHandler.start(Abstract
LifecycleHandler.java:101)
        at org.codehaus.plexus.component.manager.AbstractComponentManager.startC
omponentLifecycle(AbstractComponentManager.java:105)
        ... 23 more
Caused by: org.codehaus.plexus.component.composition.CompositionException: Compo
sition failed for the field manager in object of type org.apache.maven.scm.plugi
n.CheckoutMojo
        at org.codehaus.plexus.component.composition.FieldComponentComposer.assi
gnRequirementToField(FieldComponentComposer.java:144)
        at org.codehaus.plexus.component.composition.FieldComponentComposer.asse
mbleComponent(FieldComponentComposer.java:73)
        at org.codehaus.plexus.component.composition.DefaultComponentComposerMan
ager.assembleComponent(DefaultComponentComposerManager.java:68)
        at org.codehaus.plexus.DefaultPlexusContainer.composeComponent(DefaultPl
exusContainer.java:1486)
        at org.codehaus.plexus.personality.plexus.lifecycle.phase.CompositionPha
se.execute(CompositionPhase.java:29)
        ... 25 more
Caused by: java.lang.IllegalArgumentException
        at sun.reflect.UnsafeObjectFieldAccessorImpl.set(UnsafeObjectFieldAccess
orImpl.java:63)
        at java.lang.reflect.Field.set(Field.java:656)
        at org.codehaus.plexus.component.composition.FieldComponentComposer.assi
gnRequirementToField(FieldComponentComposer.java:137)
        ... 29 more
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to