So, if I wanted a command line web scraper with geb, and tried to use @Grab 
and got:

General error during conversion: Error grabbing Grapes -- [download failed: 
commons-io#commons-io;2.4!commons-io.jar]

but the https://github.com/geb/geb-example-gradle build works fine, that's 
likely some issue with Grab not supporting some special characters 
somewhere?

  

On Tuesday, June 7, 2016 at 3:11:21 AM UTC-4, Marcin Erdmann wrote:
>
> You need more Geb modules in your classpath. If you're a masochist then 
> you can have a look at the pom of geb-core and work out which dependencies 
> it has, there might be some that are transitive. Otherwise use a build 
> system to resolve your dependencies. I personally prefer Gradle but for the 
> purpose of resolving deps Maven will do just fine. If this thing will never 
> get serious and will stay a script forever then your third choice might 
> be using Groovy's @Grab annotation(s).
>
> On Tuesday, 7 June 2016, Sean Lanter <seanl...@gmail.com <javascript:>> 
> wrote:
>
>> I have a 2-line script "example.groovy" that does nothing more than 
>> create a default Browser:
>>
>>    import geb.Browser
>>    def browser = new Browser()
>>
>> When I run it as follows:
>>
>>    groovy -cp 
>> geb-core-0.13.1.jar:selenium-server-standalone-2.53.0.jar:.  example.groovy
>>
>> this is what comes back:
>>
>>    Caught: java.lang.NoClassDefFoundError: geb/error/UnableToLoadException
>>    java.lang.NoClassDefFoundError: geb/error/UnableToLoadException
>>        at geb.Browser.<init>(Browser.groovy:58)
>>        at example.run(example.groovy:2)
>>
>> The script and the two jars file are all in the same directory.
>>
>> I am certain I am missing something obvious...  Can someone point out 
>> what I am overlooking?
>>
>> TIA!
>>
>>
>> -- 
>> You received this message because you are subscribed to the Google Groups 
>> "Geb User Mailing List" group.
>> To unsubscribe from this group and stop receiving emails from it, send an 
>> email to geb-user+unsubscr...@googlegroups.com.
>> To post to this group, send email to geb-user@googlegroups.com.
>> To view this discussion on the web visit 
>> https://groups.google.com/d/msgid/geb-user/94dcf964-a3a4-4443-81a2-e141a4b015ec%40googlegroups.com
>>  
>> <https://groups.google.com/d/msgid/geb-user/94dcf964-a3a4-4443-81a2-e141a4b015ec%40googlegroups.com?utm_medium=email&utm_source=footer>
>> .
>> For more options, visit https://groups.google.com/d/optout.
>>
>

-- 
You received this message because you are subscribed to the Google Groups "Geb 
User Mailing List" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to geb-user+unsubscr...@googlegroups.com.
To post to this group, send email to geb-user@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/geb-user/3fe5318a-4cff-40d7-8742-9304de69ed7f%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to