Capture error Grapes - dependency not found
I have a groovy file that has the following code:
@Grab(group='org.codehaus.groovy.modules.http-builder', module='http-builder', version='0.7' )
I am trying to download dependencies for use HTTPBuilder
..
But it shows me an error like this:
Error grabbing Grapes -- [download failed: org.apache.httpcomponents#httpclient;4.2.1!httpclient.jar,download failed: org.apache.httpcomponents#httpcore;4.2.1!httpcore.jar, download failed: commons-codec#commons-codec;1.6!commons-codec.jar, download failed: commons-beanutils#commons-beanutils;1.8.0!commons-beanutils.jar, download failed: commons-lang#commons-lang;2.4!commons-lang.jar]
I tried to resolve this Grape dependency using the following command on the command line:
grape resolve org.codehaus.groovy.modules.http-builder http-builder 0.7.2
and also tried the following:
grape install org.codehaus.groovy.modules.http-builder http-builder 0.7.2
then it also shows me the same error. Can you help me solve this problem? I am using groovy version2.2.2
+3
source to share
1 answer
From the cfrick link mentioned in the comment,
I created grapeConfig.xml as mentioned in the accepted answer for the link ( Groovy - Grab - download failed )
and successfully get all dependencies on my system. That's what I was looking for.
+4
source to share