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

Jenkins JIRA | Jochen Kemnade | 3 years ago
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

    The {{artifactoryPublish}} task fails in a project that uses Gradle(w) 2.0: {code} FAILURE: Build failed with an exception. * What went wrong: Execution failed for task ':artifactoryPublish'. > org/apache/ivy/core/IvyPatternHelper * Try: Run with --debug option to get more log output. * Exception is: org.gradle.api.tasks.TaskExecutionException: Execution failed for task ':artifactoryPublish'. at org.gradle.api.internal.tasks.execution.ExecuteActionsTaskExecuter.executeActions(ExecuteActionsTaskExecuter.java:69) at org.gradle.api.internal.tasks.execution.ExecuteActionsTaskExecuter.execute(ExecuteActionsTaskExecuter.java:46) at org.gradle.api.internal.tasks.execution.PostExecutionAnalysisTaskExecuter.execute(PostExecutionAnalysisTaskExecuter.java:35) at org.gradle.api.internal.tasks.execution.SkipUpToDateTaskExecuter.execute(SkipUpToDateTaskExecuter.java:64) at org.gradle.api.internal.tasks.execution.ValidatingTaskExecuter.execute(ValidatingTaskExecuter.java:58) at org.gradle.api.internal.tasks.execution.SkipEmptySourceFilesTaskExecuter.execute(SkipEmptySourceFilesTaskExecuter.java:42) at org.gradle.api.internal.tasks.execution.SkipTaskWithNoActionsExecuter.execute(SkipTaskWithNoActionsExecuter.java:52) at org.gradle.api.internal.tasks.execution.SkipOnlyIfTaskExecuter.execute(SkipOnlyIfTaskExecuter.java:53) at org.gradle.api.internal.tasks.execution.ExecuteAtMostOnceTaskExecuter.execute(ExecuteAtMostOnceTaskExecuter.java:43) at org.gradle.api.internal.AbstractTask.executeWithoutThrowingTaskFailure(AbstractTask.java:296) at org.gradle.execution.taskgraph.AbstractTaskPlanExecutor$TaskExecutorWorker.executeTask(AbstractTaskPlanExecutor.java:79) at org.gradle.execution.taskgraph.AbstractTaskPlanExecutor$TaskExecutorWorker.processTask(AbstractTaskPlanExecutor.java:63) at org.gradle.execution.taskgraph.AbstractTaskPlanExecutor$TaskExecutorWorker.run(AbstractTaskPlanExecutor.java:51) at org.gradle.internal.concurrent.DefaultExecutorFactory$StoppableExecutorImpl$1.run(DefaultExecutorFactory.java:64) Caused by: java.lang.NoClassDefFoundError: org/apache/ivy/core/IvyPatternHelper at org.jfrog.gradle.plugin.artifactory.task.BuildInfoConfigurationsTask.gradleDeployDetails(BuildInfoConfigurationsTask.java:455) at org.jfrog.gradle.plugin.artifactory.task.BuildInfoConfigurationsTask.gradleDeployDetails(BuildInfoConfigurationsTask.java:410) at org.jfrog.gradle.plugin.artifactory.task.BuildInfoConfigurationsTask.getArtifactDeployDetails(BuildInfoConfigurationsTask.java:390) at org.jfrog.gradle.plugin.artifactory.task.BuildInfoConfigurationsTask_Decorated.getArtifactDeployDetails(Unknown Source) at org.jfrog.gradle.plugin.artifactory.task.BuildInfoConfigurationsTask.collectDescriptorsAndArtifactsForUpload(BuildInfoConfigurationsTask.java:197) at org.jfrog.gradle.plugin.artifactory.task.BuildInfoBaseTask.prepareAndDeploy(BuildInfoBaseTask.java:267) at org.jfrog.gradle.plugin.artifactory.task.BuildInfoBaseTask.collectProjectBuildInfo(BuildInfoBaseTask.java:365) at org.gradle.internal.reflect.JavaMethod.invoke(JavaMethod.java:63) at org.gradle.api.internal.project.taskfactory.AnnotationProcessingTaskFactory$StandardTaskAction.doExecute(AnnotationProcessingTaskFactory.java:218) at org.gradle.api.internal.project.taskfactory.AnnotationProcessingTaskFactory$StandardTaskAction.execute(AnnotationProcessingTaskFactory.java:211) at org.gradle.api.internal.project.taskfactory.AnnotationProcessingTaskFactory$StandardTaskAction.execute(AnnotationProcessingTaskFactory.java:200) at org.gradle.api.internal.AbstractTask$TaskActionWrapper.execute(AbstractTask.java:570) at org.gradle.api.internal.AbstractTask$TaskActionWrapper.execute(AbstractTask.java:553) at org.gradle.api.internal.tasks.execution.ExecuteActionsTaskExecuter.executeAction(ExecuteActionsTaskExecuter.java:80) at org.gradle.api.internal.tasks.execution.ExecuteActionsTaskExecuter.executeActions(ExecuteActionsTaskExecuter.java:61) ... 13 more Caused by: java.lang.ClassNotFoundException: org.apache.ivy.core.IvyPatternHelper ... 28 more {code}

    Jenkins JIRA | 3 years ago | Jochen Kemnade
    org.gradle.api.tasks.TaskExecutionException: Execution failed for task ':artifactoryPublish'.
  2. 0

    [JENKINS-23650] artifactoryPublish fails with Gradle 2.0 - Jenkins JIRA

    jenkins-ci.org | 2 months ago
    org.gradle.api.tasks.TaskExecutionException: Execution failed task ':artifactoryPublish'.
  3. 0

    The {{artifactoryPublish}} task fails in a project that uses Gradle(w) 2.0: {code} FAILURE: Build failed with an exception. * What went wrong: Execution failed for task ':artifactoryPublish'. > org/apache/ivy/core/IvyPatternHelper * Try: Run with --debug option to get more log output. * Exception is: org.gradle.api.tasks.TaskExecutionException: Execution failed for task ':artifactoryPublish'. at org.gradle.api.internal.tasks.execution.ExecuteActionsTaskExecuter.executeActions(ExecuteActionsTaskExecuter.java:69) at org.gradle.api.internal.tasks.execution.ExecuteActionsTaskExecuter.execute(ExecuteActionsTaskExecuter.java:46) at org.gradle.api.internal.tasks.execution.PostExecutionAnalysisTaskExecuter.execute(PostExecutionAnalysisTaskExecuter.java:35) at org.gradle.api.internal.tasks.execution.SkipUpToDateTaskExecuter.execute(SkipUpToDateTaskExecuter.java:64) at org.gradle.api.internal.tasks.execution.ValidatingTaskExecuter.execute(ValidatingTaskExecuter.java:58) at org.gradle.api.internal.tasks.execution.SkipEmptySourceFilesTaskExecuter.execute(SkipEmptySourceFilesTaskExecuter.java:42) at org.gradle.api.internal.tasks.execution.SkipTaskWithNoActionsExecuter.execute(SkipTaskWithNoActionsExecuter.java:52) at org.gradle.api.internal.tasks.execution.SkipOnlyIfTaskExecuter.execute(SkipOnlyIfTaskExecuter.java:53) at org.gradle.api.internal.tasks.execution.ExecuteAtMostOnceTaskExecuter.execute(ExecuteAtMostOnceTaskExecuter.java:43) at org.gradle.api.internal.AbstractTask.executeWithoutThrowingTaskFailure(AbstractTask.java:296) at org.gradle.execution.taskgraph.AbstractTaskPlanExecutor$TaskExecutorWorker.executeTask(AbstractTaskPlanExecutor.java:79) at org.gradle.execution.taskgraph.AbstractTaskPlanExecutor$TaskExecutorWorker.processTask(AbstractTaskPlanExecutor.java:63) at org.gradle.execution.taskgraph.AbstractTaskPlanExecutor$TaskExecutorWorker.run(AbstractTaskPlanExecutor.java:51) at org.gradle.internal.concurrent.DefaultExecutorFactory$StoppableExecutorImpl$1.run(DefaultExecutorFactory.java:64) Caused by: java.lang.NoClassDefFoundError: org/apache/ivy/core/IvyPatternHelper at org.jfrog.gradle.plugin.artifactory.task.BuildInfoConfigurationsTask.gradleDeployDetails(BuildInfoConfigurationsTask.java:455) at org.jfrog.gradle.plugin.artifactory.task.BuildInfoConfigurationsTask.gradleDeployDetails(BuildInfoConfigurationsTask.java:410) at org.jfrog.gradle.plugin.artifactory.task.BuildInfoConfigurationsTask.getArtifactDeployDetails(BuildInfoConfigurationsTask.java:390) at org.jfrog.gradle.plugin.artifactory.task.BuildInfoConfigurationsTask_Decorated.getArtifactDeployDetails(Unknown Source) at org.jfrog.gradle.plugin.artifactory.task.BuildInfoConfigurationsTask.collectDescriptorsAndArtifactsForUpload(BuildInfoConfigurationsTask.java:197) at org.jfrog.gradle.plugin.artifactory.task.BuildInfoBaseTask.prepareAndDeploy(BuildInfoBaseTask.java:267) at org.jfrog.gradle.plugin.artifactory.task.BuildInfoBaseTask.collectProjectBuildInfo(BuildInfoBaseTask.java:365) at org.gradle.internal.reflect.JavaMethod.invoke(JavaMethod.java:63) at org.gradle.api.internal.project.taskfactory.AnnotationProcessingTaskFactory$StandardTaskAction.doExecute(AnnotationProcessingTaskFactory.java:218) at org.gradle.api.internal.project.taskfactory.AnnotationProcessingTaskFactory$StandardTaskAction.execute(AnnotationProcessingTaskFactory.java:211) at org.gradle.api.internal.project.taskfactory.AnnotationProcessingTaskFactory$StandardTaskAction.execute(AnnotationProcessingTaskFactory.java:200) at org.gradle.api.internal.AbstractTask$TaskActionWrapper.execute(AbstractTask.java:570) at org.gradle.api.internal.AbstractTask$TaskActionWrapper.execute(AbstractTask.java:553) at org.gradle.api.internal.tasks.execution.ExecuteActionsTaskExecuter.executeAction(ExecuteActionsTaskExecuter.java:80) at org.gradle.api.internal.tasks.execution.ExecuteActionsTaskExecuter.executeActions(ExecuteActionsTaskExecuter.java:61) ... 13 more Caused by: java.lang.ClassNotFoundException: org.apache.ivy.core.IvyPatternHelper ... 28 more {code}

    Jenkins JIRA | 3 years ago | Jochen Kemnade
    org.gradle.api.tasks.TaskExecutionException: Execution failed for task ':artifactoryPublish'.
  4. Speed up your debug routine!

    Automated exception search integrated into your IDE

    Root Cause Analysis

    1. java.lang.ClassNotFoundException

      org.apache.ivy.core.IvyPatternHelper

      at org.jfrog.gradle.plugin.artifactory.task.BuildInfoConfigurationsTask.gradleDeployDetails()
    2. org.jfrog.gradle
      BuildInfoBaseTask.collectProjectBuildInfo
      1. org.jfrog.gradle.plugin.artifactory.task.BuildInfoConfigurationsTask.gradleDeployDetails(BuildInfoConfigurationsTask.java:455)
      2. org.jfrog.gradle.plugin.artifactory.task.BuildInfoConfigurationsTask.gradleDeployDetails(BuildInfoConfigurationsTask.java:410)
      3. org.jfrog.gradle.plugin.artifactory.task.BuildInfoConfigurationsTask.getArtifactDeployDetails(BuildInfoConfigurationsTask.java:390)
      4. org.jfrog.gradle.plugin.artifactory.task.BuildInfoConfigurationsTask_Decorated.getArtifactDeployDetails(Unknown Source)
      5. org.jfrog.gradle.plugin.artifactory.task.BuildInfoConfigurationsTask.collectDescriptorsAndArtifactsForUpload(BuildInfoConfigurationsTask.java:197)
      6. org.jfrog.gradle.plugin.artifactory.task.BuildInfoBaseTask.prepareAndDeploy(BuildInfoBaseTask.java:267)
      7. org.jfrog.gradle.plugin.artifactory.task.BuildInfoBaseTask.collectProjectBuildInfo(BuildInfoBaseTask.java:365)
      7 frames
    3. org.gradle.internal
      JavaMethod.invoke
      1. org.gradle.internal.reflect.JavaMethod.invoke(JavaMethod.java:63)
      1 frame
    4. Gradle Core
      DefaultExecutorFactory$StoppableExecutorImpl$1.run
      1. org.gradle.api.internal.project.taskfactory.AnnotationProcessingTaskFactory$StandardTaskAction.doExecute(AnnotationProcessingTaskFactory.java:218)
      2. org.gradle.api.internal.project.taskfactory.AnnotationProcessingTaskFactory$StandardTaskAction.execute(AnnotationProcessingTaskFactory.java:211)
      3. org.gradle.api.internal.project.taskfactory.AnnotationProcessingTaskFactory$StandardTaskAction.execute(AnnotationProcessingTaskFactory.java:200)
      4. org.gradle.api.internal.AbstractTask$TaskActionWrapper.execute(AbstractTask.java:570)
      5. org.gradle.api.internal.AbstractTask$TaskActionWrapper.execute(AbstractTask.java:553)
      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:42)
      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.api.internal.AbstractTask.executeWithoutThrowingTaskFailure(AbstractTask.java:296)
      17. org.gradle.execution.taskgraph.AbstractTaskPlanExecutor$TaskExecutorWorker.executeTask(AbstractTaskPlanExecutor.java:79)
      18. org.gradle.execution.taskgraph.AbstractTaskPlanExecutor$TaskExecutorWorker.processTask(AbstractTaskPlanExecutor.java:63)
      19. org.gradle.execution.taskgraph.AbstractTaskPlanExecutor$TaskExecutorWorker.run(AbstractTaskPlanExecutor.java:51)
      20. org.gradle.internal.concurrent.DefaultExecutorFactory$StoppableExecutorImpl$1.run(DefaultExecutorFactory.java:64)
      20 frames