org.gradle.api.tasks.TaskExecutionException: Execution failed for task ':sonarqube'.

tip
Your exception is missing from the Samebug knowledge base.
Here are the best solutions we found on the Internet.
Click on the to mark the helpful solution and get rewards for you help.
  1. 0

    CNFE after upgrading from 6.0 to 6.1-RC1

    Stack Overflow | 7 months ago | Juergen Zimmermann
    org.gradle.api.tasks.TaskExecutionException: Execution failed for task ':sonarqube'.
  2. 0

    SonarQube Jenkins plugin - ClassNotFoundException: org.sonar.api.batch.TimeMachine

    Stack Overflow | 1 year ago | Alejandro Goñi
    org.apache.maven.lifecycle.LifecycleExecutionException: Failed to execute goal org.codehaus.mojo:sonar-maven-plugin:2.7.1:sonar (default-cli) on project parent.pom: Unable to register extension es.excentia.sonar.citymodel.CityDecorator
  3. Speed up your debug routine!

    Automated exception search integrated into your IDE

  4. 0

    SonarQube 5.2 RC2&RC3 => ClassNotFoundException in custom plugin when use Google Guava

    Google Groups | 2 years ago | Andrey Matsokha
    org.apache.maven.lifecycle.LifecycleExecutionException: Failed to execute goal org.codehaus.mojo:sonar-maven-plugin:2.6:sonar (default-cli) on project sonarqube-test-guava: com/google/common/base/Optional

    3 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.ClassNotFoundException

      org.sonar.api.scan.filesystem.ModuleFileSystem

      at org.sonar.classloader.ParentFirstStrategy.loadClass()
    2. org.sonar.classloader
      ClassRealm.loadClass
      1. org.sonar.classloader.ParentFirstStrategy.loadClass(ParentFirstStrategy.java:39)
      2. org.sonar.classloader.ClassRealm.loadClass(ClassRealm.java:87)
      3. org.sonar.classloader.ClassRealm.loadClass(ClassRealm.java:76)
      3 frames
    3. PicoContainer Core
      DefaultPicoContainer.getComponent
      1. org.picocontainer.injectors.ConstructorInjector$3.run(ConstructorInjector.java:403)
      2. org.picocontainer.injectors.ConstructorInjector$3.run(ConstructorInjector.java:401)
      3. org.picocontainer.injectors.ConstructorInjector.getConstructors(ConstructorInjector.java:401)
      4. org.picocontainer.injectors.ConstructorInjector.getSortedMatchingConstructors(ConstructorInjector.java:377)
      5. org.picocontainer.injectors.ConstructorInjector.getGreediestSatisfiableConstructor(ConstructorInjector.java:128)
      6. org.picocontainer.injectors.ConstructorInjector.getGreediestSatisfiableConstructor(ConstructorInjector.java:110)
      7. org.picocontainer.injectors.ConstructorInjector.access$100(ConstructorInjector.java:51)
      8. org.picocontainer.injectors.ConstructorInjector$1.run(ConstructorInjector.java:331)
      9. org.picocontainer.injectors.AbstractInjector$ThreadLocalCyclicDependencyGuard.observe(AbstractInjector.java:270)
      10. org.picocontainer.injectors.ConstructorInjector.getComponentInstance(ConstructorInjector.java:364)
      11. org.picocontainer.injectors.AbstractInjectionFactory$LifecycleAdapter.getComponentInstance(AbstractInjectionFactory.java:56)
      12. org.picocontainer.behaviors.AbstractBehavior.getComponentInstance(AbstractBehavior.java:64)
      13. org.picocontainer.behaviors.Stored.getComponentInstance(Stored.java:91)
      14. org.picocontainer.DefaultPicoContainer.getInstance(DefaultPicoContainer.java:699)
      15. org.picocontainer.DefaultPicoContainer.getComponent(DefaultPicoContainer.java:647)
      15 frames
    4. org.sonar.core
      ComponentContainer$ExtendedDefaultPicoContainer.getComponent
      1. org.sonar.core.platform.ComponentContainer$ExtendedDefaultPicoContainer.getComponent(ComponentContainer.java:67)
      1 frame
    5. PicoContainer Core
      DefaultPicoContainer.getComponent
      1. org.picocontainer.DefaultPicoContainer.getComponent(DefaultPicoContainer.java:621)
      2. org.picocontainer.parameters.CollectionComponentParameter.getArrayInstance(CollectionComponentParameter.java:334)
      3. org.picocontainer.parameters.CollectionComponentParameter.access$100(CollectionComponentParameter.java:49)
      4. org.picocontainer.parameters.CollectionComponentParameter$1.resolveInstance(CollectionComponentParameter.java:139)
      5. org.picocontainer.parameters.ComponentParameter$1.resolveInstance(ComponentParameter.java:141)
      6. org.picocontainer.injectors.SingleMemberInjector.getParameter(SingleMemberInjector.java:78)
      7. org.picocontainer.injectors.ConstructorInjector$CtorAndAdapters.getParameterArguments(ConstructorInjector.java:309)
      8. org.picocontainer.injectors.ConstructorInjector$1.run(ConstructorInjector.java:335)
      9. org.picocontainer.injectors.AbstractInjector$ThreadLocalCyclicDependencyGuard.observe(AbstractInjector.java:270)
      10. org.picocontainer.injectors.ConstructorInjector.getComponentInstance(ConstructorInjector.java:364)
      11. org.picocontainer.injectors.AbstractInjectionFactory$LifecycleAdapter.getComponentInstance(AbstractInjectionFactory.java:56)
      12. org.picocontainer.behaviors.AbstractBehavior.getComponentInstance(AbstractBehavior.java:64)
      13. org.picocontainer.behaviors.Stored.getComponentInstance(Stored.java:91)
      14. org.picocontainer.DefaultPicoContainer.getInstance(DefaultPicoContainer.java:699)
      15. org.picocontainer.DefaultPicoContainer.getComponent(DefaultPicoContainer.java:647)
      15 frames
    6. org.sonar.core
      ComponentContainer$ExtendedDefaultPicoContainer.getComponent
      1. org.sonar.core.platform.ComponentContainer$ExtendedDefaultPicoContainer.getComponent(ComponentContainer.java:67)
      1 frame
    7. PicoContainer Core
      DefaultPicoContainer.getComponent
      1. org.picocontainer.DefaultPicoContainer.getComponent(DefaultPicoContainer.java:632)
      2. org.picocontainer.parameters.BasicComponentParameter$1.resolveInstance(BasicComponentParameter.java:118)
      3. org.picocontainer.parameters.ComponentParameter$1.resolveInstance(ComponentParameter.java:136)
      4. org.picocontainer.injectors.SingleMemberInjector.getParameter(SingleMemberInjector.java:78)
      5. org.picocontainer.injectors.ConstructorInjector$CtorAndAdapters.getParameterArguments(ConstructorInjector.java:309)
      6. org.picocontainer.injectors.ConstructorInjector$1.run(ConstructorInjector.java:335)
      7. org.picocontainer.injectors.AbstractInjector$ThreadLocalCyclicDependencyGuard.observe(AbstractInjector.java:270)
      8. org.picocontainer.injectors.ConstructorInjector.getComponentInstance(ConstructorInjector.java:364)
      9. org.picocontainer.injectors.AbstractInjectionFactory$LifecycleAdapter.getComponentInstance(AbstractInjectionFactory.java:56)
      10. org.picocontainer.behaviors.AbstractBehavior.getComponentInstance(AbstractBehavior.java:64)
      11. org.picocontainer.behaviors.Stored.getComponentInstance(Stored.java:91)
      12. org.picocontainer.DefaultPicoContainer.getInstance(DefaultPicoContainer.java:699)
      13. org.picocontainer.DefaultPicoContainer.getComponent(DefaultPicoContainer.java:647)
      13 frames
    8. org.sonar.core
      ComponentContainer$ExtendedDefaultPicoContainer.getComponent
      1. org.sonar.core.platform.ComponentContainer$ExtendedDefaultPicoContainer.getComponent(ComponentContainer.java:67)
      1 frame
    9. PicoContainer Core
      DefaultPicoContainer.getComponents
      1. org.picocontainer.DefaultPicoContainer.getComponent(DefaultPicoContainer.java:632)
      2. org.picocontainer.parameters.BasicComponentParameter$1.resolveInstance(BasicComponentParameter.java:118)
      3. org.picocontainer.parameters.ComponentParameter$1.resolveInstance(ComponentParameter.java:136)
      4. org.picocontainer.injectors.SingleMemberInjector.getParameter(SingleMemberInjector.java:78)
      5. org.picocontainer.injectors.ConstructorInjector$CtorAndAdapters.getParameterArguments(ConstructorInjector.java:309)
      6. org.picocontainer.injectors.ConstructorInjector$1.run(ConstructorInjector.java:335)
      7. org.picocontainer.injectors.AbstractInjector$ThreadLocalCyclicDependencyGuard.observe(AbstractInjector.java:270)
      8. org.picocontainer.injectors.ConstructorInjector.getComponentInstance(ConstructorInjector.java:364)
      9. org.picocontainer.injectors.AbstractInjectionFactory$LifecycleAdapter.getComponentInstance(AbstractInjectionFactory.java:56)
      10. org.picocontainer.behaviors.AbstractBehavior.getComponentInstance(AbstractBehavior.java:64)
      11. org.picocontainer.behaviors.Stored.getComponentInstance(Stored.java:91)
      12. org.picocontainer.DefaultPicoContainer.getLocalInstance(DefaultPicoContainer.java:606)
      13. org.picocontainer.DefaultPicoContainer.getComponents(DefaultPicoContainer.java:587)
      13 frames
    10. org.sonar.core
      ComponentContainer.getComponentsByType
      1. org.sonar.core.platform.ComponentContainer.getComponentsByType(ComponentContainer.java:281)
      1 frame
    11. org.sonar.scanner
      ModuleScanContainer.doAfterStart
      1. org.sonar.scanner.bootstrap.BatchExtensionDictionnary.completeBatchExtensions(BatchExtensionDictionnary.java:134)
      2. org.sonar.scanner.bootstrap.BatchExtensionDictionnary.getExtensions(BatchExtensionDictionnary.java:128)
      3. org.sonar.scanner.bootstrap.BatchExtensionDictionnary.getFilteredExtensions(BatchExtensionDictionnary.java:107)
      4. org.sonar.scanner.bootstrap.BatchExtensionDictionnary.select(BatchExtensionDictionnary.java:74)
      5. org.sonar.scanner.phases.SensorsExecutor.execute(SensorsExecutor.java:45)
      6. org.sonar.scanner.phases.AbstractPhaseExecutor.execute(AbstractPhaseExecutor.java:78)
      7. org.sonar.scanner.scan.ModuleScanContainer.doAfterStart(ModuleScanContainer.java:182)
      7 frames
    12. org.sonar.core
      ComponentContainer.execute
      1. org.sonar.core.platform.ComponentContainer.startComponents(ComponentContainer.java:142)
      2. org.sonar.core.platform.ComponentContainer.execute(ComponentContainer.java:127)
      2 frames
    13. org.sonar.scanner
      ProjectScanContainer.doAfterStart
      1. org.sonar.scanner.scan.ProjectScanContainer.scan(ProjectScanContainer.java:247)
      2. org.sonar.scanner.scan.ProjectScanContainer.scanRecursively(ProjectScanContainer.java:242)
      3. org.sonar.scanner.scan.ProjectScanContainer.doAfterStart(ProjectScanContainer.java:232)
      3 frames
    14. org.sonar.core
      ComponentContainer.execute
      1. org.sonar.core.platform.ComponentContainer.startComponents(ComponentContainer.java:142)
      2. org.sonar.core.platform.ComponentContainer.execute(ComponentContainer.java:127)
      2 frames
    15. org.sonar.scanner
      TaskContainer.doAfterStart
      1. org.sonar.scanner.task.ScanTask.execute(ScanTask.java:47)
      2. org.sonar.scanner.task.TaskContainer.doAfterStart(TaskContainer.java:86)
      2 frames
    16. org.sonar.core
      ComponentContainer.execute
      1. org.sonar.core.platform.ComponentContainer.startComponents(ComponentContainer.java:142)
      2. org.sonar.core.platform.ComponentContainer.execute(ComponentContainer.java:127)
      2 frames
    17. org.sonar.scanner
      GlobalContainer.executeTask
      1. org.sonar.scanner.bootstrap.GlobalContainer.executeTask(GlobalContainer.java:115)
      1 frame
    18. SonarQube
      Batch.executeTask
      1. org.sonar.batch.bootstrapper.Batch.executeTask(Batch.java:118)
      1 frame
    19. org.sonarsource.scanner
      IsolatedLauncherProxy.invoke
      1. org.sonarsource.scanner.api.internal.batch.BatchIsolatedLauncher.execute(BatchIsolatedLauncher.java:62)
      2. org.sonarsource.scanner.api.internal.IsolatedLauncherProxy.invoke(IsolatedLauncherProxy.java:60)
      2 frames
    20. com.sun.proxy
      $Proxy110.execute
      1. com.sun.proxy.$Proxy110.execute(Unknown Source)
      1 frame
    21. org.sonarsource.scanner
      EmbeddedScanner.runAnalysis
      1. org.sonarsource.scanner.api.EmbeddedScanner.doExecute(EmbeddedScanner.java:233)
      2. org.sonarsource.scanner.api.EmbeddedScanner.runAnalysis(EmbeddedScanner.java:151)
      2 frames
    22. org.sonarqube.gradle
      SonarQubeTask.run
      1. org.sonarqube.gradle.SonarQubeTask.run(SonarQubeTask.java:90)
      1 frame
    23. org.gradle.internal
      JavaMethod.invoke
      1. org.gradle.internal.reflect.JavaMethod.invoke(JavaMethod.java:75)
      1 frame
    24. Gradle Core
      StoppableExecutorImpl$1.run
      1. org.gradle.api.internal.project.taskfactory.DefaultTaskClassInfoStore$StandardTaskAction.doExecute(DefaultTaskClassInfoStore.java:136)
      2. org.gradle.api.internal.project.taskfactory.DefaultTaskClassInfoStore$StandardTaskAction.execute(DefaultTaskClassInfoStore.java:129)
      3. org.gradle.api.internal.project.taskfactory.DefaultTaskClassInfoStore$StandardTaskAction.execute(DefaultTaskClassInfoStore.java:118)
      4. org.gradle.api.internal.AbstractTask$TaskActionWrapper.execute(AbstractTask.java:623)
      5. org.gradle.api.internal.AbstractTask$TaskActionWrapper.execute(AbstractTask.java:606)
      6. org.gradle.api.internal.tasks.execution.ExecuteActionsTaskExecuter.executeAction(ExecuteActionsTaskExecuter.java:80)
      7. org.gradle.api.internal.tasks.execution.ExecuteActionsTaskExecuter.executeActions(ExecuteActionsTaskExecuter.java:61)
      8. org.gradle.api.internal.tasks.execution.ExecuteActionsTaskExecuter.execute(ExecuteActionsTaskExecuter.java:46)
      9. org.gradle.api.internal.tasks.execution.PostExecutionAnalysisTaskExecuter.execute(PostExecutionAnalysisTaskExecuter.java:35)
      10. org.gradle.api.internal.tasks.execution.SkipUpToDateTaskExecuter.execute(SkipUpToDateTaskExecuter.java:64)
      11. org.gradle.api.internal.tasks.execution.ValidatingTaskExecuter.execute(ValidatingTaskExecuter.java:58)
      12. org.gradle.api.internal.tasks.execution.SkipEmptySourceFilesTaskExecuter.execute(SkipEmptySourceFilesTaskExecuter.java:52)
      13. org.gradle.api.internal.tasks.execution.SkipTaskWithNoActionsExecuter.execute(SkipTaskWithNoActionsExecuter.java:52)
      14. org.gradle.api.internal.tasks.execution.SkipOnlyIfTaskExecuter.execute(SkipOnlyIfTaskExecuter.java:53)
      15. org.gradle.api.internal.tasks.execution.ExecuteAtMostOnceTaskExecuter.execute(ExecuteAtMostOnceTaskExecuter.java:43)
      16. org.gradle.execution.taskgraph.DefaultTaskGraphExecuter$EventFiringTaskWorker.execute(DefaultTaskGraphExecuter.java:233)
      17. org.gradle.execution.taskgraph.DefaultTaskGraphExecuter$EventFiringTaskWorker.execute(DefaultTaskGraphExecuter.java:215)
      18. org.gradle.execution.taskgraph.AbstractTaskPlanExecutor$TaskExecutorWorker.processTask(AbstractTaskPlanExecutor.java:74)
      19. org.gradle.execution.taskgraph.AbstractTaskPlanExecutor$TaskExecutorWorker.run(AbstractTaskPlanExecutor.java:55)
      20. org.gradle.internal.concurrent.ExecutorPolicy$CatchAndRecordFailures.onExecute(ExecutorPolicy.java:54)
      21. org.gradle.internal.concurrent.StoppableExecutorImpl$1.run(StoppableExecutorImpl.java:40)
      21 frames