在groovy代码中使用http-builder获取java.lang.RuntimeException:获取Grapes时出错

时间:2014-10-13 11:32:02

标签: java groovy

在我的Groovy代码中,我使用了Grapes

@Grapes([
   @Grab(group='org.slf4j', module='slf4j-api', version='1.6.1'),
   @Grab(group='ch.qos.logback', module='logback-classic', version='1.0.13'),
   @Grab(group='ch.qos.logback', module='logback-core', version='1.0.13'),
   @Grab(group='org.codehaus.groovy.modules.http-builder', module='http-builder', version='0.7'),
   @Grab(group='net.sf.json-lib', module='json-lib', version='0.9')
])

但在运行时低于错误

Caught: java.lang.ExceptionInInitializerError java.lang.ExceptionInInitializerError Caused by: java.lang.RuntimeException: Error grabbing Grapes -- [download failed: commons-logging#commons-logging;1.1!commons-logging.jar, download failed: logkit#logkit;1.0.1!logkit.jar, download failed: avalon-framework#avalon-framework;4.1.3!avalon-framework.jar, download failed: javax.servlet#servlet-api;2.3!servlet-api.jar]

0 个答案:

没有答案