[GRADLE-1548] Cannot run 'gradle eclipse' successfully - insists dependencies are not found Created: 16/May/11 Updated: 04/Jan/13 Resolved: 29/May/11 |
|
Status: | Resolved |
Project: | Gradle |
Affects Version/s: | 1.0-milestone-3, 1.0-milestone-4 |
Fix Version/s: | None |
Type: | Bug | ||
Reporter: | Andrew Thorburn | Assignee: | Unassigned |
Resolution: | Duplicate | Votes: | 0 |
Description |
I am unable to successfully run 'gradle eclipse'. When I attempt to do so, it produces the following error: 19:04:49.451 [ERROR] [org.gradle.BuildExceptionReporter] * Exception is: 19:04:49.451 [ERROR] [org.gradle.BuildExceptionReporter] org.gradle.api.tasks.TaskExecutionException: Execution failed for task ':mms:eclipseClasspath'. 19:04:49.452 [ERROR] [org.gradle.BuildExceptionReporter] at org.gradle.api.internal.tasks.execution.ExecuteActionsTaskExecuter.executeActions(ExecuteActionsTaskExecuter.java:71) 19:04:49.452 [ERROR] [org.gradle.BuildExceptionReporter] at org.gradle.api.internal.tasks.execution.ExecuteActionsTaskExecuter.execute(ExecuteActionsTaskExecuter.java:48) 19:04:49.452 [ERROR] [org.gradle.BuildExceptionReporter] at org.gradle.api.internal.tasks.execution.PostExecutionAnalysisTaskExecuter.execute(PostExecutionAnalysisTaskExecuter.java:34) 19:04:49.452 [ERROR] [org.gradle.BuildExceptionReporter] at org.gradle.api.internal.tasks.execution.SkipUpToDateTaskExecuter.execute(SkipUpToDateTaskExecuter.java:55) 19:04:49.452 [ERROR] [org.gradle.BuildExceptionReporter] at org.gradle.api.internal.tasks.execution.ValidatingTaskExecuter.execute(ValidatingTaskExecuter.java:57) 19:04:49.453 [ERROR] [org.gradle.BuildExceptionReporter] at org.gradle.api.internal.tasks.execution.SkipEmptySourceFilesTaskExecuter.execute(SkipEmptySourceFilesTaskExecuter.java:41) 19:04:49.485 [ERROR] [org.gradle.BuildExceptionReporter] at org.gradle.api.internal.tasks.execution.SkipTaskWithNoActionsExecuter.execute(SkipTaskWithNoActionsExecuter.java:51) 19:04:49.486 [ERROR] [org.gradle.BuildExceptionReporter] at org.gradle.api.internal.tasks.execution.SkipOnlyIfTaskExecuter.execute(SkipOnlyIfTaskExecuter.java:52) 19:04:49.486 [ERROR] [org.gradle.BuildExceptionReporter] at org.gradle.api.internal.tasks.execution.ExecuteAtMostOnceTaskExecuter.execute(ExecuteAtMostOnceTaskExecuter.java:42) 19:04:49.486 [ERROR] [org.gradle.BuildExceptionReporter] at org.gradle.api.internal.AbstractTask.execute(AbstractTask.java:237) 19:04:49.486 [ERROR] [org.gradle.BuildExceptionReporter] at org.gradle.execution.DefaultTaskGraphExecuter.executeTask(DefaultTaskGraphExecuter.java:167) 19:04:49.487 [ERROR] [org.gradle.BuildExceptionReporter] at org.gradle.execution.DefaultTaskGraphExecuter.doExecute(DefaultTaskGraphExecuter.java:160) 19:04:49.487 [ERROR] [org.gradle.BuildExceptionReporter] at org.gradle.execution.DefaultTaskGraphExecuter.execute(DefaultTaskGraphExecuter.java:78) 19:04:49.487 [ERROR] [org.gradle.BuildExceptionReporter] at org.gradle.execution.TaskNameResolvingBuildExecuter.execute(TaskNameResolvingBuildExecuter.java:113) 19:04:49.487 [ERROR] [org.gradle.BuildExceptionReporter] at org.gradle.execution.DelegatingBuildExecuter.execute(DelegatingBuildExecuter.java:54) 19:04:49.488 [ERROR] [org.gradle.BuildExceptionReporter] at org.gradle.initialization.DefaultGradleLauncher.doBuildStages(DefaultGradleLauncher.java:158) 19:04:49.488 [ERROR] [org.gradle.BuildExceptionReporter] at org.gradle.initialization.DefaultGradleLauncher.doBuild(DefaultGradleLauncher.java:112) 19:04:49.488 [ERROR] [org.gradle.BuildExceptionReporter] at org.gradle.initialization.DefaultGradleLauncher.run(DefaultGradleLauncher.java:80) 19:04:49.488 [ERROR] [org.gradle.BuildExceptionReporter] at org.gradle.launcher.RunBuildAction.execute(RunBuildAction.java:41) 19:04:49.489 [ERROR] [org.gradle.BuildExceptionReporter] at org.gradle.launcher.RunBuildAction.execute(RunBuildAction.java:27) 19:04:49.489 [ERROR] [org.gradle.BuildExceptionReporter] at org.gradle.launcher.ExceptionReportingAction.execute(ExceptionReportingAction.java:32) 19:04:49.489 [ERROR] [org.gradle.BuildExceptionReporter] at org.gradle.launcher.ExceptionReportingAction.execute(ExceptionReportingAction.java:21) 19:04:49.489 [ERROR] [org.gradle.BuildExceptionReporter] at org.gradle.launcher.CommandLineActionFactory$WithLoggingAction.execute(CommandLineActionFactory.java:219) 19:04:49.531 [ERROR] [org.gradle.BuildExceptionReporter] at org.gradle.launcher.CommandLineActionFactory$WithLoggingAction.execute(CommandLineActionFactory.java:203) 19:04:49.531 [ERROR] [org.gradle.BuildExceptionReporter] at org.gradle.launcher.Main.execute(Main.java:55) 19:04:49.531 [ERROR] [org.gradle.BuildExceptionReporter] at org.gradle.launcher.Main.main(Main.java:40) 19:04:49.532 [ERROR] [org.gradle.BuildExceptionReporter] at org.gradle.launcher.ProcessBootstrap.runNoExit(ProcessBootstrap.java:49) 19:04:49.532 [ERROR] [org.gradle.BuildExceptionReporter] at org.gradle.launcher.ProcessBootstrap.run(ProcessBootstrap.java:31) 19:04:49.532 [ERROR] [org.gradle.BuildExceptionReporter] at org.gradle.launcher.GradleMain.main(GradleMain.java:24) 19:04:49.532 [ERROR] [org.gradle.BuildExceptionReporter] Caused by: org.gradle.api.artifacts.ResolveException: Could not resolve all dependencies for configuration 'detachedConfiguration1': 19:04:49.533 [ERROR] [org.gradle.BuildExceptionReporter] - unresolved dependency: #struts;: not found [[ OTHER DEPENDENCIES REDACTED ]] 19:04:49.630 [ERROR] [org.gradle.BuildExceptionReporter] 19:04:49.630 [ERROR] [org.gradle.BuildExceptionReporter] at org.gradle.api.internal.artifacts.ivyservice.DefaultIvyDependencyResolver$ResolvedConfigurationImpl.rethrowFailure(DefaultIvyDependencyResolver.java:100) 19:04:49.631 [ERROR] [org.gradle.BuildExceptionReporter] at org.gradle.api.internal.artifacts.ivyservice.SelfResolvingDependencyResolver$1.rethrowFailure(SelfResolvingDependencyResolver.java:78) 19:04:49.631 [ERROR] [org.gradle.BuildExceptionReporter] at org.gradle.api.internal.artifacts.ivyservice.ErrorHandlingIvyService$ErrorHandlingResolvedConfiguration.rethrowFailure(ErrorHandlingIvyService.java:80) 19:04:49.631 [ERROR] [org.gradle.BuildExceptionReporter] at org.gradle.api.internal.artifacts.configurations.DefaultConfiguration$ConfigurationFileCollection.getFiles(DefaultConfiguration.java:477) 19:04:49.632 [ERROR] [org.gradle.BuildExceptionReporter] at org.gradle.api.internal.artifacts.configurations.DefaultConfiguration.getFiles(DefaultConfiguration.java:169) 19:04:49.632 [ERROR] [org.gradle.BuildExceptionReporter] at org.gradle.plugins.ide.eclipse.model.internal.ClasspathFactory.getFiles(ClasspathFactory.groovy:137) 19:04:49.632 [ERROR] [org.gradle.BuildExceptionReporter] at org.gradle.plugins.ide.eclipse.model.internal.ClasspathFactory.this$2$getFiles(ClasspathFactory.groovy) 19:04:49.633 [ERROR] [org.gradle.BuildExceptionReporter] at org.gradle.plugins.ide.eclipse.model.internal.ClasspathFactory$this$2$getFiles.callCurrent(Unknown Source) 19:04:49.633 [ERROR] [org.gradle.BuildExceptionReporter] at org.gradle.plugins.ide.eclipse.model.internal.ClasspathFactory.getLibraries(ClasspathFactory.groovy:65) 19:04:49.633 [ERROR] [org.gradle.BuildExceptionReporter] at org.gradle.plugins.ide.eclipse.model.internal.ClasspathFactory.getDependencies(ClasspathFactory.groovy:50) 19:04:49.634 [ERROR] [org.gradle.BuildExceptionReporter] at org.gradle.plugins.ide.eclipse.model.internal.ClasspathFactory.this$2$getDependencies(ClasspathFactory.groovy) 19:04:49.634 [ERROR] [org.gradle.BuildExceptionReporter] at org.gradle.plugins.ide.eclipse.model.internal.ClasspathFactory$this$2$getDependencies.callCurrent(Unknown Source) 19:04:49.672 [ERROR] [org.gradle.BuildExceptionReporter] at org.gradle.plugins.ide.eclipse.model.internal.ClasspathFactory.createEntries(ClasspathFactory.groovy:36) 19:04:49.672 [ERROR] [org.gradle.BuildExceptionReporter] at org.gradle.plugins.ide.eclipse.model.internal.ClasspathFactory$createEntries.call(Unknown Source) 19:04:49.672 [ERROR] [org.gradle.BuildExceptionReporter] at org.gradle.plugins.ide.eclipse.model.EclipseClasspath.resolveDependencies(EclipseClasspath.groovy:175) 19:04:49.672 [ERROR] [org.gradle.BuildExceptionReporter] at org.gradle.plugins.ide.eclipse.model.EclipseClasspath$resolveDependencies.callCurrent(Unknown Source) 19:04:49.673 [ERROR] [org.gradle.BuildExceptionReporter] at org.gradle.plugins.ide.eclipse.model.EclipseClasspath.mergeXmlClasspath(EclipseClasspath.groovy:203) 19:04:49.673 [ERROR] [org.gradle.BuildExceptionReporter] at org.gradle.plugins.ide.eclipse.model.EclipseClasspath$mergeXmlClasspath.call(Unknown Source) 19:04:49.673 [ERROR] [org.gradle.BuildExceptionReporter] at org.gradle.plugins.ide.eclipse.GenerateEclipseClasspath.configure(GenerateEclipseClasspath.groovy:55) 19:04:49.674 [ERROR] [org.gradle.BuildExceptionReporter] at org.gradle.plugins.ide.eclipse.GenerateEclipseClasspath.configure(GenerateEclipseClasspath.groovy) 19:04:49.674 [ERROR] [org.gradle.BuildExceptionReporter] at org.gradle.plugins.ide.api.XmlGeneratorTask$1.configure(XmlGeneratorTask.java:40) 19:04:49.674 [ERROR] [org.gradle.BuildExceptionReporter] at org.gradle.plugins.ide.api.XmlGeneratorTask$1.configure(XmlGeneratorTask.java:34) 19:04:49.675 [ERROR] [org.gradle.BuildExceptionReporter] at org.gradle.plugins.ide.api.GeneratorTask.generate(GeneratorTask.java:69) 19:04:49.675 [ERROR] [org.gradle.BuildExceptionReporter] at org.gradle.api.internal.BeanDynamicObject.invokeMethod(BeanDynamicObject.java:158) 19:04:49.675 [ERROR] [org.gradle.BuildExceptionReporter] at org.gradle.api.internal.CompositeDynamicObject.invokeMethod(CompositeDynamicObject.java:93) 19:04:49.676 [ERROR] [org.gradle.BuildExceptionReporter] at org.gradle.plugins.ide.eclipse.GenerateEclipseClasspath_Decorated.invokeMethod(Unknown Source) 19:04:49.676 [ERROR] [org.gradle.BuildExceptionReporter] at org.gradle.util.ReflectionUtil.invoke(ReflectionUtil.groovy:23) 19:04:49.676 [ERROR] [org.gradle.BuildExceptionReporter] at org.gradle.api.internal.project.taskfactory.AnnotationProcessingTaskFactory$2.execute(AnnotationProcessingTaskFactory.java:129) 19:04:49.719 [ERROR] [org.gradle.BuildExceptionReporter] at org.gradle.api.internal.project.taskfactory.AnnotationProcessingTaskFactory$2.execute(AnnotationProcessingTaskFactory.java:127) 19:04:49.719 [ERROR] [org.gradle.BuildExceptionReporter] at org.gradle.api.internal.tasks.execution.ExecuteActionsTaskExecuter.executeActions(ExecuteActionsTaskExecuter.java:63) 19:04:49.719 [ERROR] [org.gradle.BuildExceptionReporter] ... 28 more Looking at the Debug logging, I see that it does, in fact, find the dependencies. What it cannot find is the Source JAR: 19:04:41.636 [DEBUG] [org.gradle.api.internal.artifacts.ivyservice.IvyLoggingAdaper] == resolving dependencies [REDACTED]#mms;1.0->#struts; [providedCompile->default] 19:04:41.640 [DEBUG] [org.gradle.api.internal.artifacts.ivyservice.IvyLoggingAdaper] loadData of #struts; of rootConf=testRuntime 19:04:41.640 [DEBUG] [org.gradle.api.internal.artifacts.ivyservice.IvyLoggingAdaper] using clientModuleChain to resolve #struts; 19:04:41.641 [DEBUG] [org.gradle.api.internal.artifacts.ivyservice.IvyLoggingAdaper] clientModuleChain: Checking cache for: dependency: #struts; {providedCompile=[default]} 19:04:41.641 [DEBUG] [org.gradle.api.internal.artifacts.ivyservice.IvyLoggingAdaper] chain: Checking cache for: dependency: #struts; {providedCompile=[default]} 19:04:41.642 [DEBUG] [org.gradle.api.internal.artifacts.ivyservice.IvyLoggingAdaper] trying /home/andrew/[REDACTED]/mms/src/main/webapp/WEB-INF/lib/struts-.jar 19:04:41.642 [DEBUG] [org.gradle.api.internal.artifacts.ivyservice.IvyLoggingAdaper] tried /home/andrew/[REDACTED]/mms/src/main/webapp/WEB-INF/lib/struts-.jar 19:04:41.642 [DEBUG] [org.gradle.api.internal.artifacts.ivyservice.IvyLoggingAdaper] mms: resource not reachable for #struts;: res=/home/andrew/[REDACTED]/mms/src/main/webapp/WEB-INF/lib/struts-.jar 19:04:41.643 [DEBUG] [org.gradle.api.internal.artifacts.ivyservice.IvyLoggingAdaper] trying /home/andrew/[REDACTED]/mms/src/main/webapp/WEB-INF/lib/struts.jar 19:04:41.643 [DEBUG] [org.gradle.api.internal.artifacts.ivyservice.IvyLoggingAdaper] tried /home/andrew/[REDACTED]/mms/src/main/webapp/WEB-INF/lib/struts.jar 19:04:41.643 [DEBUG] [org.gradle.api.internal.artifacts.ivyservice.IvyLoggingAdaper] mms: no ivy file found for #struts;: using default data 19:04:41.644 [DEBUG] [org.gradle.api.internal.artifacts.ivyservice.IvyLoggingAdaper] checking #struts;[default] from mms against [none] 19:04:41.684 [DEBUG] [org.gradle.api.internal.artifacts.ivyservice.IvyLoggingAdaper] module revision kept as first found: #struts;[default] from mms 19:04:41.685 [INFO] [org.gradle.api.internal.artifacts.ivyservice.IvyLoggingAdaper] found #struts; in mms [[ HUNDRED OR MORE LINES LATER ]] 19:04:43.901 [DEBUG] [org.gradle.api.internal.artifacts.ivyservice.IvyLoggingAdaper] == resolving dependencies [[REDACTED]]#mms;1.0->#struts; [detachedConfiguration1->default] 19:04:43.904 [DEBUG] [org.gradle.api.internal.artifacts.ivyservice.IvyLoggingAdaper] loadData of #struts; of rootConf=detachedConfiguration1 19:04:43.904 [DEBUG] [org.gradle.api.internal.artifacts.ivyservice.IvyLoggingAdaper] using clientModuleChain to resolve #struts; 19:04:43.904 [DEBUG] [org.gradle.api.internal.artifacts.ivyservice.IvyLoggingAdaper] clientModuleChain: Checking cache for: dependency: #struts; {detachedConfiguration1=[default]} 19:04:43.905 [DEBUG] [org.gradle.api.internal.artifacts.ivyservice.IvyLoggingAdaper] clientModuleChain: no namespace defined: using system 19:04:43.905 [DEBUG] [org.gradle.api.internal.artifacts.ivyservice.IvyLoggingAdaper] clientModuleChain: no latest strategy defined: using default 19:04:43.905 [DEBUG] [org.gradle.api.internal.artifacts.ivyservice.IvyLoggingAdaper] chain: Checking cache for: dependency: #struts; {detachedConfiguration1=[default]} 19:04:43.905 [DEBUG] [org.gradle.api.internal.artifacts.ivyservice.IvyLoggingAdaper] chain: no namespace defined: using system 19:04:43.906 [DEBUG] [org.gradle.api.internal.artifacts.ivyservice.IvyLoggingAdaper] chain: no latest strategy defined: using default 19:04:43.906 [DEBUG] [org.gradle.api.internal.artifacts.ivyservice.IvyLoggingAdaper] trying /home/andrew/[REDACTED]/mms/src/main/webapp/WEB-INF/lib/struts--sources.jar 19:04:43.906 [DEBUG] [org.gradle.api.internal.artifacts.ivyservice.IvyLoggingAdaper] tried /home/andrew/[REDACTED]/mms/src/main/webapp/WEB-INF/lib/struts--sources.jar 19:04:43.940 [DEBUG] [org.gradle.api.internal.artifacts.ivyservice.IvyLoggingAdaper] mms: resource not reachable for #struts;: res=/home/andrew/[REDACTED]/mms/src/main/webapp/WEB-INF/lib/struts--sources.jar 19:04:43.941 [DEBUG] [org.gradle.api.internal.artifacts.ivyservice.IvyLoggingAdaper] trying /home/andrew/[REDACTED]/mms/src/main/webapp/WEB-INF/lib/struts-sources.jar 19:04:43.941 [DEBUG] [org.gradle.api.internal.artifacts.ivyservice.IvyLoggingAdaper] tried /home/andrew/[REDACTED]/mms/src/main/webapp/WEB-INF/lib/struts-sources.jar 19:04:43.941 [DEBUG] [org.gradle.api.internal.artifacts.ivyservice.IvyLoggingAdaper] mms: resource not reachable for #struts;: res=/home/andrew/[REDACTED]/mms/src/main/webapp/WEB-INF/lib/struts-sources.jar 19:04:43.941 [DEBUG] [org.gradle.api.internal.artifacts.ivyservice.IvyLoggingAdaper] trying /home/andrew/[REDACTED]/misclib/struts--sources.jar 19:04:43.942 [DEBUG] [org.gradle.api.internal.artifacts.ivyservice.IvyLoggingAdaper] tried /home/andrew/[REDACTED]/misclib/struts--sources.jar 19:04:43.942 [DEBUG] [org.gradle.api.internal.artifacts.ivyservice.IvyLoggingAdaper] mms: resource not reachable for #struts;: res=/home/andrew/[REDACTED]/misclib/struts--sources.jar 19:04:43.942 [DEBUG] [org.gradle.api.internal.artifacts.ivyservice.IvyLoggingAdaper] trying /home/andrew/[REDACTED]/misclib/struts-sources.jar 19:04:43.943 [DEBUG] [org.gradle.api.internal.artifacts.ivyservice.IvyLoggingAdaper] tried /home/andrew/[REDACTED]/misclib/struts-sources.jar 19:04:43.943 [DEBUG] [org.gradle.api.internal.artifacts.ivyservice.IvyLoggingAdaper] mms: resource not reachable for #struts;: res=/home/andrew/[REDACTED]/misclib/struts-sources.jar 19:04:43.989 [DEBUG] [org.gradle.api.internal.artifacts.ivyservice.IvyLoggingAdaper] mms: no ivy file nor artifact found for #struts; 19:04:43.990 [DEBUG] [org.gradle.api.internal.artifacts.ivyservice.IvyLoggingAdaper] WARN: module not found: #struts; 19:04:43.990 [DEBUG] [org.gradle.api.internal.artifacts.ivyservice.IvyLoggingAdaper] WARN: ==== clientModule: tried 19:04:43.991 [DEBUG] [org.gradle.api.internal.artifacts.ivyservice.IvyLoggingAdaper] WARN: ==== internal-repository: tried 19:04:43.991 [DEBUG] [org.gradle.api.internal.artifacts.ivyservice.IvyLoggingAdaper] WARN: ==== mms: tried 19:04:43.991 [DEBUG] [org.gradle.api.internal.artifacts.ivyservice.IvyLoggingAdaper] WARN: -- artifact #struts;!struts.jar(source): 19:04:43.991 [DEBUG] [org.gradle.api.internal.artifacts.ivyservice.IvyLoggingAdaper] WARN: /home/andrew/[REDACTED]/mms/src/main/webapp/WEB-INF/lib/struts--sources.jar 19:04:43.992 [DEBUG] [org.gradle.api.internal.artifacts.ivyservice.IvyLoggingAdaper] WARN: /home/andrew/[REDACTED]/mms/src/main/webapp/WEB-INF/lib/struts-sources.jar 19:04:43.992 [DEBUG] [org.gradle.api.internal.artifacts.ivyservice.IvyLoggingAdaper] WARN: /home/andrew/[REDACTED]/misclib/struts--sources.jar 19:04:43.992 [DEBUG] [org.gradle.api.internal.artifacts.ivyservice.IvyLoggingAdaper] WARN: /home/andrew/[REDACTED]/misclib/struts-sources.jar In this particular situation, I am loading dependencies out of an existing, simple file-based structure. This is not an Ivy repository in any way, just a whole bunch of JAR files that are stored in SVN. Ideally they'd be migrated over to Ivy, but that's a good chunk of work, and I'd like to ensure Gradle works for us before I consider that. I have tried this with the latest version of Gradle (That is, I have cloned the Git repo, and I'm pretty sure that git fetch is all I need to do to get me up to date, right?). This also worked (well, didn't throw an error, at least), in Gradle M1. This is currently blocking my ability to test the Gradle Plugin for Eclipse as well, since it seems to rely on this plugin to build the classpath for it. Please let me know if there's anything else you need. |
Comments |
Comment by Andrew Thorburn [ 17/May/11 ] |
Tried using Git Bisect to figure out why this might have changed, but I'm getting 'File name too long' errors with older revisions (Newer ones work fine, so that must have been a bug that was fixed at some point) |
Comment by Andrew Thorburn [ 29/May/11 ] |
This issue is a duplicate of 1157. Not sure why I didn't see that when searching earlier. |
Comment by Szczepan Faber [ 29/May/11 ] |
Duplicate of |