org.apache.maven.lifecycle.LifecycleExecutionException: Failed to execute goal com.atlassian.maven.plugins:maven-jira-plugin:3.4-SNAPSHOT:copy-bundled-dependencies (default-copy-bundled-dependencies) on project caris-jira-blockinglinks-plugin: Unable to execute mojo

Atlassian JIRA | Tim Astle | 6 years ago
  1. 0

    When we updated our in-house continuous integration system to use Maven 3 instead of Maven 2, we discovered that one of the plugins was not written in a way that would allow it to function in a Maven 3 environment. Below is the debug output of the build failure. I'd very much appreciate it if this could be remedied. There is really no reason that we've seen that would require us to support both Maven 2 (or the 'JIRA SDK') and Maven 3 in our system. Our system builds many different Maven applications and plugins and this is the only plugin that we are blocked on. :( Is there a plan to have this fixed in the future? If so, please give me a rough idea as to when. If not, can I be provided with the source to see if I can submit a patch to fix this? {noformat} [ERROR] Failed to execute goal com.atlassian.maven.plugins:maven-jira-plugin:3.4-SNAPSHOT:copy-bundled-dependencies (default-copy-bundled-dependencies) on project caris-jira-blockinglinks-plugin: Unable to execute mojo: UnsupportedOperationException -> [Help 1] org.apache.maven.lifecycle.LifecycleExecutionException: Failed to execute goal com.atlassian.maven.plugins:maven-jira-plugin:3.4-SNAPSHOT:copy-bundled-dependencies (default-copy-bundled-dependencies) on project caris-jira-blockinglinks-plugin: Unable to execute mojo at org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:217) at org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:153) at org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:145) at org.apache.maven.lifecycle.internal.LifecycleModuleBuilder.buildProject(LifecycleModuleBuilder.java:84) at org.apache.maven.lifecycle.internal.LifecycleModuleBuilder.buildProject(LifecycleModuleBuilder.java:59) at org.apache.maven.lifecycle.internal.LifecycleStarter.singleThreadedBuild(LifecycleStarter.java:183) at org.apache.maven.lifecycle.internal.LifecycleStarter.execute(LifecycleStarter.java:161) at org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java:319) at org.apache.maven.DefaultMaven.execute(DefaultMaven.java:156) at org.apache.maven.cli.MavenCli.execute(MavenCli.java:537) at org.apache.maven.cli.MavenCli.doMain(MavenCli.java:196) at org.apache.maven.cli.MavenCli.main(MavenCli.java:141) 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.codehaus.plexus.classworlds.launcher.Launcher.launchEnhanced(Launcher.java:290) at org.codehaus.plexus.classworlds.launcher.Launcher.launch(Launcher.java:230) at org.codehaus.plexus.classworlds.launcher.Launcher.mainWithExitCode(Launcher.java:409) at org.codehaus.plexus.classworlds.launcher.Launcher.main(Launcher.java:352) Caused by: org.apache.maven.plugin.MojoExecutionException: Unable to execute mojo at org.twdata.maven.mojoexecutor.MojoExecutor.executeMojo(MojoExecutor.java:106) at com.atlassian.maven.plugins.amps.MavenGoals.copyBundledDependencies(MavenGoals.java:167) at com.atlassian.maven.plugins.amps.CopyBundledDependenciesMojo.execute(CopyBundledDependenciesMojo.java:21) at org.apache.maven.plugin.DefaultBuildPluginManager.executeMojo(DefaultBuildPluginManager.java:101) at org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:209) ... 19 more Caused by: java.lang.UnsupportedOperationException at org.apache.maven.plugin.internal.DefaultPluginManager.executeMojo(DefaultPluginManager.java:90) at org.twdata.maven.mojoexecutor.MojoExecutor.executeMojo(MojoExecutor.java:104) ... 23 more {noformat}

    Atlassian JIRA | 6 years ago | Tim Astle
    org.apache.maven.lifecycle.LifecycleExecutionException: Failed to execute goal com.atlassian.maven.plugins:maven-jira-plugin:3.4-SNAPSHOT:copy-bundled-dependencies (default-copy-bundled-dependencies) on project caris-jira-blockinglinks-plugin: Unable to execute mojo
  2. 0

    When we updated our in-house continuous integration system to use Maven 3 instead of Maven 2, we discovered that one of the plugins was not written in a way that would allow it to function in a Maven 3 environment. Below is the debug output of the build failure. I'd very much appreciate it if this could be remedied. There is really no reason that we've seen that would require us to support both Maven 2 (or the 'JIRA SDK') and Maven 3 in our system. Our system builds many different Maven applications and plugins and this is the only plugin that we are blocked on. :( Is there a plan to have this fixed in the future? If so, please give me a rough idea as to when. If not, can I be provided with the source to see if I can submit a patch to fix this? {noformat} [ERROR] Failed to execute goal com.atlassian.maven.plugins:maven-jira-plugin:3.4-SNAPSHOT:copy-bundled-dependencies (default-copy-bundled-dependencies) on project caris-jira-blockinglinks-plugin: Unable to execute mojo: UnsupportedOperationException -> [Help 1] org.apache.maven.lifecycle.LifecycleExecutionException: Failed to execute goal com.atlassian.maven.plugins:maven-jira-plugin:3.4-SNAPSHOT:copy-bundled-dependencies (default-copy-bundled-dependencies) on project caris-jira-blockinglinks-plugin: Unable to execute mojo at org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:217) at org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:153) at org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:145) at org.apache.maven.lifecycle.internal.LifecycleModuleBuilder.buildProject(LifecycleModuleBuilder.java:84) at org.apache.maven.lifecycle.internal.LifecycleModuleBuilder.buildProject(LifecycleModuleBuilder.java:59) at org.apache.maven.lifecycle.internal.LifecycleStarter.singleThreadedBuild(LifecycleStarter.java:183) at org.apache.maven.lifecycle.internal.LifecycleStarter.execute(LifecycleStarter.java:161) at org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java:319) at org.apache.maven.DefaultMaven.execute(DefaultMaven.java:156) at org.apache.maven.cli.MavenCli.execute(MavenCli.java:537) at org.apache.maven.cli.MavenCli.doMain(MavenCli.java:196) at org.apache.maven.cli.MavenCli.main(MavenCli.java:141) 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.codehaus.plexus.classworlds.launcher.Launcher.launchEnhanced(Launcher.java:290) at org.codehaus.plexus.classworlds.launcher.Launcher.launch(Launcher.java:230) at org.codehaus.plexus.classworlds.launcher.Launcher.mainWithExitCode(Launcher.java:409) at org.codehaus.plexus.classworlds.launcher.Launcher.main(Launcher.java:352) Caused by: org.apache.maven.plugin.MojoExecutionException: Unable to execute mojo at org.twdata.maven.mojoexecutor.MojoExecutor.executeMojo(MojoExecutor.java:106) at com.atlassian.maven.plugins.amps.MavenGoals.copyBundledDependencies(MavenGoals.java:167) at com.atlassian.maven.plugins.amps.CopyBundledDependenciesMojo.execute(CopyBundledDependenciesMojo.java:21) at org.apache.maven.plugin.DefaultBuildPluginManager.executeMojo(DefaultBuildPluginManager.java:101) at org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:209) ... 19 more Caused by: java.lang.UnsupportedOperationException at org.apache.maven.plugin.internal.DefaultPluginManager.executeMojo(DefaultPluginManager.java:90) at org.twdata.maven.mojoexecutor.MojoExecutor.executeMojo(MojoExecutor.java:104) ... 23 more {noformat}

    Atlassian JIRA | 6 years ago | Tim Astle
    org.apache.maven.lifecycle.LifecycleExecutionException: Failed to execute goal com.atlassian.maven.plugins:maven-jira-plugin:3.4-SNAPSHOT:copy-bundled-dependencies (default-copy-bundled-dependencies) on project caris-jira-blockinglinks-plugin: Unable to execute mojo
  3. 0

    Whenever I save a resource in src/main/resources or src/test/resources in eclipse, the executed maven goal fails with the stacktrace below. The m2eclipse plugin (0.12.1) bundles a maven 3.0.2 runtime. I explicitly set the maven installation shipped with the Atlassian SDK (3.2.3) as default maven runtime in eclipse, but the selection dialog shows a message stating that at least for dependency resolution always the embedded runtime is used. Is the copy-bundled-dependencies goal compatible with maven 3 at all? I could not try SDK version 3.2.4 as the download is currently broken. {code} org.apache.maven.lifecycle.LifecycleExecutionException: Failed to execute goal com.atlassian.maven.plugins:maven-confluence-plugin:3.2.3:copy-bundled-dependencies (default-copy-bundled-dependencies) on project infopath-connector: Unable to execute mojo at org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:217) at org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:153) at org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:145) at org.apache.maven.lifecycle.internal.LifecycleModuleBuilder.buildProject(LifecycleModuleBuilder.java:84) at org.apache.maven.lifecycle.internal.LifecycleModuleBuilder.buildProject(LifecycleModuleBuilder.java:59) at org.apache.maven.lifecycle.internal.LifecycleStarter.singleThreadedBuild(LifecycleStarter.java:183) at org.apache.maven.lifecycle.internal.LifecycleStarter.execute(LifecycleStarter.java:161) at org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java:319) at org.apache.maven.DefaultMaven.execute(DefaultMaven.java:156) at org.maven.ide.eclipse.internal.embedder.MavenImpl.execute(MavenImpl.java:223) at org.maven.ide.eclipse.internal.project.GenericBuildParticipant.filterResources(GenericBuildParticipant.java:184) at org.maven.ide.eclipse.internal.project.GenericBuildParticipant.processResources(GenericBuildParticipant.java:161) at org.maven.ide.eclipse.internal.project.GenericBuildParticipant.build(GenericBuildParticipant.java:83) at org.maven.ide.eclipse.internal.builder.MavenBuilder.build(MavenBuilder.java:153) at org.eclipse.core.internal.events.BuildManager$2.run(BuildManager.java:629) at org.eclipse.core.runtime.SafeRunner.run(SafeRunner.java:42) at org.eclipse.core.internal.events.BuildManager.basicBuild(BuildManager.java:172) at org.eclipse.core.internal.events.BuildManager.basicBuild(BuildManager.java:203) at org.eclipse.core.internal.events.BuildManager$1.run(BuildManager.java:255) at org.eclipse.core.runtime.SafeRunner.run(SafeRunner.java:42) at org.eclipse.core.internal.events.BuildManager.basicBuild(BuildManager.java:258) at org.eclipse.core.internal.events.BuildManager.basicBuildLoop(BuildManager.java:311) at org.eclipse.core.internal.events.BuildManager.build(BuildManager.java:343) at org.eclipse.core.internal.events.AutoBuildJob.doBuild(AutoBuildJob.java:144) at org.eclipse.core.internal.events.AutoBuildJob.run(AutoBuildJob.java:242) at org.eclipse.core.internal.jobs.Worker.run(Worker.java:54) Caused by: org.apache.maven.plugin.MojoExecutionException: Unable to execute mojo at org.twdata.maven.mojoexecutor.MojoExecutor.executeMojo(MojoExecutor.java:106) at com.atlassian.maven.plugins.amps.MavenGoals.copyBundledDependencies(MavenGoals.java:139) at com.atlassian.maven.plugins.amps.CopyBundledDependenciesMojo.execute(CopyBundledDependenciesMojo.java:21) at org.apache.maven.plugin.DefaultBuildPluginManager.executeMojo(DefaultBuildPluginManager.java:107) at org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:209) ... 25 more Caused by: java.lang.UnsupportedOperationException at org.apache.maven.plugin.internal.DefaultPluginManager.executeMojo(DefaultPluginManager.java:90) at org.twdata.maven.mojoexecutor.MojoExecutor.executeMojo(MojoExecutor.java:104) ... 29 more {code}

    Ecosystem JIRA | 6 years ago | Jens Rutschmann [K15t Software GmbH]
    org.apache.maven.lifecycle.LifecycleExecutionException: Failed to execute goal com.atlassian.maven.plugins:maven-confluence-plugin:3.2.3:copy-bundled-dependencies (default-copy-bundled-dependencies) on project infopath-connector: Unable to execute mojo
  4. Speed up your debug routine!

    Automated exception search integrated into your IDE

  5. 0

    Atlassian SDK error: can not install plugin

    Stack Overflow | 1 year ago | Võ Lý Minh Nhân
    java.lang.RuntimeException: org.apache.maven.plugin.MojoExecutionException: Unable to execute mojo
  6. 0

    Execution with Maven3 fails with an UnsupportedOperationException: {noformat} INFO] [ERROR] Failed to execute goal com.atlassian.maven.plugins:maven-source-routes-plugin:1.1:route (create-sources) on project embedded-crowd-api: Unable to execute mojo: UnsupportedOperationException -> [Help 1] [INFO] org.apache.maven.lifecycle.LifecycleExecutionException: Failed to execute goal com.atlassian.maven.plugins:maven-source-routes-plugin:1.1:route (create-sources) on project embedded-crowd-api: Unable to execute mojo [INFO] at org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:217) [INFO] at org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:153) [INFO] at org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:145) [INFO] at org.apache.maven.lifecycle.internal.LifecycleModuleBuilder.buildProject(LifecycleModuleBuilder.java:84) [INFO] at org.apache.maven.lifecycle.internal.LifecycleModuleBuilder.buildProject(LifecycleModuleBuilder.java:59) [INFO] at org.apache.maven.lifecycle.internal.LifecycleStarter.singleThreadedBuild(LifecycleStarter.java:183) [INFO] at org.apache.maven.lifecycle.internal.LifecycleStarter.execute(LifecycleStarter.java:161) [INFO] at org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java:319) [INFO] at org.apache.maven.DefaultMaven.execute(DefaultMaven.java:156) [INFO] at org.apache.maven.cli.MavenCli.execute(MavenCli.java:537) [INFO] at org.apache.maven.cli.MavenCli.doMain(MavenCli.java:196) [INFO] at org.apache.maven.cli.MavenCli.main(MavenCli.java:141) [INFO] at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) [INFO] at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39) [INFO] at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25) [INFO] at java.lang.reflect.Method.invoke(Method.java:597) [INFO] at org.codehaus.plexus.classworlds.launcher.Launcher.launchEnhanced(Launcher.java:290) [INFO] at org.codehaus.plexus.classworlds.launcher.Launcher.launch(Launcher.java:230) [INFO] at org.codehaus.plexus.classworlds.launcher.Launcher.mainWithExitCode(Launcher.java:409) [INFO] at org.codehaus.plexus.classworlds.launcher.Launcher.main(Launcher.java:352) [INFO] Caused by: org.apache.maven.plugin.MojoExecutionException: Unable to execute mojo [INFO] at org.twdata.maven.mojoexecutor.MojoExecutor.executeMojo(MojoExecutor.java:100) [INFO] at com.atlassian.maven.plugins.routes.RouteMojo.execute(RouteMojo.java:113) [INFO] at org.apache.maven.plugin.DefaultBuildPluginManager.executeMojo(DefaultBuildPluginManager.java:101) [INFO] at org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:209) [INFO] ... 19 more [INFO] Caused by: java.lang.UnsupportedOperationException [INFO] at org.apache.maven.plugin.internal.DefaultPluginManager.executeMojo(DefaultPluginManager.java:90) [INFO] at org.twdata.maven.mojoexecutor.MojoExecutor.executeMojo(MojoExecutor.java:98) [INFO] ... 22 more {noformat} Which comes from the mojo-executor plugin: {noformat} org.twdata.maven.mojoexecutor.MojoExecutor.executeMojo(MojoExecutor.java:98) {noformat} Latest version 2.0 of mojo-executor should work: https://github.com/TimMoore/mojo-executor

    Ecosystem JIRA | 5 years ago | Rene Medellin
    org.apache.maven.lifecycle.LifecycleExecutionException: Failed to execute goal com.atlassian.maven.plugins:maven-source-routes-plugin:1.1:route (create-sources) on project embedded-crowd-api: Unable to execute mojo

    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.UnsupportedOperationException

      No message provided

      at org.apache.maven.plugin.internal.DefaultPluginManager.executeMojo()
    2. Maven Core
      DefaultPluginManager.executeMojo
      1. org.apache.maven.plugin.internal.DefaultPluginManager.executeMojo(DefaultPluginManager.java:90)
      1 frame
    3. org.twdata.maven
      MojoExecutor.executeMojo
      1. org.twdata.maven.mojoexecutor.MojoExecutor.executeMojo(MojoExecutor.java:104)
      1 frame
    4. com.atlassian.maven
      CopyBundledDependenciesMojo.execute
      1. com.atlassian.maven.plugins.amps.MavenGoals.copyBundledDependencies(MavenGoals.java:167)
      2. com.atlassian.maven.plugins.amps.CopyBundledDependenciesMojo.execute(CopyBundledDependenciesMojo.java:21)
      2 frames
    5. Maven Plugin
      DefaultBuildPluginManager.executeMojo
      1. org.apache.maven.plugin.DefaultBuildPluginManager.executeMojo(DefaultBuildPluginManager.java:101)
      1 frame
    6. Maven Core
      DefaultMaven.execute
      1. org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:209)
      2. org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:153)
      3. org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:145)
      4. org.apache.maven.lifecycle.internal.LifecycleModuleBuilder.buildProject(LifecycleModuleBuilder.java:84)
      5. org.apache.maven.lifecycle.internal.LifecycleModuleBuilder.buildProject(LifecycleModuleBuilder.java:59)
      6. org.apache.maven.lifecycle.internal.LifecycleStarter.singleThreadedBuild(LifecycleStarter.java:183)
      7. org.apache.maven.lifecycle.internal.LifecycleStarter.execute(LifecycleStarter.java:161)
      8. org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java:319)
      9. org.apache.maven.DefaultMaven.execute(DefaultMaven.java:156)
      9 frames
    7. M3 Interceptor
      MavenCli.main
      1. org.apache.maven.cli.MavenCli.execute(MavenCli.java:537)
      2. org.apache.maven.cli.MavenCli.doMain(MavenCli.java:196)
      3. org.apache.maven.cli.MavenCli.main(MavenCli.java:141)
      3 frames
    8. Java RT
      Method.invoke
      1. sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
      2. sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
      3. sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
      4. java.lang.reflect.Method.invoke(Method.java:597)
      4 frames
    9. Plexus
      Launcher.main
      1. org.codehaus.plexus.classworlds.launcher.Launcher.launchEnhanced(Launcher.java:290)
      2. org.codehaus.plexus.classworlds.launcher.Launcher.launch(Launcher.java:230)
      3. org.codehaus.plexus.classworlds.launcher.Launcher.mainWithExitCode(Launcher.java:409)
      4. org.codehaus.plexus.classworlds.launcher.Launcher.main(Launcher.java:352)
      4 frames