java.lang.RuntimeException: org.apache.maven.plugin.MojoExecutionException: Unable to execute mojo

Atlassian JIRA | Benoit Goyette | 7 years ago
  1. 0

    [JRA-21449] Unable to deploy with atlas-cli - Atlassian JIRA

    atlassian.com | 11 months ago
    java.lang.RuntimeException: org.apache.maven.plugin.MojoExecutionException: Unable to execute mojo
  2. 0

    When I deploy my plugin with atlas-cli, I get an exception java.lang.RuntimeException: org.apache.maven.plugin.MojoExecutionException: Unable to execute mojo This error occurs when I call "pi" and "deploy". When I call "pi" this error occurs on the last step (which I guess is the deploy) When I created my project, everything was working fine until I killed atlas-run. after that, whenever I try to compile the application I got this error. I've read the issues: http://jira.atlassian.com/browse/JRA-19593 http://confluence.atlassian.com/display/DEVNET/atlas-cli http://confluence.atlassian.com/display/DEVNET/If+you+change+pom.xml%2C+you+may+need+to+restart+the+atlas-cli https://studio.atlassian.com/browse/AMPS-101 and this doesn't seem to be related. Here's the stack trace. maven2> deploy [INFO] Executing: org.apache.maven.plugins:maven-deploy-plugin [deploy] Downloading: https://m2proxy.atlassian.com/repository/public/org/apache/maven/plugins/maven-deploy-plugin/2.4/maven-deploy-plugin-2.4.pom 6K downloaded (maven-deploy-plugin-2.4.pom) Downloading: https://m2proxy.atlassian.com/repository/public/org/apache/maven/plugins/maven-plugins/11/maven-plugins-11.pom 10K downloaded (maven-plugins-11.pom) Downloading: https://m2proxy.atlassian.com/repository/public/org/apache/maven/plugins/maven-deploy-plugin/2.4/maven-deploy-plugin-2.4.jar 33K downloaded (maven-deploy-plugin-2.4.jar) [ERROR] Unable to complete running command: deploy java.lang.RuntimeException: org.apache.maven.plugin.MojoExecutionException: Unable to execute mojo at org.twdata.maven.cli.commands.ExecuteGoalCommand.run(ExecuteGoalCommand.java:111) at org.twdata.maven.cli.CliShell.interpretCommand(CliShell.java:42) at org.twdata.maven.cli.CliShell.run(CliShell.java:27) at org.twdata.maven.cli.AbstractCliMojo.displayShell(AbstractCliMojo.java:144) at org.twdata.maven.cli.AbstractCliMojo.access$000(AbstractCliMojo.java:22) at org.twdata.maven.cli.AbstractCliMojo$1.run(AbstractCliMojo.java:116) Caused by: org.apache.maven.plugin.MojoExecutionException: Unable to execute mojo at org.shaded.mojoexecutor.MojoExecutor.executeMojo(MojoExecutor.java:100) at org.twdata.maven.cli.MojoCall.run(MojoCall.java:31) at org.twdata.maven.cli.commands.ExecuteGoalCommand.runMojo(ExecuteGoalCommand.java:125) at org.twdata.maven.cli.commands.ExecuteGoalCommand.run(ExecuteGoalCommand.java:104) ... 5 more Caused by: org.apache.maven.plugin.PluginConfigurationException: Error configuring: org.apache.maven.plugins:maven-deploy-plugin. Reason: Unable to parse the created DOM for plugin configuration at org.apache.maven.plugin.DefaultPluginManager.populatePluginFields(DefaultPluginManager.java:1356) at org.apache.maven.plugin.DefaultPluginManager.getConfiguredMojo(DefaultPluginManager.java:717) at org.apache.maven.plugin.DefaultPluginManager.executeMojo(DefaultPluginManager.java:461) at org.shaded.mojoexecutor.MojoExecutor.executeMojo(MojoExecutor.java:98) ... 8 more Caused by: org.codehaus.plexus.component.configurator.ComponentConfigurationException: Class 'org.apache.maven.artifact.repository.ArtifactRepository' 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:1350) ... 11 more Caused by: java.lang.InstantiationException: org.apache.maven.artifact.repository.ArtifactRepository at java.lang.Class.newInstance0(Class.java:340) at java.lang.Class.newInstance(Class.java:308) at org.codehaus.plexus.component.configurator.converters.AbstractConfigurationConverter.instantiateObject(AbstractConfigurationConverter.java:111) ... 16 more regards.

    Atlassian JIRA | 7 years ago | Benoit Goyette
    java.lang.RuntimeException: org.apache.maven.plugin.MojoExecutionException: Unable to execute mojo
  3. 0

    When I deploy my plugin with atlas-cli, I get an exception java.lang.RuntimeException: org.apache.maven.plugin.MojoExecutionException: Unable to execute mojo This error occurs when I call "pi" and "deploy". When I call "pi" this error occurs on the last step (which I guess is the deploy) When I created my project, everything was working fine until I killed atlas-run. after that, whenever I try to compile the application I got this error. I've read the issues: http://jira.atlassian.com/browse/JRA-19593 http://confluence.atlassian.com/display/DEVNET/atlas-cli http://confluence.atlassian.com/display/DEVNET/If+you+change+pom.xml%2C+you+may+need+to+restart+the+atlas-cli https://studio.atlassian.com/browse/AMPS-101 and this doesn't seem to be related. Here's the stack trace. maven2> deploy [INFO] Executing: org.apache.maven.plugins:maven-deploy-plugin [deploy] Downloading: https://m2proxy.atlassian.com/repository/public/org/apache/maven/plugins/maven-deploy-plugin/2.4/maven-deploy-plugin-2.4.pom 6K downloaded (maven-deploy-plugin-2.4.pom) Downloading: https://m2proxy.atlassian.com/repository/public/org/apache/maven/plugins/maven-plugins/11/maven-plugins-11.pom 10K downloaded (maven-plugins-11.pom) Downloading: https://m2proxy.atlassian.com/repository/public/org/apache/maven/plugins/maven-deploy-plugin/2.4/maven-deploy-plugin-2.4.jar 33K downloaded (maven-deploy-plugin-2.4.jar) [ERROR] Unable to complete running command: deploy java.lang.RuntimeException: org.apache.maven.plugin.MojoExecutionException: Unable to execute mojo at org.twdata.maven.cli.commands.ExecuteGoalCommand.run(ExecuteGoalCommand.java:111) at org.twdata.maven.cli.CliShell.interpretCommand(CliShell.java:42) at org.twdata.maven.cli.CliShell.run(CliShell.java:27) at org.twdata.maven.cli.AbstractCliMojo.displayShell(AbstractCliMojo.java:144) at org.twdata.maven.cli.AbstractCliMojo.access$000(AbstractCliMojo.java:22) at org.twdata.maven.cli.AbstractCliMojo$1.run(AbstractCliMojo.java:116) Caused by: org.apache.maven.plugin.MojoExecutionException: Unable to execute mojo at org.shaded.mojoexecutor.MojoExecutor.executeMojo(MojoExecutor.java:100) at org.twdata.maven.cli.MojoCall.run(MojoCall.java:31) at org.twdata.maven.cli.commands.ExecuteGoalCommand.runMojo(ExecuteGoalCommand.java:125) at org.twdata.maven.cli.commands.ExecuteGoalCommand.run(ExecuteGoalCommand.java:104) ... 5 more Caused by: org.apache.maven.plugin.PluginConfigurationException: Error configuring: org.apache.maven.plugins:maven-deploy-plugin. Reason: Unable to parse the created DOM for plugin configuration at org.apache.maven.plugin.DefaultPluginManager.populatePluginFields(DefaultPluginManager.java:1356) at org.apache.maven.plugin.DefaultPluginManager.getConfiguredMojo(DefaultPluginManager.java:717) at org.apache.maven.plugin.DefaultPluginManager.executeMojo(DefaultPluginManager.java:461) at org.shaded.mojoexecutor.MojoExecutor.executeMojo(MojoExecutor.java:98) ... 8 more Caused by: org.codehaus.plexus.component.configurator.ComponentConfigurationException: Class 'org.apache.maven.artifact.repository.ArtifactRepository' 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:1350) ... 11 more Caused by: java.lang.InstantiationException: org.apache.maven.artifact.repository.ArtifactRepository at java.lang.Class.newInstance0(Class.java:340) at java.lang.Class.newInstance(Class.java:308) at org.codehaus.plexus.component.configurator.converters.AbstractConfigurationConverter.instantiateObject(AbstractConfigurationConverter.java:111) ... 16 more regards.

    Atlassian JIRA | 7 years ago | Benoit Goyette
    java.lang.RuntimeException: org.apache.maven.plugin.MojoExecutionException: Unable to execute mojo
  4. Speed up your debug routine!

    Automated exception search integrated into your IDE

  5. 0

    Error on execute

    GitHub | 3 years ago | dtelaroli
    org.apache.maven.lifecycle.LifecycleExecutionException: Error configuring: org.eluder.coveralls:coveralls-maven-plugin. Reason: Unable to parse the created DOM for plugin configuration
  6. 0

    "InstantiationException: java.util.List" with Maven 2

    GitHub | 2 years ago | ebourg
    org.apache.maven.lifecycle.LifecycleExecutionException: Error configuring: com.github.ferstl:depgraph-maven-plugin. Reason: Unable to p arse the created DOM for plugin configuration

  1. tzrlk 1 times, last 3 weeks ago
  2. lribeiro 2 times, last 3 months ago
  3. brunosatriani 40 times, last 5 months ago
  4. Diogo Jaym 2 times, last 5 months ago
  5. Ranjana Dangol 12 times, last 5 months ago
7 more registered users
44 unregistered visitors
Not finding the right solution?
Take a tour to get the most out of Samebug.

Tired of useless tips?

Automated exception search integrated into your IDE

Root Cause Analysis

  1. java.lang.InstantiationException

    org.apache.maven.artifact.repository.ArtifactRepository

    at java.lang.Class.newInstance0()
  2. Java RT
    Class.newInstance
    1. java.lang.Class.newInstance0(Class.java:340)
    2. java.lang.Class.newInstance(Class.java:308)
    2 frames
  3. Plexus
    BasicComponentConfigurator.configureComponent
    1. org.codehaus.plexus.component.configurator.converters.AbstractConfigurationConverter.instantiateObject(AbstractConfigurationConverter.java:111)
    2. org.codehaus.plexus.component.configurator.converters.composite.ObjectWithFieldsConverter.fromConfiguration(ObjectWithFieldsConverter.java:88)
    3. org.codehaus.plexus.component.configurator.converters.ComponentValueSetter.configure(ComponentValueSetter.java:247)
    4. org.codehaus.plexus.component.configurator.converters.composite.ObjectWithFieldsConverter.processConfiguration(ObjectWithFieldsConverter.java:137)
    5. org.codehaus.plexus.component.configurator.BasicComponentConfigurator.configureComponent(BasicComponentConfigurator.java:56)
    5 frames
  4. Maven Plugin
    DefaultPluginManager.executeMojo
    1. org.apache.maven.plugin.DefaultPluginManager.populatePluginFields(DefaultPluginManager.java:1350)
    2. org.apache.maven.plugin.DefaultPluginManager.getConfiguredMojo(DefaultPluginManager.java:717)
    3. org.apache.maven.plugin.DefaultPluginManager.executeMojo(DefaultPluginManager.java:461)
    3 frames
  5. org.shaded.mojoexecutor
    MojoExecutor.executeMojo
    1. org.shaded.mojoexecutor.MojoExecutor.executeMojo(MojoExecutor.java:98)
    1 frame
  6. org.twdata.maven
    AbstractCliMojo$1.run
    1. org.twdata.maven.cli.MojoCall.run(MojoCall.java:31)
    2. org.twdata.maven.cli.commands.ExecuteGoalCommand.runMojo(ExecuteGoalCommand.java:125)
    3. org.twdata.maven.cli.commands.ExecuteGoalCommand.run(ExecuteGoalCommand.java:104)
    4. org.twdata.maven.cli.CliShell.interpretCommand(CliShell.java:42)
    5. org.twdata.maven.cli.CliShell.run(CliShell.java:27)
    6. org.twdata.maven.cli.AbstractCliMojo.displayShell(AbstractCliMojo.java:144)
    7. org.twdata.maven.cli.AbstractCliMojo.access$000(AbstractCliMojo.java:22)
    8. org.twdata.maven.cli.AbstractCliMojo$1.run(AbstractCliMojo.java:116)
    8 frames