First I compiled org.codehaus.plexus:plexus-container-default:jar:1.0-alpha-10

(I modified the pom, removing SNAPSHOT then isntalled it locally, to be sure that I was the only one with the latest version).

Second I forced maven-components/integration-tests/maven-core-it-plugin

to depend upon the alpha-10 version of the jar:

Index: pom.xml
===================================================================
--- pom.xml     (revision 412427)
+++ pom.xml     (working copy)
@@ -36,5 +36,10 @@
       <artifactId>bsh</artifactId>
       <version>1.3.0</version>
     </dependency>
+    <dependency>
+      <groupId>org.codehaus.plexus</groupId>
+      <artifactId>plexus-container-default</artifactId>
+      <version>1.0-alpha-10</version>
+    </dependency>
   </dependencies>
 </model>


Third I run my integration test:

> pwd
/home/jerome/Dev/OSS/m2/maven-components/maven-core-it/it0107/child-project
> mvn -X core-it:param-implementation 2>&1 > /tmp/log.txt

and I get:


+ Error stacktraces are turned on.
Maven version: 2.1-SNAPSHOT
[DEBUG] Building Maven user-level plugin registry from: '/home/jerome/.m2/plugin-registry.xml'
[DEBUG] Building Maven global-level plugin registry from: '/home/jerome/local/lib/maven-2.1-SNAPSHOT/conf/plugin-registry.xml'
settings.getPluginGroups().size() = 0
settings.getPluginGroups().size() = 0
[INFO] Scanning for projects...
[INFO] Searching repository for plugin with prefix: 'core-it'.
[INFO] org.apache.maven.plugins: checking for updates from central
Parsing /home/jerome/.m2/repository/org/apache/maven/plugins/maven-metadata-central.xml
Parsing /home/jerome/.m2/repository/org/apache/maven/plugins/maven-metadata-local.xml
[INFO] org.codehaus.mojo: checking for updates from central
Parsing /home/jerome/.m2/repository/org/codehaus/mojo/maven-metadata-central.xml
Parsing /home/jerome/.m2/repository/org/codehaus/mojo/maven-metadata-local.xml
[DEBUG] Skipping disabled repository central
[DEBUG] Skipping disabled repository central
Parsing /home/jerome/.m2/repository/org/apache/maven/plugins/maven-core-it-plugin/1.1-SNAPSHOT/maven-metadata-local.xml
[DEBUG] maven-core-it-plugin: using locally installed snapshot
[DEBUG] Retrieving parent-POM: org.apache.maven.plugins:maven-plugin-parent::2.0.1 for project: null:maven-core-it-plugin:maven-plugin:1.1-SNAPSHOT from the repository.
Parsing /home/jerome/.m2/repository/org/apache/maven/plugins/maven-core-it-plugin/1.1-SNAPSHOT/maven-metadata-local.xml
[DEBUG] maven-core-it-plugin: using locally installed snapshot
[INFO] ----------------------------------------------------------------------------
[INFO] Building Unnamed - org.apache.maven:maven-core-it0107-child-project:jar:1.0
[INFO]    task-segment: [core-it:param-implementation]
[INFO] ----------------------------------------------------------------------------
[DEBUG] org.apache.maven.plugins:maven-core-it-plugin:maven-plugin:1.1-SNAPSHOT:runtime (selected for runtime)
[DEBUG] Retrieving parent-POM: org.apache.maven:maven::2.0.1 for project: org.apache.maven:maven-plugin-api:jar:2.0.1 from the repository.
[DEBUG]   org.apache.maven:maven-plugin-api:jar:2.0.1:runtime (selected for runtime)
[DEBUG]   jline:jline:jar:0.9.1:runtime (selected for runtime)
[DEBUG] Retrieving parent-POM: org.apache.maven:maven::2.0 for project: null:maven-archiver:jar:2.0 from the repository.
[DEBUG]   org.apache.maven:maven-archiver:jar:2.0:runtime (selected for runtime)
[DEBUG] Retrieving parent-POM: org.apache.maven:maven::2.0 for project: null:maven-project:jar:2.0 from the repository.
[DEBUG]     org.apache.maven:maven-project:jar:2.0:runtime (selected for runtime)
[DEBUG]       org.codehaus.plexus:plexus-utils:jar:1.0.4:runtime (selected for runtime)
[DEBUG]       org.codehaus.plexus:plexus-container-default:jar:1.0-alpha-8:runtime (selected for runtime)
[DEBUG]         classworlds:classworlds:jar:1.1-alpha-2:runtime (selected for runtime)
[DEBUG]         junit:junit:jar:3.8.1:runtime (selected for runtime)
[DEBUG] Retrieving parent-POM: org.apache.maven:maven::2.0 for project: org.apache.maven:maven-artifact:jar:2.0 from the repository.
[DEBUG]       org.apache.maven:maven-artifact:jar:2.0:runtime (selected for runtime)
[DEBUG] Retrieving parent-POM: org.apache.maven:maven::2.0 for project: org.apache.maven:maven-model:jar:2.0 from the repository.
[DEBUG]       org.apache.maven:maven-model:jar:2.0:runtime (selected for runtime)
[DEBUG] Retrieving parent-POM: org.apache.maven:maven::2.0 for project: org.apache.maven:maven-artifact-manager:jar:2.0 from the repository.
[DEBUG]       org.apache.maven:maven-artifact-manager:jar:2.0:runtime (selected for runtime)
[DEBUG] Retrieving parent-POM: org.apache.maven:maven::2.0 for project: org.apache.maven:maven-repository-metadata:jar:2.0 from the repository.
[DEBUG]         org.apache.maven:maven-repository-metadata:jar:2.0:runtime (selected for runtime)
[DEBUG]         org.apache.maven.wagon:wagon-provider-api:jar:1.0-alpha-5:runtime (selected for runtime)
[DEBUG] Retrieving parent-POM: org.apache.maven:maven::2.0 for project: null:maven-profile:jar:2.0 from the repository.
[DEBUG]       org.apache.maven:maven-profile:jar:2.0:runtime (selected for runtime)
[DEBUG]     org.codehaus.plexus:plexus-archiver:jar:1.0-alpha-3:runtime (selected for runtime)
[DEBUG]       classworlds:classworlds:jar:1.1-alpha-2:runtime (selected for runtime)
[DEBUG]     org.apache.maven:maven-artifact:jar:2.0:runtime (selected for runtime)
[DEBUG]   bsh:bsh:jar:1.3.0:runtime (selected for runtime)
[DEBUG]   org.apache.maven:maven-project:jar:2.0:runtime (selected for runtime)
[DEBUG]     org.codehaus.plexus:plexus-utils:jar:1.0.4:runtime (selected for runtime)
[DEBUG]     org.codehaus.plexus:plexus-container-default:jar:1.0-alpha-8:runtime (selected for runtime)
[DEBUG]       junit:junit:jar:3.8.1:runtime (selected for runtime)
[DEBUG]     org.apache.maven:maven-model:jar:2.0:runtime (selected for runtime)
[DEBUG]     org.apache.maven:maven-artifact-manager:jar:2.0:runtime (selected for runtime)
[DEBUG]       org.apache.maven:maven-repository-metadata:jar:2.0:runtime (selected for runtime)
[DEBUG]       org.apache.maven.wagon:wagon-provider-api:jar:1.0-alpha-5:runtime (selected for runtime)
[DEBUG]     org.apache.maven:maven-profile:jar:2.0:runtime (selected for runtime)
[DEBUG] Retrieving parent-POM: org.codehaus.plexus:plexus-containers::1.0.4 for project: null:plexus-container-default:jar:1.0-alpha-10 from the repository.
[DEBUG] Retrieving parent-POM: org.codehaus.plexus:plexus::1.0.5 for project: org.codehaus.plexus:plexus-containers:pom:1.0.4 from the repository.
[DEBUG]   org.codehaus.plexus:plexus-container-default:jar:1.0-alpha-8:runtime (removed - nearer found: 1.0-alpha-10)
[DEBUG]   org.codehaus.plexus:plexus-container-default:jar:1.0-alpha-10:runtime (selected for runtime)
[DEBUG]     classworlds:classworlds:jar:1.1-alpha-2:runtime (removed - nearer found: 1.1)
[DEBUG]     classworlds:classworlds:jar:1.1:runtime (selected for runtime)
[DEBUG]     junit:junit:jar:3.8.1:runtime (selected for runtime)
[DEBUG] Retrieving parent-POM: org.codehaus.plexus:plexus::1.0.5 for project: null:plexus-utils:jar:1.2 from the repository.
[DEBUG]     org.codehaus.plexus:plexus-utils:jar:1.2:runtime (removed - nearer found: 1.0.4)
[DEBUG]   org.apache.maven:maven-artifact:jar:2.0:runtime (selected for runtime)
[DEBUG] Configuring mojo 'org.apache.maven.plugins:maven-core-it-plugin:1.1-SNAPSHOT:param-implementation' -->
[INFO] ------------------------------------------------------------------------
[ERROR] BUILD ERROR
[INFO] ------------------------------------------------------------------------
[INFO] Failed to configure plugin parameters for: org.apache.maven.plugins:maven-core-it-plugin:1.1-SNAPSHOT



Cause: Class 'org.apache.maven.plugin.coreit.Bla' cannot be instantiated
[INFO] ------------------------------------------------------------------------
[DEBUG] Trace
org.apache.maven.lifecycle.LifecycleExecutionException: Error configuring: org.apache.maven.plugins:maven-core-it-plugin. Reason: Unable to parse the created DOM for plugin configuration
	at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoals(DefaultLifecycleExecutor.java:563)
	at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeStandaloneGoal(DefaultLifecycleExecutor.java:488)
	at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoal(DefaultLifecycleExecutor.java:458)
	at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoalAndHandleFailures(DefaultLifecycleExecutor.java:306)
	at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeTaskSegments(DefaultLifecycleExecutor.java:273)
	at org.apache.maven.lifecycle.DefaultLifecycleExecutor.execute(DefaultLifecycleExecutor.java:140)
	at org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java:381)
	at org.apache.maven.DefaultMaven.execute(DefaultMaven.java:170)
	at org.apache.maven.embedder.MavenEmbedder.execute(MavenEmbedder.java:694)
	at org.apache.maven.cli.MavenCli.main(MavenCli.java:372)
	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.plugin.PluginConfigurationException: Error configuring: org.apache.maven.plugins:maven-core-it-plugin. Reason: Unable to parse the created DOM for plugin configuration
	at org.apache.maven.plugin.DefaultPluginManager.populatePluginFields(DefaultPluginManager.java:1041)
	at org.apache.maven.plugin.DefaultPluginManager.getConfiguredMojo(DefaultPluginManager.java:576)
	at org.apache.maven.plugin.DefaultPluginManager.executeMojo(DefaultPluginManager.java:390)
	at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoals(DefaultLifecycleExecutor.java:534)
	... 17 more
Caused by: org.codehaus.plexus.component.configurator.ComponentConfigurationException: Class 'org.apache.maven.plugin.coreit.Bla' cannot be instantiated
	at org.codehaus.plexus.component.configurator.converters.AbstractConfigurationConverter.instantiateObject(AbstractConfigurationConverter.java:121)
	at org.codehaus.plexus.component.configurator.converters.composite.ObjectWithFieldsConverter.fromConfiguration(ObjectWithFieldsConverter.java:88)
	at org.codehaus.plexus.component.configurator.converters.ComponentValueSetter.configure(ComponentValueSetter.java:247)
	at org.codehaus.plexus.component.configurator.converters.composite.ObjectWithFieldsConverter.processConfiguration(ObjectWithFieldsConverter.java:137)
	at org.codehaus.plexus.component.configurator.BasicComponentConfigurator.configureComponent(BasicComponentConfigurator.java:56)
	at org.apache.maven.plugin.DefaultPluginManager.populatePluginFields(DefaultPluginManager.java:1035)
	... 20 more
Caused by: java.lang.InstantiationException: org.apache.maven.plugin.coreit.Bla
	at java.lang.Class.newInstance0(Class.java:335)
	at java.lang.Class.newInstance(Class.java:303)
	at org.codehaus.plexus.component.configurator.converters.AbstractConfigurationConverter.instantiateObject(AbstractConfigurationConverter.java:111)
	... 25 more
[INFO] ------------------------------------------------------------------------
[INFO] Total time: 3 seconds
[INFO] Finished at: Wed Jun 07 23:20:37 CEST 2006
[INFO] Final Memory: 2M/5M
[INFO] ------------------------------------------------------------------------




But when I,look at the plexus-container-default code. there are no lines that match the stacktrace.

E.g. ObjectWithFieldsConverter l 137 doesn't exist.

Where does this other version of the component come from and how to force it to alpha-10 ?

