groovy脚本中httpbuilder的未解析依赖项

groovy脚本中httpbuilder的未解析依赖项,groovy,automation,soapui,Groovy,Automation,Soapui,我正在尝试在soapui中使用groovy脚本实现自动化,因为我想使用HTTPBuilder。我编写了这样的代码 @Grab(group='org.codehaus.groovy.modules.http-builder',modules='http-builder',version='0.5.2') import statements 但当我运行此程序时,它会显示以下异常: org.codehaus.groovy.control.multipleCompilationErrorExcepti

我正在尝试在soapui中使用groovy脚本实现自动化,因为我想使用HTTPBuilder。我编写了这样的代码

@Grab(group='org.codehaus.groovy.modules.http-builder',modules='http-builder',version='0.5.2')
import statements
但当我运行此程序时,它会显示以下异常:

org.codehaus.groovy.control.multipleCompilationErrorException:startup-failed Error Grabbing grape[unresolved dependency]javaRuntimeException
为什么我会犯这个错误。是否存在代理问题?如果是,请在何处添加?请帮助我解决此问题

SOAPUI默认不支持Grapes作为依赖项管理,因此
@Grab
注释不起作用

使用
httpbuilder
的另一种方法是下载所有必要的库并将其放在
SOAPUI\u HOME/bin/ext
目录下,重新启动SOAPUI以加载它。然后可以在Groovy脚本testStep上使用它添加必要的导入等


希望这能有所帮助,

是的,我终于这样做了。谢谢。我当然喜欢,但我不能,因为我的名声不到15:(