Hello, I'm having a problem with MavenEmbedder and was hoping someone could help me out. I'm trying to execute the following command: "mvn help:describe<https://cygno.com/exchange/cibarra/Inbox/Re:%20Help%20with%20the%20next%20post.EML/>-Dplugin=help -Dfull".
To do this, I use MavenEmbedder and CLIRequestUtils. When I configure the mojo ('org.apache.maven.plugins:maven-help-plugin:2.1:describe') with a BasicComponentConfigurator, this results in a ComponentConfigurationException "cannot assign value in field "plugin"". Below you find a test class to reproduce this behavior and the resulting output. I don't know what I'm doing wrong – all tips are appreciated. Thanks in advance for your help, Carlos ========================================================================================== import java.io.File; import java.util.Iterator; import java.util.List; import org.apache.commons.cli.CommandLine; import org.apache.maven.cli.CLIManager; import org.apache.maven.cli.CLIRequestUtils; import org.apache.maven.embedder.ConfigurationValidationResult; import org.apache.maven.embedder.DefaultConfiguration; import org.apache.maven.embedder.MavenEmbedder; import org.apache.maven.execution.MavenExecutionRequest; import org.apache.maven.execution.MavenExecutionResult; import org.junit.Test; public class MavenEmbedderTest { @Test public void executeUsedCLIManager() throws Exception{ ConfigurationValidationResult configurationValidationResult; File userFileSettingsXML = MavenEmbedder.DEFAULT_USER_SETTINGS_FILE; File baseDir = new File("/home/carlos/Temp/Prueba/"); CLIManager cliManager = new CLIManager(); String[] args = new String[] { "help:describe<https://cygno.com/exchange/cibarra/Inbox/Re:%20Help%20with%20the%20next%20post.EML/>", "-Dplugin=help", "-Dful" }; CommandLine commandLine = cliManager.parse(args); if(!baseDir.exists()) throw new Exception("The directory not exists"); System.out.println(baseDir.toString()); if(!MavenEmbedder.DEFAULT_USER_SETTINGS_FILE.exists()) throw new Exception("The file not exists"); System.out.println(userFileSettingsXML.toString()); DefaultConfiguration defaultConfiguration= (DefaultConfiguration) new DefaultConfiguration() .setUserSettingsFile(userFileSettingsXML) .setClassLoader(Thread.currentThread().getContextClassLoader()); configurationValidationResult = MavenEmbedder.validateConfiguration(defaultConfiguration); if(!configurationValidationResult.isValid())throw new Exception("The configuration file is wrong."); System.out.println("Create MavenExecutionRequest"); MavenExecutionRequest request = CLIRequestUtils.buildRequest(commandLine, true, true, true); request.setInteractiveMode(false); request.setShowErrors(true); request.setGlobalChecksumPolicy(MavenExecutionRequest.REACTOR_FAIL_NEVER); MavenEmbedder maven = new MavenEmbedder(defaultConfiguration); MavenExecutionResult result = maven.execute(request); List exceptions = result.getExceptions(); if (!((exceptions == null) || exceptions.isEmpty())) { System.out.println("Encountered " + exceptions.size() + " exception(s)."); Iterator it = exceptions.iterator(); while (it.hasNext()) { Exception exception = (Exception) it.next(); exception.printStackTrace(System.err); } } } } ========================================================================================== [DEBUG] Reading global settings from: null [DEBUG] Settings file is null. Returning null. [DEBUG] Reading user settings from: /home/carlos/.m2/settings.xml [DEBUG] Profile with id: 'profile-php-maven' has been explicitly activated. [DEBUG] Activated the following profiles for standalone super-pom: [Profile {id: profile-php-maven, source: settings.xml}] [DEBUG] Registering at plexus.core: org.apache.maven.artifact.handler.DefaultArtifactHandler (object realm: [EMAIL PROTECTED]), lookuprealm=plexus.core [INFO] Searching repository for plugin with prefix: 'help'. [DEBUG] Loading plugin prefixes from group: org.apache.maven.plugins [DEBUG] Checking repositories: [Repository[release-repo1.php-maven.org|http://repo1.php-maven.org/release], Repository[snapshot-repo1.php-maven.org|http://repo1.php-maven.org/snapshot], Repository[central|http://repo1.maven.org/maven2]] for plugin prefix metadata: org.apache.maven.plugins [DEBUG] Searching for: release-repo1.php-maven.org.maven-metadata-release-repo1.php-maven.org.xml.lastUpdated in touchfile. [DEBUG] Reading resolution-state from: /home/carlos/.m2/repository/org/apache/maven/plugins/resolver-status.properties [DEBUG] Searching for: central.maven-metadata-central.xml.lastUpdated in touchfile. [DEBUG] Reading resolution-state from: /home/carlos/.m2/repository/org/apache/maven/plugins/resolver-status.properties [DEBUG] Found plugin: Maven Clean Plugin with prefix: clean [DEBUG] Found plugin: Maven Compiler Plugin with prefix: compiler [DEBUG] Found plugin: Maven Surefire Plugin with prefix: surefire [DEBUG] Found plugin: Maven Eclipse Plugin with prefix: eclipse [DEBUG] Found plugin: Maven Site plugin with prefix: site [DEBUG] Found plugin: Maven PMD Plugin with prefix: pmd [DEBUG] Found plugin: Maven War Plugin with prefix: war [DEBUG] Found plugin: Maven Javadoc Plugin with prefix: javadoc [DEBUG] Found plugin: Maven Release plugin with prefix: release [DEBUG] Found plugin: Maven EJB Plugin with prefix: ejb [DEBUG] Found plugin: Maven Checkstyle Plugin with prefix: checkstyle [DEBUG] Found plugin: Maven Surefire Report Plugin with prefix: surefire-report [DEBUG] Found plugin: Maven JXR Plugin with prefix: jxr [DEBUG] Found plugin: Maven Source Plug-In with prefix: source [DEBUG] Found plugin: Maven Core Integration Test Plugin with prefix: core-it [DEBUG] Found plugin: Maven SCM Plugin with prefix: scm [DEBUG] Found plugin: Maven Jar Plugin with prefix: jar [DEBUG] Found plugin: Maven Help Plugin with prefix: help [DEBUG] Found plugin: Maven Resources Plugin with prefix: resources [DEBUG] Found plugin: Maven Archetype Plugin with prefix: archetype [DEBUG] Found plugin: Maven AntRun Plugin with prefix: antrun [DEBUG] Found plugin: Maven Assembly Plugin with prefix: assembly [DEBUG] Found plugin: Maven Dependency Plugin with prefix: dependency [DEBUG] Found plugin: Maven Project Info Reports Plugin with prefix: project-info-reports [DEBUG] Found plugin: Maven Deploy Plugin with prefix: deploy [DEBUG] Found plugin: Maven Clover Plugin with prefix: clover [DEBUG] Found plugin: Maven IDEA Plugin with prefix: idea [DEBUG] Found plugin: Maven Ear plugin with prefix: ear [DEBUG] Found plugin: Maven Remote Resources Plugin with prefix: remote-resources [DEBUG] Found plugin: maven-gpg-plugin Maven Mojo with prefix: gpg [DEBUG] Found plugin: Maven DOAP Plugin with prefix: doap [DEBUG] Found plugin: Maven PLUGIN Plugin with prefix: plugin [DEBUG] Found plugin: Maven Invoker Plugin with prefix: invoker [DEBUG] Found plugin: Maven Enforcer Plugin with prefix: enforcer [DEBUG] Found plugin: Maven Changelog Plug-in with prefix: changelog [DEBUG] Found plugin: Maven Documentation Checker Plugin with prefix: docck [DEBUG] Found plugin: Maven One Plugin with prefix: maven-one-plugin [DEBUG] Found plugin: Maven Continuum Plugin with prefix: continuum [DEBUG] Found plugin: Maven Changes Report Plugin with prefix: changes [DEBUG] Found plugin: maven-shade-plugin with prefix: shade [DEBUG] Found plugin: Maven Stage Plugin with prefix: stage [DEBUG] Found plugin: Maven Ant Plugin with prefix: ant [DEBUG] Found plugin: Maven Repository Plugin with prefix: repository [DEBUG] Found plugin: Maven Reactor Plugin with prefix: reactor [DEBUG] Found plugin: it0119 - Apache plugin with prefix: it0119 [DEBUG] Loading plugin prefixes from group: org.codehaus.mojo [DEBUG] Checking repositories: [Repository[release-repo1.php-maven.org|http://repo1.php-maven.org/release], Repository[snapshot-repo1.php-maven.org|http://repo1.php-maven.org/snapshot], Repository[central|http://repo1.maven.org/maven2]] for plugin prefix metadata: org.codehaus.mojo [DEBUG] Resolving plugin: org.apache.maven.plugins:maven-help-plugin with version: null [DEBUG] Resolving version for plugin: org.apache.maven.plugins:maven-help-plugin [DEBUG] Version from POM: null [DEBUG] Version from another POM in the reactor: null [INFO] Attempting to resolve a version for plugin: org.apache.maven.plugins:maven-help-plugin using meta-version: LATEST [DEBUG] Registering at plexus.core: org.apache.maven.artifact.handler.DefaultArtifactHandler (object realm: [EMAIL PROTECTED]), lookuprealm=plexus.core [DEBUG] Registering at plexus.core: org.apache.maven.artifact.transform.ReleaseArtifactTransformation (object realm: [EMAIL PROTECTED]), lookuprealm=plexus.core [DEBUG] Registering at plexus.core: org.apache.maven.artifact.transform.LatestArtifactTransformation (object realm: [EMAIL PROTECTED]), lookuprealm=plexus.core [DEBUG] Registering at plexus.core: org.apache.maven.artifact.transform.SnapshotTransformation (object realm: [EMAIL PROTECTED]), lookuprealm=plexus.core [DEBUG] Searching for: release-repo1.php-maven.org.maven-metadata-release-repo1.php-maven.org.xml.lastUpdated in touchfile. [DEBUG] Reading resolution-state from: /home/carlos/.m2/repository/org/apache/maven/plugins/maven-help-plugin/resolver-status.properties [DEBUG] Searching for: central.maven-metadata-central.xml.lastUpdated in touchfile. [DEBUG] Reading resolution-state from: /home/carlos/.m2/repository/org/apache/maven/plugins/maven-help-plugin/resolver-status.properties [DEBUG] maven-help-plugin: resolved to version 2.1 from repository central [DEBUG] Checking for external profiles in: /home/carlos/.m2/repository/org/apache/maven/plugins/maven-help-plugin/2.1/profiles.xml [DEBUG] Registering at plexus.core: org.apache.maven.artifact.handler.DefaultArtifactHandler (object realm: [EMAIL PROTECTED]), lookuprealm=plexus.core [DEBUG] Registering at plexus.core: org.apache.maven.profiles.activation.CustomActivator (object realm: [EMAIL PROTECTED]), lookuprealm=plexus.core [DEBUG] Registering at plexus.core: org.apache.maven.profiles.activation.AlwaysOnProfileActivator (object realm: [EMAIL PROTECTED]), lookuprealm=plexus.core [DEBUG] Registering at plexus.core: org.apache.maven.profiles.activation.SystemPropertyProfileActivator (object realm: [EMAIL PROTECTED]), lookuprealm=plexus.core [DEBUG] Registering at plexus.core: org.apache.maven.profiles.activation.JdkPrefixProfileActivator (object realm: [EMAIL PROTECTED]), lookuprealm=plexus.core [DEBUG] Registering at plexus.core: org.apache.maven.profiles.activation.FileProfileActivator (object realm: [EMAIL PROTECTED]), lookuprealm=plexus.core [DEBUG] Registering at plexus.core: org.apache.maven.profiles.activation.OperatingSystemProfileActivator (object realm: [EMAIL PROTECTED]), lookuprealm=plexus.core [DEBUG] Activated the following profiles for standalone super-pom: [] [DEBUG] Plugin: org.apache.maven.plugins:maven-help-plugin:maven-plugin:2.1 specifies a simple prerequisite Maven version of: 2.0.6. This version has been translated into the range: [2.0.6,] for plugin-version resolution purposes. [INFO] Using version: 2.1 of plugin: org.apache.maven.plugins:maven-help-plugin [DEBUG] Version from LATEST metadata: 2.1 [DEBUG] Resolved to version: 2.1 [DEBUG] In verifyVersionedPlugin for: org.apache.maven.plugins:maven-help-plugin [DEBUG] Attempting to build MavenProject instance for Artifact (org.apache.maven.plugins:maven-help-plugin:2.1) of type: maven-plugin; constructing POM artifact instead. [DEBUG] Checking for external profiles in: /home/carlos/.m2/repository/org/apache/maven/plugins/maven-help-plugin/2.1/profiles.xml [DEBUG] org.apache.maven.plugins:maven-help-plugin:maven-plugin:2.1:runtime (selected for runtime) [DEBUG] Using the following artifacts for classpath of: org.apache.maven.plugins:maven-help-plugin:maven-plugin:2.1: [org.apache.maven:maven-plugin-parameter-documenter:jar:2.0.6:runtime commons-cli:commons-cli:jar:1.0:runtime org.codehaus.plexus:plexus-utils:jar:1.5.6:runtime xpp3:xpp3_min:jar:1.1.4c:runtime org.apache.maven.wagon:wagon-ssh-external:jar:1.0-beta-2:runtime classworlds:classworlds:jar:1.1:runtime junit:junit:jar:3.8.1:runtime org.apache.maven:maven-model:jar:2.0.6:runtime org.apache.maven:maven-profile:jar:2.0.6:runtime com.thoughtworks.xstream:xstream:jar:1.3:runtime org.apache.maven:maven-artifact:jar:2.0.6:runtime commons-lang:commons-lang:jar:2.4:runtime org.apache.maven:maven-plugin-descriptor:jar:2.0.6:runtime org.apache.maven:maven-repository-metadata:jar:2.0.6:runtime com.jcraft:jsch:jar:0.1.27:runtime org.apache.maven:maven-monitor:jar:2.0.6:runtime org.apache.maven.wagon:wagon-http-lightweight:jar:1.0-beta-2:runtime org.codehaus.plexus:plexus-interactivity-api:jar:1.0-alpha-4:runtime org.apache.maven.wagon:wagon-ssh-common:jar:1.0-beta-2:runtime jtidy:jtidy:jar:4aug2000r7-dev:runtime org.apache.maven.doxia:doxia-sink-api:jar:1.0-alpha-7:runtime org.codehaus.plexus:plexus-container-default:jar:1.0-alpha-9:runtime org.apache.maven:maven-artifact-manager:jar:2.0.6:runtime xml-apis:xml-apis:jar:1.0.b2:runtime org.apache.maven.wagon:wagon-provider-api:jar:1.0-beta-2:runtime org.apache.maven.wagon:wagon-ssh:jar:1.0-beta-2:runtime org.apache.maven.wagon:wagon-http-shared:jar:1.0-beta-2:runtime org.apache.maven:maven-project:jar:2.0.6:runtime org.apache.maven.reporting:maven-reporting-api:jar:2.0.6:runtime jdom:jdom:jar:1.0:runtime org.apache.maven.plugin-tools:maven-plugin-tools-api:jar:2.4.3:runtime org.apache.maven:maven-settings:jar:2.0.6:runtime org.apache.maven:maven-core:jar:2.0.6:runtime org.apache.maven.wagon:wagon-file:jar:1.0-beta-2:runtime org.apache.maven:maven-error-diagnostics:jar:2.0.6:runtime org.apache.maven:maven-plugin-api:jar:2.0.6:runtime org.apache.maven:maven-plugin-registry:jar:2.0.6:runtime] [DEBUG] Got plugin artifacts: [DEBUG] Constructing build plan for Maven Default Project Id: org.apache.maven:super-pom:jar:3.0 task-segment: [help:describe] (aggregator-style) [INFO] ------------------------------------------------------------------------ [INFO] Building Maven Default Project [INFO] [INFO] Id: org.apache.maven:super-pom:jar:3.0 [INFO] task-segment: [help:describe] (aggregator-style) [INFO] ------------------------------------------------------------------------ [DEBUG] Resolving plugin: org.apache.maven.plugins:maven-help-plugin with version: 2.1 [DEBUG] In verifyVersionedPlugin for: org.apache.maven.plugins:maven-help-plugin [DEBUG] org.apache.maven.plugins:maven-help-plugin:maven-plugin:2.1:runtime (selected for runtime) [DEBUG] org.apache.maven:maven-artifact:jar:2.0.6:runtime (selected for runtime) [DEBUG] org.codehaus.plexus:plexus-utils:jar:1.4.1:runtime (selected for runtime) [DEBUG] org.apache.maven:maven-core:jar:2.0.6:runtime (selected for runtime) [DEBUG] org.apache.maven:maven-settings:jar:2.0.6:runtime (selected for runtime) [DEBUG] org.apache.maven:maven-model:jar:2.0.6:runtime (selected for runtime) [DEBUG] org.codehaus.plexus:plexus-container-default:jar:1.0-alpha-9-stable-1:runtime (selected for runtime) [DEBUG] org.codehaus.plexus:plexus-utils:jar:1.0.4:runtime (removed - nearer found: 1.4.1) [DEBUG] classworlds:classworlds:jar:1.1-alpha-2:runtime (selected for runtime) [DEBUG] junit:junit:jar:3.8.1:runtime (selected for runtime) [DEBUG] org.apache.maven.wagon:wagon-file:jar:1.0-beta-2:runtime (selected for runtime) [DEBUG] org.apache.maven.wagon:wagon-provider-api:jar:1.0-beta-2:runtime (selected for runtime) [DEBUG] org.codehaus.plexus:plexus-utils:jar:1.0.4:runtime (removed - nearer found: 1.4.1) [DEBUG] org.apache.maven:maven-plugin-parameter-documenter:jar:2.0.6:runtime (selected for runtime) [DEBUG] org.apache.maven.wagon:wagon-http-lightweight:jar:1.0-beta-2:runtime (selected for runtime) [DEBUG] org.apache.maven.wagon:wagon-http-shared:jar:1.0-beta-2:runtime (selected for runtime) [DEBUG] jtidy:jtidy:jar:4aug2000r7-dev:runtime (selected for runtime) [DEBUG] xml-apis:xml-apis:jar:1.0.b2:runtime (selected for runtime) [DEBUG] org.apache.maven.reporting:maven-reporting-api:jar:2.0.6:runtime (selected for runtime) [DEBUG] org.apache.maven.doxia:doxia-sink-api:jar:1.0-alpha-7:runtime (selected for runtime) [DEBUG] org.apache.maven:maven-profile:jar:2.0.6:runtime (selected for runtime) [DEBUG] org.apache.maven:maven-model:jar:2.0.6:runtime (selected for runtime) [DEBUG] org.apache.maven.wagon:wagon-provider-api:jar:1.0-beta-2:runtime (selected for runtime) [DEBUG] org.codehaus.plexus:plexus-utils:jar:1.0.4:runtime (removed - nearer found: 1.4.1) [DEBUG] org.codehaus.plexus:plexus-container-default:jar:1.0-alpha-9-stable-1:runtime (selected for runtime) [DEBUG] org.codehaus.plexus:plexus-utils:jar:1.0.4:runtime (removed - nearer found: 1.4.1) [DEBUG] classworlds:classworlds:jar:1.1-alpha-2:runtime (selected for runtime) [DEBUG] junit:junit:jar:3.8.1:runtime (selected for runtime) [DEBUG] org.apache.maven:maven-repository-metadata:jar:2.0.6:runtime (selected for runtime) [DEBUG] org.apache.maven:maven-error-diagnostics:jar:2.0.6:runtime (selected for runtime) [DEBUG] org.apache.maven:maven-project:jar:2.0.6:runtime (selected for runtime) [DEBUG] org.apache.maven:maven-artifact-manager:jar:2.0.6:runtime (selected for runtime) [DEBUG] org.apache.maven:maven-plugin-registry:jar:2.0.6:runtime (selected for runtime) [DEBUG] commons-cli:commons-cli:jar:1.0:runtime (selected for runtime) [DEBUG] org.apache.maven:maven-plugin-api:jar:2.0.6:runtime (selected for runtime) [DEBUG] org.apache.maven.wagon:wagon-ssh-external:jar:1.0-beta-2:runtime (selected for runtime) [DEBUG] org.codehaus.plexus:plexus-utils:jar:1.0.4:runtime (removed - nearer found: 1.4.1) [DEBUG] org.apache.maven.wagon:wagon-ssh-common:jar:1.0-beta-2:runtime (selected for runtime) [DEBUG] org.codehaus.plexus:plexus-utils:jar:1.0.4:runtime (removed - nearer found: 1.4.1) [DEBUG] org.codehaus.plexus:plexus-interactivity-api:jar:1.0-alpha-4:runtime (selected for runtime) [DEBUG] org.codehaus.plexus:plexus-container-default:jar:1.0-alpha-7:runtime (removed - nearer found: 1.0-alpha-9-stable-1) [DEBUG] plexus:plexus-utils:jar:1.0.2:runtime (selected for runtime) [DEBUG] org.apache.maven:maven-plugin-descriptor:jar:2.0.6:runtime (selected for runtime) [DEBUG] org.codehaus.plexus:plexus-interactivity-api:jar:1.0-alpha-4:runtime (selected for runtime) [DEBUG] org.apache.maven:maven-artifact-manager:jar:2.0.6:runtime (selected for runtime) [DEBUG] org.apache.maven:maven-monitor:jar:2.0.6:runtime (selected for runtime) [DEBUG] org.apache.maven.wagon:wagon-ssh:jar:1.0-beta-2:runtime (selected for runtime) [DEBUG] com.jcraft:jsch:jar:0.1.27:runtime (selected for runtime) [DEBUG] org.codehaus.plexus:plexus-utils:jar:1.0.4:runtime (removed - nearer found: 1.4.1) [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] org.apache.maven:maven-model:jar:2.0.6:runtime (selected for runtime) [DEBUG] org.apache.maven:maven-plugin-api:jar:2.0.6:runtime (selected for runtime) [DEBUG] org.apache.maven:maven-plugin-descriptor:jar:2.0.6:runtime (selected for runtime) [DEBUG] org.apache.maven:maven-project:jar:2.0.6:runtime (selected for runtime) [DEBUG] org.apache.maven:maven-plugin-registry:jar:2.0.6:runtime (selected for runtime) [DEBUG] org.apache.maven:maven-settings:jar:2.0.6:runtime (selected for runtime) [DEBUG] org.apache.maven:maven-profile:jar:2.0.6:runtime (selected for runtime) [DEBUG] org.apache.maven:maven-monitor:jar:2.0.6:runtime (selected for runtime) [DEBUG] org.apache.maven:maven-plugin-parameter-documenter:jar:2.0.6:runtime (selected for runtime) [DEBUG] org.apache.maven.plugin-tools:maven-plugin-tools-api:jar:2.4.3:runtime (selected for runtime) [DEBUG] org.codehaus.plexus:plexus-utils:jar:1.5.6:runtime (removed - nearer found: 1.4.1) [DEBUG] jtidy:jtidy:jar:4aug2000r7-dev:runtime (selected for runtime) [DEBUG] org.codehaus.plexus:plexus-container-default:jar:1.0-alpha-9-stable-1:runtime (removed - nearer found: 1.0-alpha-9) [DEBUG] org.codehaus.plexus:plexus-container-default:jar:1.0-alpha-9:runtime (selected for runtime) [DEBUG] org.codehaus.plexus:plexus-utils:jar:1.0.4:runtime (removed - nearer found: 1.4.1) [DEBUG] classworlds:classworlds:jar:1.1-alpha-2:runtime (removed - nearer found: 1.1) [DEBUG] junit:junit:jar:3.8.1:runtime (selected for runtime) [DEBUG] org.codehaus.plexus:plexus-interactivity-api:jar:1.0-alpha-4:runtime (selected for runtime) [DEBUG] org.codehaus.plexus:plexus-container-default:jar:1.0-alpha-7:runtime (removed - nearer found: 1.0-alpha-9) [DEBUG] classworlds:classworlds:jar:1.1-alpha-2:runtime (removed - nearer found: 1.1) [DEBUG] org.codehaus.plexus:plexus-utils:jar:1.4.1:runtime (removed - nearer found: 1.5.6) [DEBUG] org.codehaus.plexus:plexus-utils:jar:1.5.6:runtime (selected for runtime) [DEBUG] jdom:jdom:jar:1.0:runtime (selected for runtime) [DEBUG] com.thoughtworks.xstream:xstream:jar:1.3:runtime (selected for runtime) [DEBUG] xpp3:xpp3_min:jar:1.1.4c:runtime (selected for runtime) [DEBUG] commons-lang:commons-lang:jar:2.4:runtime (selected for runtime) [DEBUG] Using the following artifacts for classpath of: org.apache.maven.plugins:maven-help-plugin:maven-plugin:2.1: Our build plan is: 1. org.apache.maven.plugins:maven-help-plugin:2.1:describe [executionId: default, phase: None specified] for task-segment: Maven Default Project Id: org.apache.maven:super-pom:jar:3.0 task-segment: [help:describe] (aggregator-style) [DEBUG] Resolving plugin: org.apache.maven.plugins:maven-help-plugin with version: 2.1 [DEBUG] In verifyVersionedPlugin for: org.apache.maven.plugins:maven-help-plugin [DEBUG] org.apache.maven.plugins:maven-help-plugin:maven-plugin:2.1:runtime (selected for runtime) [DEBUG] org.apache.maven:maven-artifact:jar:2.0.6:runtime (selected for runtime) [DEBUG] org.codehaus.plexus:plexus-utils:jar:1.4.1:runtime (selected for runtime) [DEBUG] org.apache.maven:maven-core:jar:2.0.6:runtime (selected for runtime) [DEBUG] org.apache.maven:maven-settings:jar:2.0.6:runtime (selected for runtime) [DEBUG] org.apache.maven:maven-model:jar:2.0.6:runtime (selected for runtime) [DEBUG] org.codehaus.plexus:plexus-container-default:jar:1.0-alpha-9-stable-1:runtime (selected for runtime) [DEBUG] org.codehaus.plexus:plexus-utils:jar:1.0.4:runtime (removed - nearer found: 1.4.1) [DEBUG] classworlds:classworlds:jar:1.1-alpha-2:runtime (selected for runtime) [DEBUG] junit:junit:jar:3.8.1:runtime (selected for runtime) [DEBUG] org.apache.maven.wagon:wagon-file:jar:1.0-beta-2:runtime (selected for runtime) [DEBUG] org.apache.maven.wagon:wagon-provider-api:jar:1.0-beta-2:runtime (selected for runtime) [DEBUG] org.codehaus.plexus:plexus-utils:jar:1.0.4:runtime (removed - nearer found: 1.4.1) [DEBUG] org.apache.maven:maven-plugin-parameter-documenter:jar:2.0.6:runtime (selected for runtime) [DEBUG] org.apache.maven.wagon:wagon-http-lightweight:jar:1.0-beta-2:runtime (selected for runtime) [DEBUG] org.apache.maven.wagon:wagon-http-shared:jar:1.0-beta-2:runtime (selected for runtime) [DEBUG] jtidy:jtidy:jar:4aug2000r7-dev:runtime (selected for runtime) [DEBUG] xml-apis:xml-apis:jar:1.0.b2:runtime (selected for runtime) [DEBUG] org.apache.maven.reporting:maven-reporting-api:jar:2.0.6:runtime (selected for runtime) [DEBUG] org.apache.maven.doxia:doxia-sink-api:jar:1.0-alpha-7:runtime (selected for runtime) [DEBUG] org.apache.maven:maven-profile:jar:2.0.6:runtime (selected for runtime) [DEBUG] org.apache.maven:maven-model:jar:2.0.6:runtime (selected for runtime) [DEBUG] org.apache.maven.wagon:wagon-provider-api:jar:1.0-beta-2:runtime (selected for runtime) [DEBUG] org.codehaus.plexus:plexus-utils:jar:1.0.4:runtime (removed - nearer found: 1.4.1) [DEBUG] org.codehaus.plexus:plexus-container-default:jar:1.0-alpha-9-stable-1:runtime (selected for runtime) [DEBUG] org.codehaus.plexus:plexus-utils:jar:1.0.4:runtime (removed - nearer found: 1.4.1) [DEBUG] classworlds:classworlds:jar:1.1-alpha-2:runtime (selected for runtime) [DEBUG] junit:junit:jar:3.8.1:runtime (selected for runtime) [DEBUG] org.apache.maven:maven-repository-metadata:jar:2.0.6:runtime (selected for runtime) [DEBUG] org.apache.maven:maven-error-diagnostics:jar:2.0.6:runtime (selected for runtime) [DEBUG] org.apache.maven:maven-project:jar:2.0.6:runtime (selected for runtime) [DEBUG] org.apache.maven:maven-artifact-manager:jar:2.0.6:runtime (selected for runtime) [DEBUG] org.apache.maven:maven-plugin-registry:jar:2.0.6:runtime (selected for runtime) [DEBUG] commons-cli:commons-cli:jar:1.0:runtime (selected for runtime) [DEBUG] org.apache.maven:maven-plugin-api:jar:2.0.6:runtime (selected for runtime) [DEBUG] org.apache.maven.wagon:wagon-ssh-external:jar:1.0-beta-2:runtime (selected for runtime) [DEBUG] org.codehaus.plexus:plexus-utils:jar:1.0.4:runtime (removed - nearer found: 1.4.1) [DEBUG] org.apache.maven.wagon:wagon-ssh-common:jar:1.0-beta-2:runtime (selected for runtime) [DEBUG] org.codehaus.plexus:plexus-utils:jar:1.0.4:runtime (removed - nearer found: 1.4.1) [DEBUG] org.codehaus.plexus:plexus-interactivity-api:jar:1.0-alpha-4:runtime (selected for runtime) [DEBUG] org.codehaus.plexus:plexus-container-default:jar:1.0-alpha-7:runtime (removed - nearer found: 1.0-alpha-9-stable-1) [DEBUG] plexus:plexus-utils:jar:1.0.2:runtime (selected for runtime) [DEBUG] org.apache.maven:maven-plugin-descriptor:jar:2.0.6:runtime (selected for runtime) [DEBUG] org.codehaus.plexus:plexus-interactivity-api:jar:1.0-alpha-4:runtime (selected for runtime) [DEBUG] org.apache.maven:maven-artifact-manager:jar:2.0.6:runtime (selected for runtime) [DEBUG] org.apache.maven:maven-monitor:jar:2.0.6:runtime (selected for runtime) [DEBUG] org.apache.maven.wagon:wagon-ssh:jar:1.0-beta-2:runtime (selected for runtime) [DEBUG] com.jcraft:jsch:jar:0.1.27:runtime (selected for runtime) [DEBUG] org.codehaus.plexus:plexus-utils:jar:1.0.4:runtime (removed - nearer found: 1.4.1) [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] org.apache.maven:maven-model:jar:2.0.6:runtime (selected for runtime) [DEBUG] org.apache.maven:maven-plugin-api:jar:2.0.6:runtime (selected for runtime) [DEBUG] org.apache.maven:maven-plugin-descriptor:jar:2.0.6:runtime (selected for runtime) [DEBUG] org.apache.maven:maven-project:jar:2.0.6:runtime (selected for runtime) [DEBUG] org.apache.maven:maven-plugin-registry:jar:2.0.6:runtime (selected for runtime) [DEBUG] org.apache.maven:maven-settings:jar:2.0.6:runtime (selected for runtime) [DEBUG] org.apache.maven:maven-profile:jar:2.0.6:runtime (selected for runtime) [DEBUG] org.apache.maven:maven-monitor:jar:2.0.6:runtime (selected for runtime) [DEBUG] org.apache.maven:maven-plugin-parameter-documenter:jar:2.0.6:runtime (selected for runtime) [DEBUG] org.apache.maven.plugin-tools:maven-plugin-tools-api:jar:2.4.3:runtime (selected for runtime) [DEBUG] org.codehaus.plexus:plexus-utils:jar:1.5.6:runtime (removed - nearer found: 1.4.1) [DEBUG] jtidy:jtidy:jar:4aug2000r7-dev:runtime (selected for runtime) [DEBUG] org.codehaus.plexus:plexus-container-default:jar:1.0-alpha-9-stable-1:runtime (removed - nearer found: 1.0-alpha-9) [DEBUG] org.codehaus.plexus:plexus-container-default:jar:1.0-alpha-9:runtime (selected for runtime) [DEBUG] org.codehaus.plexus:plexus-utils:jar:1.0.4:runtime (removed - nearer found: 1.4.1) [DEBUG] classworlds:classworlds:jar:1.1-alpha-2:runtime (removed - nearer found: 1.1) [DEBUG] junit:junit:jar:3.8.1:runtime (selected for runtime) [DEBUG] org.codehaus.plexus:plexus-interactivity-api:jar:1.0-alpha-4:runtime (selected for runtime) [DEBUG] org.codehaus.plexus:plexus-container-default:jar:1.0-alpha-7:runtime (removed - nearer found: 1.0-alpha-9) [DEBUG] classworlds:classworlds:jar:1.1-alpha-2:runtime (removed - nearer found: 1.1) [DEBUG] org.codehaus.plexus:plexus-utils:jar:1.4.1:runtime (removed - nearer found: 1.5.6) [DEBUG] org.codehaus.plexus:plexus-utils:jar:1.5.6:runtime (selected for runtime) [DEBUG] jdom:jdom:jar:1.0:runtime (selected for runtime) [DEBUG] com.thoughtworks.xstream:xstream:jar:1.3:runtime (selected for runtime) [DEBUG] xpp3:xpp3_min:jar:1.1.4c:runtime (selected for runtime) [DEBUG] commons-lang:commons-lang:jar:2.4:runtime (selected for runtime) [DEBUG] Using the following artifacts for classpath of: org.apache.maven.plugins:maven-help-plugin:maven-plugin:2.1: for plugin: /plugins/org.apache.maven.plugins:maven-help-plugin:[EMAIL PROTECTED] /thread:main [DEBUG] Looking up mojo org.apache.maven.plugins:maven-help-plugin:2.1:describe in realm /plugins/org.apache.maven.plugins:maven-help-plugin:[EMAIL PROTECTED]/thread:main - descRealmId=/plugins/org.apache.maven.plugins:maven-help-plugin:[EMAIL PROTECTED] /thread:main [DEBUG] Looked up - [EMAIL PROTECTED] - ClassRealm[/plugins/org.apache.maven.plugins:maven-help-plugin:[EMAIL PROTECTED]/thread:main, parent: ClassRealm[plexus.core, parent: null]] [DEBUG] Registering at plexus.core: org.codehaus.plexus.component.configurator.converters.lookup.DefaultConverterLookup (object realm: [EMAIL PROTECTED]), lookuprealm=/plugins/org.apache.maven.plugins:maven-help-plugin:[EMAIL PROTECTED] /thread:main [DEBUG] Registering at plexus.core: org.codehaus.plexus.component.configurator.BasicComponentConfigurator (object realm: [EMAIL PROTECTED]), lookuprealm=/plugins/org.apache.maven.plugins:maven-help-plugin:[EMAIL PROTECTED] /thread:main [DEBUG] Configuring mojo 'org.apache.maven.plugins:maven-help-plugin:2.1:describe' with basic configurator --> [DEBUG] (f) detail = false [DEBUG] (f) localRepository = Repository[local|file:///home/carlos/.m2/repository] [DEBUG] (f) medium = true [DEBUG] (f) minimal = false [DEBUG] (f) plugin = Component Descriptor: role: 'null', implementation: 'org.apache.maven.plugins.help.EvaluateMojo', role hint: 'default' role: 'null', implementation: 'org.apache.maven.plugins.help.AllProfilesMojo', role hint: 'default' role: 'null', implementation: 'org.apache.maven.plugins.help.EffectivePomMojo', role hint: 'default' role: 'null', implementation: 'org.apache.maven.plugins.help.HelpMojo', role hint: 'default' role: 'null', implementation: 'org.apache.maven.plugins.help.ExpressionsMojo', role hint: 'default' role: 'null', implementation: 'org.apache.maven.plugins.help.EffectiveSettingsMojo', role hint: 'default' role: 'null', implementation: 'org.apache.maven.plugins.help.ActiveProfilesMojo', role hint: 'default' role: 'null', implementation: 'org.apache.maven.plugins.help.DescribeMojo', role hint: 'default' role: 'null', implementation: 'org.apache.maven.plugins.help.SystemMojo', role hint: 'default' --- Encountered 1 exception(s). org.apache.maven.lifecycle.LifecycleExecutionException: org.codehaus.plexus.component.configurator.ComponentConfigurationException: Cannot assign value 'Component Descriptor: role: 'null', implementation: 'org.apache.maven.plugins.help.EvaluateMojo', role hint: 'default' role: 'null', implementation: 'org.apache.maven.plugins.help.AllProfilesMojo', role hint: 'default' role: 'null', implementation: 'org.apache.maven.plugins.help.EffectivePomMojo', role hint: 'default' role: 'null', implementation: 'org.apache.maven.plugins.help.HelpMojo', role hint: 'default' role: 'null', implementation: 'org.apache.maven.plugins.help.ExpressionsMojo', role hint: 'default' role: 'null', implementation: 'org.apache.maven.plugins.help.EffectiveSettingsMojo', role hint: 'default' role: 'null', implementation: 'org.apache.maven.plugins.help.ActiveProfilesMojo', role hint: 'default' role: 'null', implementation: 'org.apache.maven.plugins.help.DescribeMojo', role hint: 'default' role: 'null', implementation: 'org.apache.maven.plugins.help.SystemMojo', role hint: 'default' ---' (type: class org.apache.maven.plugin.descriptor.PluginDescriptor) to private java.lang.String org.apache.maven.plugins.help.DescribeMojo.plugin at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoalAndHandleFailures(DefaultLifecycleExecutor.java:557) at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeTaskSegmentForProject(DefaultLifecycleExecutor.java:288) at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeTaskSegments(DefaultLifecycleExecutor.java:203) at org.apache.maven.lifecycle.DefaultLifecycleExecutor.execute(DefaultLifecycleExecutor.java:172) at org.apache.maven.DefaultMaven.execute(DefaultMaven.java:208) at org.apache.maven.embedder.MavenEmbedder.execute(MavenEmbedder.java:852) at com.cygno.bridgemaven.MavenEmbedderTest.executeUsedCLIManager(MavenEmbedderTest.java:102) 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.junit.internal.runners.TestMethod.invoke(TestMethod.java:59) at org.junit.internal.runners.MethodRoadie.runTestMethod(MethodRoadie.java:98) at org.junit.internal.runners.MethodRoadie$2.run(MethodRoadie.java:79) at org.junit.internal.runners.MethodRoadie.runBeforesThenTestThenAfters(MethodRoadie.java:87) at org.junit.internal.runners.MethodRoadie.runTest(MethodRoadie.java:77) at org.junit.internal.runners.MethodRoadie.run(MethodRoadie.java:42) at org.junit.internal.runners.JUnit4ClassRunner.invokeTestMethod(JUnit4ClassRunner.java:88) at org.junit.internal.runners.JUnit4ClassRunner.runMethods(JUnit4ClassRunner.java:51) at org.junit.internal.runners.JUnit4ClassRunner$1.run(JUnit4ClassRunner.java:44) at org.junit.internal.runners.ClassRoadie.runUnprotected(ClassRoadie.java:27) at org.junit.internal.runners.ClassRoadie.runProtected(ClassRoadie.java:37) at org.junit.internal.runners.JUnit4ClassRunner.run(JUnit4ClassRunner.java:42) at org.eclipse.jdt.internal.junit4.runner.JUnit4TestReference.run(JUnit4TestReference.java:45) at org.eclipse.jdt.internal.junit.runner.TestExecution.run(TestExecution.java:38) at org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.runTests(RemoteTestRunner.java:460) at org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.runTests(RemoteTestRunner.java:673) at org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.run(RemoteTestRunner.java:386) at org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.main(RemoteTestRunner.java:196) Caused by: org.apache.maven.plugin.PluginConfigurationException: org.codehaus.plexus.component.configurator.ComponentConfigurationException: Cannot assign value 'Component Descriptor: role: 'null', implementation: 'org.apache.maven.plugins.help.EvaluateMojo', role hint: 'default' role: 'null', implementation: 'org.apache.maven.plugins.help.AllProfilesMojo', role hint: 'default' role: 'null', implementation: 'org.apache.maven.plugins.help.EffectivePomMojo', role hint: 'default' role: 'null', implementation: 'org.apache.maven.plugins.help.HelpMojo', role hint: 'default' role: 'null', implementation: 'org.apache.maven.plugins.help.ExpressionsMojo', role hint: 'default' role: 'null', implementation: 'org.apache.maven.plugins.help.EffectiveSettingsMojo', role hint: 'default' role: 'null', implementation: 'org.apache.maven.plugins.help.ActiveProfilesMojo', role hint: 'default' role: 'null', implementation: 'org.apache.maven.plugins.help.DescribeMojo', role hint: 'default' role: 'null', implementation: 'org.apache.maven.plugins.help.SystemMojo', role hint: 'default' ---' (type: class org.apache.maven.plugin.descriptor.PluginDescriptor) to private java.lang.String org.apache.maven.plugins.help.DescribeMojo.plugin at org.apache.maven.plugin.DefaultPluginManager.populatePluginFields(DefaultPluginManager.java:1367) at org.apache.maven.plugin.DefaultPluginManager.getConfiguredMojo(DefaultPluginManager.java:899) at org.apache.maven.plugin.DefaultPluginManager.executeMojo(DefaultPluginManager.java:608) at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoalAndHandleFailures(DefaultLifecycleExecutor.java:521) ... 28 more Caused by: org.codehaus.plexus.component.configurator.ComponentConfigurationException: Cannot assign value 'Component Descriptor: role: 'null', implementation: 'org.apache.maven.plugins.help.EvaluateMojo', role hint: 'default' role: 'null', implementation: 'org.apache.maven.plugins.help.AllProfilesMojo', role hint: 'default' role: 'null', implementation: 'org.apache.maven.plugins.help.EffectivePomMojo', role hint: 'default' role: 'null', implementation: 'org.apache.maven.plugins.help.HelpMojo', role hint: 'default' role: 'null', implementation: 'org.apache.maven.plugins.help.ExpressionsMojo', role hint: 'default' role: 'null', implementation: 'org.apache.maven.plugins.help.EffectiveSettingsMojo', role hint: 'default' role: 'null', implementation: 'org.apache.maven.plugins.help.ActiveProfilesMojo', role hint: 'default' role: 'null', implementation: 'org.apache.maven.plugins.help.DescribeMojo', role hint: 'default' role: 'null', implementation: 'org.apache.maven.plugins.help.SystemMojo', role hint: 'default' ---' (type: class org.apache.maven.plugin.descriptor.PluginDescriptor) to private java.lang.String org.apache.maven.plugins.help.DescribeMojo.plugin at org.codehaus.plexus.component.configurator.converters.ComponentValueSetter.setValueUsingField(ComponentValueSetter.java:169) at org.codehaus.plexus.component.configurator.converters.ComponentValueSetter.configure(ComponentValueSetter.java:266) at org.codehaus.plexus.component.configurator.converters.composite.ObjectWithFieldsConverter.processConfiguration(ObjectWithFieldsConverter.java:140) at org.codehaus.plexus.component.configurator.BasicComponentConfigurator.configureComponent(BasicComponentConfigurator.java:58) at org.apache.maven.plugin.DefaultPluginManager.populatePluginFields(DefaultPluginManager.java:1361) ... 31 more Caused by: java.lang.IllegalArgumentException: Can not set java.lang.String field org.apache.maven.plugins.help.DescribeMojo.plugin to org.apache.maven.plugin.descriptor.PluginDescriptor at sun.reflect.UnsafeFieldAccessorImpl.throwSetIllegalArgumentException(UnsafeFieldAccessorImpl.java:146) at sun.reflect.UnsafeFieldAccessorImpl.throwSetIllegalArgumentException(UnsafeFieldAccessorImpl.java:150) at sun.reflect.UnsafeObjectFieldAccessorImpl.set(UnsafeObjectFieldAccessorImpl.java:63) at java.lang.reflect.Field.set(Field.java:657) at org.codehaus.plexus.component.configurator.converters.ComponentValueSetter.setValueUsingField(ComponentValueSetter.java:156) ... 35 more