[GRADLE-2644] nexus repository gets .jar in a second step after .pom Created: 21/Jan/13  Updated: 24/Jan/17  Resolved: 24/Jan/17

Status: Resolved
Project: Gradle
Affects Version/s: 1.2
Fix Version/s: None

Type: Bug
Reporter: rupert thurner Assignee: Unassigned
Resolution: Won't Fix Votes: 0


 Description   

when using a nexus repository, proxy, it sometimes happen that a pom shows up without the adjacent .jar. the reason is unknown to us, it might be the virus scan or generally some nexus "feature".

gradle does not deal sane with it. the .gradle cache seems to store this pom and gradle does not get the idea to re-get it from nexus when running next time.

the stack trace is:
13:59:04.621 [DEBUG] [org.gradle.cache.internal.DefaultFileLockManager] Releasing lock on artifact cache (/cs/ci4jap/workspace/gcid-3.1.0/.gradle/caches/artifacts-14).
13:59:04.639 [DEBUG] [org.gradle.configuration.BuildScriptProcessor] Timing: Running the build script took 5.179 secs
13:59:04.699 [ERROR] [org.gradle.BuildExceptionReporter]
13:59:04.708 [ERROR] [org.gradle.BuildExceptionReporter] FAILURE: Build failed with an exception.
13:59:04.712 [ERROR] [org.gradle.BuildExceptionReporter]
13:59:04.716 [ERROR] [org.gradle.BuildExceptionReporter] * What went wrong:
13:59:04.719 [ERROR] [org.gradle.BuildExceptionReporter] Could not resolve all dependencies for configuration ':classpath'.
13:59:04.723 [ERROR] [org.gradle.BuildExceptionReporter] > Could not find any version that matches group:org.jacoco, module:org.jacoco.core, version:0.6.+.
13:59:04.728 [ERROR] [org.gradle.BuildExceptionReporter] Required by:
13:59:04.731 [ERROR] [org.gradle.BuildExceptionReporter] :buildscripts:unspecified > com.csg:gcidPlugin:1.5.4
13:59:04.735 [ERROR] [org.gradle.BuildExceptionReporter] > Could not find any version that matches group:org.jacoco, module:org.jacoco.agent, version:0.6.+.
13:59:04.740 [ERROR] [org.gradle.BuildExceptionReporter] Required by:
13:59:04.744 [ERROR] [org.gradle.BuildExceptionReporter] :buildscripts:unspecified > com.csg:gcidPlugin:1.5.4
13:59:04.748 [ERROR] [org.gradle.BuildExceptionReporter] > Could not find any version that matches group:org.jacoco, module:org.jacoco.report, version:0.6.+.
13:59:04.753 [ERROR] [org.gradle.BuildExceptionReporter] Required by:
13:59:04.757 [ERROR] [org.gradle.BuildExceptionReporter] :buildscripts:unspecified > com.csg:gcidPlugin:1.5.4
13:59:04.761 [ERROR] [org.gradle.BuildExceptionReporter] > Could not find any version that matches group:org.jacoco, module:org.jacoco.ant, version:0.6.+.
13:59:04.766 [ERROR] [org.gradle.BuildExceptionReporter] Required by:
13:59:04.770 [ERROR] [org.gradle.BuildExceptionReporter] :buildscripts:unspecified > com.csg:gcidPlugin:1.5.4
13:59:04.784 [ERROR] [org.gradle.BuildExceptionReporter]
13:59:04.788 [ERROR] [org.gradle.BuildExceptionReporter] * Exception is:
13:59:04.813 [ERROR] [org.gradle.BuildExceptionReporter] org.gradle.api.artifacts.ResolveException: Could not resolve all dependencies for configuration ':classpath'.
13:59:04.817 [ERROR] [org.gradle.BuildExceptionReporter] at org.gradle.api.internal.artifacts.ivyservice.DefaultLenientConfiguration.rethrowFailure(DefaultLenientConfiguration.java:52)
13:59:04.822 [ERROR] [org.gradle.BuildExceptionReporter] at org.gradle.api.internal.artifacts.ivyservice.DefaultResolvedConfiguration.rethrowFailure(DefaultResolvedConfiguration.java:39)
13:59:04.826 [ERROR] [org.gradle.BuildExceptionReporter] at org.gradle.api.internal.artifacts.ivyservice.SelfResolvingDependencyResolver$1.rethrowFailure(SelfResolvingDependencyResolver.java:86)
13:59:04.831 [ERROR] [org.gradle.BuildExceptionReporter] at org.gradle.api.internal.artifacts.ivyservice.ErrorHandlingArtifactDependencyResolver$ErrorHandlingResolvedConfiguration.rethrowFailure(ErrorHandlingArtifactDependencyResolver.java:71)
13:59:04.835 [ERROR] [org.gradle.BuildExceptionReporter] at org.gradle.api.internal.artifacts.configurations.DefaultConfiguration$ConfigurationFileCollection.getFiles(DefaultConfiguration.java:458)
13:59:04.840 [ERROR] [org.gradle.BuildExceptionReporter] at org.gradle.api.internal.artifacts.configurations.DefaultConfiguration.getFiles(DefaultConfiguration.java:203)
13:59:04.844 [ERROR] [org.gradle.BuildExceptionReporter] at org.gradle.api.internal.artifacts.configurations.DefaultConfiguration_Decorated.getFiles(Unknown Source)
13:59:04.849 [ERROR] [org.gradle.BuildExceptionReporter] at org.gradle.api.internal.initialization.DefaultScriptHandler.updateClassPath(DefaultScriptHandler.java:36)
13:59:04.853 [ERROR] [org.gradle.BuildExceptionReporter] at org.gradle.configuration.DefaultScriptPluginFactory$ScriptPluginImpl.apply(DefaultScriptPluginFactory.java:118)
13:59:04.858 [ERROR] [org.gradle.BuildExceptionReporter] at org.gradle.configuration.BuildScriptProcessor.evaluate(BuildScriptProcessor.java:38)
13:59:04.862 [ERROR] [org.gradle.BuildExceptionReporter] at org.gradle.configuration.LifecycleProjectEvaluator.evaluate(LifecycleProjectEvaluator.java:43)
13:59:04.866 [ERROR] [org.gradle.BuildExceptionReporter] at org.gradle.api.internal.project.AbstractProject.evaluate(AbstractProject.java:463)
13:59:04.870 [ERROR] [org.gradle.BuildExceptionReporter] at org.gradle.api.internal.project.AbstractProject.evaluate(AbstractProject.java:75)
13:59:04.874 [ERROR] [org.gradle.BuildExceptionReporter] at org.gradle.configuration.ProjectEvaluationConfigurer.execute(ProjectEvaluationConfigurer.java:23)
13:59:04.877 [ERROR] [org.gradle.BuildExceptionReporter] at org.gradle.configuration.ProjectEvaluationConfigurer.execute(ProjectEvaluationConfigurer.java:21)
13:59:04.881 [ERROR] [org.gradle.BuildExceptionReporter] at org.gradle.configuration.DefaultBuildConfigurer$1.execute(DefaultBuildConfigurer.java:38)
13:59:04.884 [ERROR] [org.gradle.BuildExceptionReporter] at org.gradle.configuration.DefaultBuildConfigurer$1.execute(DefaultBuildConfigurer.java:35)
13:59:04.888 [ERROR] [org.gradle.BuildExceptionReporter] at org.gradle.api.internal.project.AbstractProject.configure(AbstractProject.java:439)
13:59:04.891 [ERROR] [org.gradle.BuildExceptionReporter] at org.gradle.api.internal.project.AbstractProject.allprojects(AbstractProject.java:434)
13:59:04.894 [ERROR] [org.gradle.BuildExceptionReporter] at org.gradle.configuration.DefaultBuildConfigurer.configure(DefaultBuildConfigurer.java:35)
13:59:04.898 [ERROR] [org.gradle.BuildExceptionReporter] at org.gradle.initialization.DefaultGradleLauncher.doBuildStages(DefaultGradleLauncher.java:142)
13:59:04.901 [ERROR] [org.gradle.BuildExceptionReporter] at org.gradle.initialization.DefaultGradleLauncher.doBuild(DefaultGradleLauncher.java:113)
13:59:04.905 [ERROR] [org.gradle.BuildExceptionReporter] at org.gradle.initialization.DefaultGradleLauncher.run(DefaultGradleLauncher.java:81)
13:59:04.908 [ERROR] [org.gradle.BuildExceptionReporter] at org.gradle.launcher.cli.ExecuteBuildAction.run(ExecuteBuildAction.java:38)
13:59:04.912 [ERROR] [org.gradle.BuildExceptionReporter] at org.gradle.launcher.exec.InProcessGradleLauncherActionExecuter.execute(InProcessGradleLauncherActionExecuter.java:39)
13:59:04.915 [ERROR] [org.gradle.BuildExceptionReporter] at org.gradle.launcher.exec.InProcessGradleLauncherActionExecuter.execute(InProcessGradleLauncherActionExecuter.java:25)
13:59:04.919 [ERROR] [org.gradle.BuildExceptionReporter] at org.gradle.launcher.cli.RunBuildAction.run(RunBuildAction.java:50)
13:59:04.922 [ERROR] [org.gradle.BuildExceptionReporter] at org.gradle.launcher.cli.ActionAdapter.execute(ActionAdapter.java:30)
13:59:04.925 [ERROR] [org.gradle.BuildExceptionReporter] at org.gradle.launcher.cli.ActionAdapter.execute(ActionAdapter.java:22)
13:59:04.929 [ERROR] [org.gradle.BuildExceptionReporter] at org.gradle.launcher.cli.CommandLineActionFactory$ParseAndBuildAction.execute(CommandLineActionFactory.java:200)
13:59:04.932 [ERROR] [org.gradle.BuildExceptionReporter] at org.gradle.launcher.cli.CommandLineActionFactory$ParseAndBuildAction.execute(CommandLineActionFactory.java:173)
13:59:04.936 [ERROR] [org.gradle.BuildExceptionReporter] at org.gradle.launcher.cli.CommandLineActionFactory$WithLogging.execute(CommandLineActionFactory.java:169)
13:59:04.939 [ERROR] [org.gradle.BuildExceptionReporter] at org.gradle.launcher.cli.CommandLineActionFactory$WithLogging.execute(CommandLineActionFactory.java:138)
13:59:04.942 [ERROR] [org.gradle.BuildExceptionReporter] at org.gradle.launcher.cli.ExceptionReportingAction.execute(ExceptionReportingAction.java:33)
13:59:04.946 [ERROR] [org.gradle.BuildExceptionReporter] at org.gradle.launcher.cli.ExceptionReportingAction.execute(ExceptionReportingAction.java:22)
13:59:04.949 [ERROR] [org.gradle.BuildExceptionReporter] at org.gradle.launcher.Main.doAction(Main.java:48)
13:59:04.952 [ERROR] [org.gradle.BuildExceptionReporter] at org.gradle.launcher.bootstrap.EntryPoint.run(EntryPoint.java:45)
13:59:04.955 [ERROR] [org.gradle.BuildExceptionReporter] at org.gradle.launcher.Main.main(Main.java:39)
13:59:04.959 [ERROR] [org.gradle.BuildExceptionReporter] at org.gradle.launcher.bootstrap.ProcessBootstrap.runNoExit(ProcessBootstrap.java:50)
13:59:04.962 [ERROR] [org.gradle.BuildExceptionReporter] at org.gradle.launcher.bootstrap.ProcessBootstrap.run(ProcessBootstrap.java:32)
13:59:04.965 [ERROR] [org.gradle.BuildExceptionReporter] at org.gradle.launcher.GradleMain.main(GradleMain.java:26)
13:59:04.969 [ERROR] [org.gradle.BuildExceptionReporter] Cause 1: org.gradle.api.internal.artifacts.ivyservice.ModuleVersionNotFoundException: Could not find any version that matches group:org.jacoco, module:org.jacoco.core, version:0.6.+.



 Comments   
Comment by rupert thurner [ 21/Jan/13 ]

rm -rf .gradle, and run again resolves the issue. but when using it on a continuous integration server it is not practical at all, as one has to get command line access to do this.

Comment by Benjamin Muschko [ 15/Nov/16 ]

As announced on the Gradle blog we are planning to completely migrate issues from JIRA to GitHub.

We intend to prioritize issues that are actionable and impactful while working more closely with the community. Many of our JIRA issues are inactionable or irrelevant. We would like to request your help to ensure we can appropriately prioritize JIRA issues you’ve contributed to.

Please confirm that you still advocate for your JIRA issue before December 10th, 2016 by:

  • Checking that your issues contain requisite context, impact, behaviors, and examples as described in our published guidelines.
  • Leave a comment on the JIRA issue or open a new GitHub issue confirming that the above is complete.

We look forward to collaborating with you more closely on GitHub. Thank you for your contribution to Gradle!

Comment by Benjamin Muschko [ 24/Jan/17 ]

I am not sure how to reproduce the issue. It might simply be an issue with your network connection. Please open an issue on GitHub if you are still running into the issue with the latest version of Gradle.

Generated at Wed Jun 30 12:27:32 CDT 2021 using Jira 8.4.2#804003-sha1:d21414fc212e3af190e92c2d2ac41299b89402cf.