Grapes do not work in Eclipse

groovy eclipse plugin version: 1.7.5.xx-20101020-1000-e36-release.

import com.jidesoft.swing.JideSplitButton @Grab(group='com.jidesoft', module='jide-oss', version='[2.2.1,2.3.0)') public class TestClassAnnotation { public static String testMethod () { return JideSplitButton.class.name } } new TestClassAnnotation().testMethod() 

first line error: Groovy: cannot resolve class com.jidesoft.swing.JideSplitButton

it may work like a groovy shell, but an error warning matters

+7
source share
3 answers

When I compile this in the editor, I get the same error as I do when I compile or run from the command line:

 org.codehaus.groovy.control.MultipleCompilationErrorsException: startup failed: General error during conversion: Error grabbing Grapes -- [unresolved dependency: com.jidesoft#jide-oss;[2.2.1,2.3.0): not found] (and then a very long stack trace) 

Is that what you see?

0
source

I'm pretty late to this question, but I'm curious @Grab(group='com.jidesoft', module='jide-oss', version='[2.2.1,2.3.0)')
should not be @Grab(group='com.jidesoft', module='jide-oss', version='[2.2.1,2.3.0]')

It looks like a syntax error when groovy is waiting for a list to be passed.

0
source

Try putting @Grab right above the import statement. Similar:

  @Grab(group='com.jidesoft', module='jide-oss',version='[2.2.1,2.3.0]') import com.jidesoft.swing.JideSplitButton ... your code continues here 
0
source

All Articles