I vaguely remember some problematic Guava poms in the past, but it could also be a problem with Ivy too for certain poms. At least, with upgrading the artifacts to newer versions, you've worked around that problem!
On Mon, Jul 20, 2015 at 5:23 PM, KARR, DAVID <dk0...@att.com> wrote: > > -----Original Message----- > > From: KARR, DAVID > > Sent: Sunday, July 19, 2015 10:07 PM > > To: users@groovy.incubator.apache.org > > Subject: Diagnosing grapes download error? > > > > I have a Groovy script that is failing to download its Grape > > dependencies. I believe I've set my proxy correctly, and I also > > tried outside of our firewall, and got the same error. > > > > This is the beginning of my script: > > --------------------- > > #! /usr/bin/env groovy > > @Grapes([ > > @Grab("org.codehaus.geb:geb-core:0.7.0"), > > @Grab("org.seleniumhq.selenium:selenium-htmlunit- > > driver:2.23.1"), > > @Grab("org.seleniumhq.selenium:selenium-support:2.23.1") > > ]) > > import geb.Browser; > > ... > > ------------------ > > > > When I run this (Groovy Version: 2.4.3 JVM: 1.7.0_51 Vendor: Oracle > > Corporation OS: Windows 7), I get the following: > > --------------- > > org.codehaus.groovy.control.MultipleCompilationErrorsException: > > startup failed: > > General error during conversion: Error grabbing Grapes -- [download > > failed: com.google.guava#guava;12.0!guava.jar, download failed: > > com.google.code.findbugs#jsr305;1.3.9!jsr305.jar, download failed: > > xml-apis#xml-apis;1.3.04!xml-apis.jar, download failed: commons- > > collections#commons-collections;3.2.1!commons-collections.jar, > > download failed: commons-lang#commons-lang;2.6!commons-lang.jar, > > download failed: commons-logging#commons-logging;1.1.1!commons- > > logging.jar] > > > > java.lang.RuntimeException: Error grabbing Grapes -- [download > > failed: com.google.guava#guava;12.0!guava.jar, download failed: > > com.google.code.findbugs#jsr305;1.3.9!jsr305.jar, download failed: > > xml-apis#xml-apis;1.3.04!xml-apis.jar, download failed: commons- > > collections#commons-collections;3.2.1!commons-collections.jar, > > download failed: commons-lang#commons-lang;2.6!commons-lang.jar, > > download failed: commons-logging#commons-logging;1.1.1!commons- > > logging.jar] > > at > > sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native > > Method) > > at > > sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstru > > ctorAccessorImpl.java:57) > > at > > sun.reflect.DelegatingConstructorAccessorImpl.newInstance(Delegatin > > gConstructorAccessorImpl.java:45) > > at > > java.lang.reflect.Constructor.newInstance(Constructor.java:526) > > at > > org.codehaus.groovy.reflection.CachedConstructor.invoke(CachedConst > > ructor.java:77) > > at > > org.codehaus.groovy.reflection.CachedConstructor.doConstructorInvok > > e(CachedConstructor.java:71) > > at > > org.codehaus.groovy.runtime.callsite.ConstructorSite$ConstructorSit > > eNoUnwrap.callConstructor(ConstructorSite.java:81) > > at > > org.codehaus.groovy.runtime.callsite.CallSiteArray.defaultCallConst > > ructor(CallSiteArray.java:57) > > at > > org.codehaus.groovy.runtime.callsite.AbstractCallSite.callConstruct > > or(AbstractCallSite.java:232) > > at > > org.codehaus.groovy.runtime.callsite.AbstractCallSite.callConstruct > > or(AbstractCallSite.java:244) > > at groovy.grape.GrapeIvy.getDependencies(GrapeIvy.groovy:418) > > at sun.reflect.NativeMethodAccessorImpl.invoke0(Native > > Method) > > --------------------- > > > > What might be going on here? > > Clearing the Grapes cache didn't make any difference. > > It appears this is all due to this script referencing "older" artifacts, > and it appears that the transitive dependencies of those artifacts simply > could not be found. Once I upgraded the primary artifacts to the latest > versions, these dependency issues went away. > > -- Guillaume Laforge Groovy Project Manager Product Ninja & Advocate at Restlet <http://restlet.com> Blog: http://glaforge.appspot.com/ Social: @glaforge <http://twitter.com/glaforge> / Google+ <https://plus.google.com/u/0/114130972232398734985/posts>