Artifactory - ?trace finds artifact, gradle does not -


ughh, saga continues (my post yesterday - gradle not resolve dependency artifactory). worked out solution (i'm still using hard-coded versions).

but when gradle clean build project dependency on artifact in artifactory gradle fails find it. errors with:

* went wrong: not resolve dependencies configuration ':compile'. > not find apircommon.jar (au.com.apir:apircommon:1.0).   searched in following locations:       http://devsvr:8090/artifactory/libs-release/au/com/apir/apircommon/1.0/apircommon-1.0.jar 

i can hit location browser or curl download artifact or have trace on it:

http://devsrv/artifactory/libs-release/au/com/apir/apircommon/1.0/apircommon-1.0.jar?trace

request id: 31810f1c repo path id: libs-release:au/com/apir/apircommon/1.0/apircommon-1.0.jar method name: user: admin time: 2015-07-24t11:07:22.236+10:00 thread: http-bio-8090-exec-21 steps:  2015-07-24t11:07:22.236+10:00 received request 2015-07-24t11:07:22.236+10:00 request source = 203.a.b.c, last modified = 01-01-70 09:59:59 +10:00, if modified since = -1, thread name = http-bio-8090-exec-21 2015-07-24t11:07:22.236+10:00 executing beforedownloadrequest user plugins may exist 2015-07-24t11:07:22.236+10:00 retrieving info 2015-07-24t11:07:22.236+10:00 consulting virtual repo download strategy 2015-07-24t11:07:22.236+10:00 trying retrieve resource info local storage 2015-07-24t11:07:22.236+10:00 unable find resource in libs-release:au/com/apir/apircommon/1.0/apircommon-1.0.jar 2015-07-24t11:07:22.236+10:00 searching info in aggregated repositories 2015-07-24t11:07:22.236+10:00 preparing list of aggregated repositories search in 2015-07-24t11:07:22.236+10:00 appending virtual repository 'libs-release' 2015-07-24t11:07:22.236+10:00 appending virtual repository 'libs-release' 2015-07-24t11:07:22.236+10:00 appending virtual repository 'libs-release' 2015-07-24t11:07:22.236+10:00 appending collective local repositories 2015-07-24t11:07:22.236+10:00 appending collective local cache repositories 2015-07-24t11:07:22.236+10:00 appending collective remote repositories 2015-07-24t11:07:22.236+10:00 intercepting info request 'pominterceptor' 2015-07-24t11:07:22.236+10:00 intercepting info request 'mavenmetadatainterceptor' 2015-07-24t11:07:22.236+10:00 processing request release resource 2015-07-24t11:07:22.236+10:00 searching resource within libs-release-local 2015-07-24t11:07:22.237+10:00 resource found in libs-release-local 2015-07-24t11:07:22.237+10:00 resource exact match - returning 2015-07-24t11:07:22.237+10:00 returning resource found in aggregated repositories 2015-07-24t11:07:22.237+10:00 intercepting found resource 'pominterceptor' 2015-07-24t11:07:22.237+10:00 intercepting found resource 'mavenmetadatainterceptor' 2015-07-24t11:07:22.237+10:00 requested resource found = true 2015-07-24t11:07:22.237+10:00 request head = false 2015-07-24t11:07:22.237+10:00 request checksum = false 2015-07-24t11:07:22.237+10:00 target repository not remote or doesn't store locally = true 2015-07-24t11:07:22.237+10:00 requested resource not modified = false 2015-07-24t11:07:22.237+10:00 responding found resource 2015-07-24t11:07:22.237+10:00 executing altresponse user plugins may exist 2015-07-24t11:07:22.237+10:00 alternative response status set -1 , message 'null' 2015-07-24t11:07:22.237+10:00 found no alternative content handles 2015-07-24t11:07:22.237+10:00 retrieving content handle target repo 2015-07-24t11:07:22.237+10:00 requested resource isn't pre-resolved 2015-07-24t11:07:22.237+10:00 target repository isn't virtual - verifying downloading allowed 2015-07-24t11:07:22.237+10:00 creating resource handle 'libs-release-local:au/com/apir/apircommon/1.0/apircommon-1.0.jar' 2015-07-24t11:07:22.237+10:00 identified requested resource file 2015-07-24t11:07:22.237+10:00 requested resource ordinary artifact - using normal content handle length '13368639' 2015-07-24t11:07:22.237+10:00 executing beforedownload user plugins may exist 2015-07-24t11:07:22.237+10:00 responding selected content handle 2015-07-24t11:07:22.237+10:00 request succeeded 

why can't gradle download it? isn't being downloaded local .gradle cache.

gradle not resolve dependency artifactory has similar problem though using http://www.jfrog.com/confluence/display/rtf/gradle+artifactory+plugin.

any thoughts?


update

i changed repo virtual libs-release actual libs-release-local , worked. haven't changed configurations default in artifactory , virtual libs-release includes libs-release-local selected repository. regardless, virtual repository resolved when going through curl, browser or ?trace, not when going through gradle. why?

and other problem remote repositories (setup through virtual libs-release) never used build fails can't find remote artifacts.

i fixed problem defining new virtual repository same in every way (except name). weird.

further this, deleted , recreated new libs-release , gradle build failed same error! weirder.


Comments

Popular posts from this blog

python - pip install -U PySide error -

arrays - C++ error: a brace-enclosed initializer is not allowed here before ‘{’ token -

cytoscape.js - How to add nodes to Dagre layout with Cytoscape -