java.lang.RuntimeException: org.apache.maven.lifecycle.LifecycleExecutionException: Error configuring: org.codehaus.mojo:build-helper-maven-plugin. Reason: Unable to parse the created DOM for plugin configuration

YouTrack | 5 years ago
tip
Do you know that we can give you better hits? Get more relevant results from Samebug’s stack trace search.
  1. 0

    Adding resources with build-helper-maven-plugin does not work

    YouTrack | 5 years ago
    java.lang.RuntimeException: org.apache.maven.lifecycle.LifecycleExecutionException: Error configuring: org.codehaus.mojo:build-helper-maven-plugin. Reason: Unable to parse the created DOM for plugin configuration

    Root Cause Analysis

    1. java.lang.RuntimeException

      org.codehaus.plexus.component.configurator.ComponentConfigurationException: Cannot assign configuration entry 'resource' to 'class org.apache.maven.model.Resource' from 'C:\Users\ivo.smid\IdeaProjects\CSOB_Active_Transaction\trunk\dao/src/agf/resources', which is of type class java.lang.String

      at org.codehaus.plexus.component.configurator.converters.AbstractConfigurationConverter.fromExpression()
    2. Plexus
      BasicComponentConfigurator.configureComponent
      1. org.codehaus.plexus.component.configurator.converters.AbstractConfigurationConverter.fromExpression(AbstractConfigurationConverter.java:149)
      2. org.codehaus.plexus.component.configurator.converters.composite.ObjectWithFieldsConverter.fromConfiguration(ObjectWithFieldsConverter.java:80)
      3. org.codehaus.plexus.component.configurator.converters.composite.ArrayConverter.fromConfiguration(ArrayConverter.java:135)
      4. org.codehaus.plexus.component.configurator.converters.ComponentValueSetter.configure(ComponentValueSetter.java:247)
      5. org.codehaus.plexus.component.configurator.converters.composite.ObjectWithFieldsConverter.processConfiguration(ObjectWithFieldsConverter.java:137)
      6. org.codehaus.plexus.component.configurator.BasicComponentConfigurator.configureComponent(BasicComponentConfigurator.java:56)
      6 frames
    3. Maven Plugin
      DefaultPluginManager.executeMojo
      1. org.apache.maven.plugin.DefaultPluginManager.populatePluginFields(DefaultPluginManager.java:1357)
      2. org.apache.maven.plugin.DefaultPluginManager.getConfiguredMojo(DefaultPluginManager.java:724)
      3. org.apache.maven.plugin.DefaultPluginManager.executeMojo(DefaultPluginManager.java:468)
      3 frames
    4. Maven Core
      DefaultMaven.doExecute
      1. org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoals(DefaultLifecycleExecutor.java:694)
      2. org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoalWithLifecycle(DefaultLifecycleExecutor.java:556)
      3. org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoal(DefaultLifecycleExecutor.java:535)
      4. org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoalAndHandleFailures(DefaultLifecycleExecutor.java:387)
      5. org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeTaskSegments(DefaultLifecycleExecutor.java:348)
      6. org.apache.maven.lifecycle.DefaultLifecycleExecutor.execute(DefaultLifecycleExecutor.java:180)
      7. org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java:328)
      7 frames
    5. Java RT
      Method.invoke
      1. sun.reflect.GeneratedMethodAccessor185.invoke(Unknown Source)
      2. sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
      3. java.lang.reflect.Method.invoke(Method.java:597)
      3 frames
    6. org.jetbrains.maven
      MavenEmbedder.execute
      1. org.jetbrains.maven.embedder.MavenEmbedder.execute(MavenEmbedder.java:298)
      1 frame
    7. org.jetbrains.idea
      Maven2ServerEmbedderImpl$6.run
      1. org.jetbrains.idea.maven.server.embedder.Maven2ServerEmbedderImpl$5.execute(Maven2ServerEmbedderImpl.java:336)
      2. org.jetbrains.idea.maven.server.embedder.Maven2ServerEmbedderImpl$5.execute(Maven2ServerEmbedderImpl.java:334)
      3. org.jetbrains.idea.maven.server.embedder.Maven2ServerEmbedderImpl$6.run(Maven2ServerEmbedderImpl.java:521)
      3 frames
    8. Java RT
      Thread.run
      1. java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:441)
      2. java.util.concurrent.FutureTask$Sync.innerRun(FutureTask.java:303)
      3. java.util.concurrent.FutureTask.run(FutureTask.java:138)
      4. java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:886)
      5. java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:908)
      6. java.lang.Thread.run(Thread.java:662)
      6 frames