groovy - Get Grape grabbing dependencies from Artifactory -
i have next script (run jenkins job) cannot download dependencies!
groovy.grape.report.downloads useful in telling me it's attempting download. how can grape tell me trying download from?
is there wrong grabresolver setting? assuming name name , otherwise meaningless.
the script:
@grabresolver(name='artifactory', root='http://artifactory:8081/artifactory/repo1', m2compatible=true) @grapes([ @grab('org.codehaus.groovy.modules.http-builder:http-builder:0.7.2'), @grab('net.sf.json-lib:json-lib:2.4') ]) import groovy.text.simpletemplateengine import groovyx.net.http.restclient import net.sf.json.json println "ready?" ...
output jenkins console:
[smartviewer-trial] $ c:\jenkins\tools\hudson.plugins.groovy.groovyinstallation\groovy_2.3.7\groovy-2.3.7\bin\groovy.bat -dgroovy.grape.report.downloads=true c:\jenkins\workspace\smartviewer-trial\hudson4531449279742183970.groovy resolving dependency: net.sf.json-lib#json-lib;2.4 {default=[default]} resolving dependency: org.codehaus.groovy.modules.http-builder#http-builder;0.6 {default=[default]} preparing download artifact net.sf.json-lib#json-lib;2.4!json-lib.jar preparing download artifact org.codehaus.groovy.modules.http-builder#http-builder;0.6!http-builder.jar preparing download artifact commons-beanutils#commons-beanutils;1.8.0!commons-beanutils.jar preparing download artifact commons-collections#commons-collections;3.2.1!commons-collections.jar preparing download artifact commons-lang#commons-lang;2.5!commons-lang.jar preparing download artifact commons-logging#commons-logging;1.1.1!commons-logging.jar preparing download artifact net.sf.ezmorph#ezmorph;1.0.6!ezmorph.jar preparing download artifact org.apache.httpcomponents#httpclient;4.2.1!httpclient.jar preparing download artifact net.sourceforge.nekohtml#nekohtml;1.9.16!nekohtml.jar preparing download artifact xml-resolver#xml-resolver;1.2!xml-resolver.jar preparing download artifact org.apache.httpcomponents#httpcore;4.2.1!httpcore.jar preparing download artifact commons-codec#commons-codec;1.6!commons-codec.jar preparing download artifact xerces#xercesimpl;2.9.1!xercesimpl.jar org.codehaus.groovy.control.multiplecompilationerrorsexception: startup failed: general error during conversion: error grabbing grapes -- [download failed: net.sf.json-lib#json-lib;2.4!json-lib.jar] , stacktrace...
it did start working eventually. think partly issue beingness behind corporate proxy , fact running in windows envrionment , downloaded artifacts end on network due policy here.
@grabresolver(name='artifactory', root='http://artifactory:8081/artifactory/repo1', m2compatible=true) @grab('org.codehaus.groovy.modules.http-builder:http-builder:0.6')
groovy grape
No comments:
Post a Comment