[ 
https://issues.apache.org/jira/browse/IVY-1140?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12832209#action_12832209
 ] 

Carlton Brown commented on IVY-1140:
------------------------------------

I'm guessing that you are publishing directly to Artifactory and not proxying a 
remote Ivy repo, yes?    

After some more testing I was able to further isolate that this is the failure 
case... you can't resolve dynamic revs through a proxied Artifactory 
repository... only a "local" repository (meaning one that Artifactory itself is 
hosting).   

I also found it necessary to use a dual resolver combining an ibiblio resolver 
and and ivy resolver.   However I didn't test this exhaustively, just enough to 
get a proof of concept working.   

As far as the disposition of this bug, I'm not sure there is any Ivy change to 
be made.    

> latest.integration cannot be resolved through Artifactory
> ---------------------------------------------------------
>
>                 Key: IVY-1140
>                 URL: https://issues.apache.org/jira/browse/IVY-1140
>             Project: Ivy
>          Issue Type: Bug
>          Components: Core
>    Affects Versions: trunk
>         Environment: Artifactory 2.1.1, Ant 1.7, Ivy 2.1.0 or trunk (same 
> behavior).  
>            Reporter: Carlton Brown
>            Priority: Minor
>
> Ivy doesn't resolve latest.integration through Artifactory.    The 
> Artifactory request log shows a 200 result for a HEAD request, but Ivy 
> doesn't seem to download.   
> Artifactory request log:
> 20091112054610|93|REQUEST|10.10.3.72|non_authenticated_user|GET|/integration/mycompany/spcore/|HTTP/1.1|200|0
> 20091112054610|31|REQUEST|10.10.3.72|non_authenticated_user|GET|/integration/mycompany/spcore/|HTTP/1.1|200|0
> 20091112054610|47|REQUEST|10.10.3.72|non_authenticated_user|GET|/integration/mycompany/spcore/|HTTP/1.1|200|0
> Verbose Ivy output:
> Apache Ant version 1.7.1 compiled on June 27 2008
> Buildfile: C:\allworkspaces\default\lp-common-trunk\build.xml
> parsing buildfile C:\allworkspaces\default\lp-common-trunk\build.xml with URI 
> = file:/C:/allworkspaces/default/lp-common-trunk/build.xml
> Project base dir set to: C:\allworkspaces\default\lp-common-trunk
> [antlib:org.apache.tools.ant] Could not load definitions from resource 
> org/apache/tools/ant/antlib.xml. It could not be found.
> Importing file 
> C:\allworkspaces\default\lp-common-trunk\build-common\build-common.xml from 
> C:\allworkspaces\default\lp-common-trunk\build.xml
> parsing buildfile 
> C:\allworkspaces\default\lp-common-trunk\build-common\build-common.xml with 
> URI = 
> file:/C:/allworkspaces/default/lp-common-trunk/build-common/build-common.xml
>  [property] Loading Environment env.
>  [property] Loading C:\Documents and Settings\myuser\build.properties
>  [property] Unable to find property file: C:\Documents and 
> Settings\myuser\build.properties
>  [property] Loading C:\allworkspaces\default\lp-common-trunk\build.properties
> Override ignored for property "app.name"
> Property "ConnectionPool.Primary.ConnectionString" has not been set
> Property "ConnectionPool.Primary.Username" has not been set
> Property "ConnectionPool.Primary.Password" has not been set
> Property "product.version" has not been set
>  [macrodef] creating macro  copy-resources
> Property "db.changelogfile" has not been set
>  [macrodef] creating macro  applyDatabaseChanges
> Property "db.changelogfile.stored.procs" has not been set
>  [macrodef] creating macro  applyDatabaseChanges_sp
> Property "db.changelogfile" has not been set
>  [macrodef] creating macro  rollbackDatabaseChanges
> Property "db.changelogfile" has not been set
>  [macrodef] creating macro  createDatabaseChangesScript
> Property "db.changelogfile.stored.procs" has not been set
>  [macrodef] creating macro  createDatabaseChangesScript_sp
> Property "db.changelogfile" has not been set
>  [macrodef] creating macro  markDatabaseChangesApplied
> Property "db.changelogfile.stored.procs" has not been set
>  [macrodef] creating macro  markDatabaseChangesApplied_sp
>  [macrodef] creating macro  getBaseline
>  [macrodef] creating macro  packageTgz
> Property "simple.major.version" has not been set
> Property "simple.minor.version" has not been set
> Property "simple.feature.version" has not been set
> Property "simple.build.number" has not been set
> Property "product.version" has not been set
>  [macrodef] creating macro  packageRpm
> Importing file 
> C:\allworkspaces\default\lp-common-trunk\build-common\build-minimal.xml from 
> C:\allworkspaces\default\lp-common-trunk\build-common\build-common.xml
> parsing buildfile 
> C:\allworkspaces\default\lp-common-trunk\build-common\build-minimal.xml with 
> URI = 
> file:/C:/allworkspaces/default/lp-common-trunk/build-common/build-minimal.xml
> Already defined in main or a previous import, ignore dist
> Override ignored for property "lib.dir"
> Override ignored for property "buildfile.dir"
> Build sequence for target(s) `resolve' is [_uses-ivy-check, 
> _download-ivy-check, download-ivy, init-ivy, _resolve-check, resolve]
> Complete build sequence is [_uses-ivy-check, _download-ivy-check, 
> download-ivy, init-ivy, _resolve-check, resolve, _gwt-copy, 
> generate-javadocs, common.gwt-hosted-mode, identify, init, 
> common.run-java-src-compile, common._src-available-check, 
> _src-available-check, _resources-uptodate-check, _src-uptodate-check, 
> _deps-uptodate-check, _src-deps-uptodate-check, _src-compile-check, 
> java-src-compile, _tests-available-check, _test-src-uptodate-check, 
> _test-resources-uptodate-check, _test-deps-uptodate-check, 
> _test-compile-check, test-src-compile, common.test-nocoverage, 
> run-java-src-compile, common._uses-gwt-check, db-init-stored-procs, 
> minimal._uses-ivy-check, clean, realclean, _uses-gwt-check, gwt-src-compile, 
> test-nocoverage, instrument, test-coverage, test, 
> common._deps-uptodate-check, db-init, common.db-create-update-script, 
> dependency-report, compile, common.make, common.db-update, make, common.war, 
> db-create-update-script-stored-procs, db-script-stored-procs, 
> common.db-script-stored-procs, init-gwt, _gwt-uptodate-check, 
> common._gwt-compile-check, generate-pmd-report-xml, 
> generate-checkstyle-report-xml, reports, _package-rpm-check, common.compile, 
> common.resources, db-update-stored-procs, common.db-update-stored-procs, 
> minimal.dependency-report, db-update, war, 
> common.db-mark-changes-applied-stored-procs, common.generate-pmd-report-html, 
> minimal.flush-full, _gwt-compile-check, _gwt-compile, _package-tgz-check, 
> _package-tgz, minimal.publish-impl, common._test-compile-check, resources, 
> release-prep, static-content, common.generate-checkstyle-report-xml, 
> minimal.flush, minimal.resolve, jar, jar-source, jar-tests, dist, publish, 
> minimal._download-ivy-check, minimal.publish, common.identify, publish-impl, 
> generate-checkstyle-report-html, common._gwt-compile, 
> db-mark-changes-applied-stored-procs, common.dist, common.test-coverage, 
> common._src-deps-uptodate-check, common.gwt-src-compile, 
> common.generate-javadocs, common.all, common.test-run, 
> common.java-src-compile, test-run, flush, common._package-tgz, 
> common._test-src-uptodate-check, common._src-compile-check, 
> db-create-update-script, common.db-script, common.release-prep, 
> common.instrument, common._src-uptodate-check, flush-full, minimal.dist, 
> minimal._resolve-check, minimal.init-ivy, common.test-src-compile, 
> db-mark-changes-applied, common.jar-tests, common._test-deps-uptodate-check, 
> all, common.db-rollback, db-script, _package-rpm, common.docs, 
> common._package-tgz-check, common.generate-checkstyle-report-html, 
> common.jar-source, product-version, common.release, common.static-content, 
> common.init, common.jar, common._gwt-uptodate-check, common.init-gwt, 
> common.db-mark-changes-applied, db-rollback, common._package-rpm, docs, 
> common.product-version, common._tests-available-check, 
> common._resources-uptodate-check, common._gwt-copy, generate-pmd-report-html, 
> common.test, common.db-create-update-script-stored-procs, common.clean, 
> release, common.db-init-stored-procs, common._test-resources-uptodate-check, 
> gwt-hosted-mode, common.db-init, minimal.download-ivy, 
> common._package-rpm-check, common.generate-pmd-report-xml, common.reports, 
> common.realclean, ]
> _uses-ivy-check:
>      [echo] resolve=true
>      [echo] ivy.run=true
> _download-ivy-check:
>      [echo] building.offline=false
>      [echo] ivy.run=true
> [available] Found: C:\Documents and Settings\myuser\.ivy\jars-trunk\ivy.jar
> [available] Found: C:\Documents and 
> Settings\myuser\.ivy\jars-trunk\ivy-report.xsl
> [available] Found: C:\Documents and Settings\myuser\.ivy\jars-trunk\jsch.jar
>      [echo] download-ivy.completed=true
>      [echo] no-download-ivy=true
> download-ivy:
> Skipped because property 'no-download-ivy' set.
> init-ivy:
> parsing buildfile 
> jar:file:/C:/Documents%20and%20Settings/myuser/.ivy/jars-trunk/ivy.jar!/fr/jayasoft/ivy/ant/antlib.xml
>  with URI = 
> jar:file:/C:/Documents%20and%20Settings/myuser/.ivy/jars-trunk/ivy.jar!/fr/jayasoft/ivy/ant/antlib.xml
> [antlib:fr.jayasoft.ivy.ant] Could not load definitions from resource 
> fr/jayasoft/ivy/ant/antlib.xml. It could not be found.
> [ivy:configure] Loading 
> jar:file:/C:/Documents%20and%20Settings/myuser/.ivy/jars-trunk/ivy.jar!/org/apache/ivy/core/settings/ivy.properties
> Override ignored for property "ivy.status"
> [ivy:configure] :: Ivy 2.2.x-local-20091109113332 - 20091109113332 :: 
> http://ant.apache.org/ivy/ ::
> [ivy:configure] :: loading settings :: file = 
> C:\allworkspaces\default\lp-common-trunk\build-common\ivy-config.xml
> [ivy:configure] using ivy.default.ivy.user.dir variable for default ivy user 
> dir: C:\Documents and Settings\myuser\.ivy
> [ivy:configure] settings loaded (172ms)
> [ivy:configure]       default cache: C:\Documents and 
> Settings\myuser\.ivy\cache
> [ivy:configure]       default resolver: chained
> [ivy:configure]       -- 11 resolvers:
> [ivy:configure]       mycompany [sftp]
> [ivy:configure]       shared [url]
> [ivy:configure]       integration [url]
> [ivy:configure]       thirdparty [url]
> [ivy:configure]       release-sftp [sftp]
> [ivy:configure]       local [file]
> [ivy:configure]       alternate-chain [chain] [local, integration, release, 
> thirdparty]
> [ivy:configure]       public [ibiblio]
> [ivy:configure]       integration-sftp [sftp]
> [ivy:configure]       release [url]
> [ivy:configure]       chained [chain] [integration]
> _resolve-check:
>      [echo] building.offline=false
>      [echo] ivy.run=true
> Property "deps.resolved" has not been set
>      [echo] deps.resolved=${deps.resolved}
> Property "deps.resolved" has not been set
> Property "no-resolve" has not been set
>      [echo] no-resolve=${no-resolve}
> resolve:
> [ivy:resolve] using ivy parser to parse 
> file:/C:/allworkspaces/default/lp-common-trunk/ivy.xml
> [ivy:resolve] :: resolving dependencies :: 
> mycompany.lpages#spcommon#trunk;SNAPSHOT
> [ivy:resolve]         confs: [build, run, test, lpages.test]
> [ivy:resolve]         validate = true
> [ivy:resolve]         refresh = false
> [ivy:resolve] resolving dependencies for configuration 'build'
> [ivy:resolve] == resolving dependencies for 
> mycompany.lpages#spcommon#trunk;SNAPSHOT [build]
> [ivy:resolve] resolving dependencies for configuration 'run'
> [ivy:resolve] == resolving dependencies for 
> mycompany.lpages#spcommon#trunk;SNAPSHOT [run]
> [ivy:resolve] == resolving dependencies 
> mycompany.lpages#spcommon#trunk;SNAPSHOT->mycompany#spcore#trunk;latest.integration
>  [run->*]
> [ivy:resolve] chained: Checking cache for: dependency: 
> mycompany#spcore#trunk;latest.integration {run=[*]}
> [ivy:resolve] default-cache: no cached resolved revision for 
> mycompany#spcore#trunk;latest.integration
> [ivy:resolve] don't use cache for mycompany#spcore#trunk;latest.integration: 
> checkModified=true
> [ivy:resolve]                 tried 
> http://reposerver-d2.corp.int-mycompany.com:8080/artifactory/integration/mycompany/spcore/[revision]/ivy-[revision].xml
> [ivy:resolve]                 tried 
> http://reposerver-d2.corp.int-mycompany.com:8080/artifactory/integration/mycompany/spcore/[revision]/spcore-[revision].jar
> [ivy:resolve]                 tried 
> http://reposerver-d2.corp.int-mycompany.com:8080/artifactory/integration/mycompany/spcore/[revision]/spcore-src-[revision].jar
> [ivy:resolve]         integration: no ivy file nor artifact found for 
> mycompany#spcore#trunk;latest.integration
> [ivy:resolve] WARN:   module not found: 
> mycompany#spcore#trunk;latest.integration
> [ivy:resolve] WARN: ==== integration: tried
> [ivy:resolve] WARN:   
> http://reposerver-d2.corp.int-mycompany.com:8080/artifactory/integration/mycompany/spcore/[revision]/ivy-[revision].xml
> [ivy:resolve] WARN:   -- artifact 
> mycompany#spcore#trunk;latest.integration!spcore.jar:
> [ivy:resolve] WARN:   
> http://reposerver-d2.corp.int-mycompany.com:8080/artifactory/integration/mycompany/spcore/[revision]/spcore-[revision].jar
> [ivy:resolve] WARN:   -- artifact 
> mycompany#spcore#trunk;latest.integration!spcore-src.jar:
> [ivy:resolve] WARN:   
> http://reposerver-d2.corp.int-mycompany.com:8080/artifactory/integration/mycompany/spcore/[revision]/spcore-src-[revision].jar
> [ivy:resolve] resolving dependencies for configuration 'test'
> [ivy:resolve] == resolving dependencies for 
> mycompany.lpages#spcommon#trunk;SNAPSHOT [test]
> [ivy:resolve] == resolving dependencies for 
> mycompany.lpages#spcommon#trunk;SNAPSHOT [build]
> [ivy:resolve] == resolving dependencies for 
> mycompany.lpages#spcommon#trunk;SNAPSHOT [run]
> [ivy:resolve] == resolving dependencies 
> mycompany.lpages#spcommon#trunk;SNAPSHOT->mycompany#spcore#trunk;latest.integration
>  [run->*]
> [ivy:resolve] resolving dependencies for configuration 'lpages.test'
> [ivy:resolve] == resolving dependencies for 
> mycompany.lpages#spcommon#trunk;SNAPSHOT [lpages.test]
> [ivy:resolve]         resolved ivy file produced in C:\Documents and 
> Settings\myuser\.ivy\cache\resolved-mycompany.lpages-spcommon-SNAPSHOT.xml
> [ivy:resolve] :: downloading artifacts ::
> [ivy:resolve] :: resolution report :: resolve 454ms :: artifacts dl 0ms
>       ---------------------------------------------------------------------
>       |                  |            modules            ||   artifacts   |
>       |       conf       | number| search|dwnlded|evicted|| number|dwnlded|
>       ---------------------------------------------------------------------
>       |       build      |   0   |   0   |   0   |   0   ||   0   |   0   |
>       |        run       |   1   |   0   |   0   |   0   ||   0   |   0   |
>       |       test       |   1   |   0   |   0   |   0   ||   0   |   0   |
>       |    lpages.test   |   0   |   0   |   0   |   0   ||   0   |   0   |
>       ---------------------------------------------------------------------
> [ivy:resolve] WARN:   ::::::::::::::::::::::::::::::::::::::::::::::
> [ivy:resolve] WARN:   ::          UNRESOLVED DEPENDENCIES         ::
> [ivy:resolve] WARN:   ::::::::::::::::::::::::::::::::::::::::::::::
> [ivy:resolve] WARN:   :: mycompany#spcore#trunk;latest.integration: not found
> [ivy:resolve] WARN:   ::::::::::::::::::::::::::::::::::::::::::::::
> [ivy:resolve]         report for mycompany.lpages#spcommon#trunk;SNAPSHOT 
> build produced in C:\Documents and 
> Settings\myuser\.ivy\cache\mycompany.lpages-spcommon-build.xml
> [ivy:resolve]         report for mycompany.lpages#spcommon#trunk;SNAPSHOT run 
> produced in C:\Documents and 
> Settings\myuser\.ivy\cache\mycompany.lpages-spcommon-run.xml
> [ivy:resolve]         report for mycompany.lpages#spcommon#trunk;SNAPSHOT 
> test produced in C:\Documents and 
> Settings\myuser\.ivy\cache\mycompany.lpages-spcommon-test.xml
> [ivy:resolve]         report for mycompany.lpages#spcommon#trunk;SNAPSHOT 
> lpages.test produced in C:\Documents and 
> Settings\myuser\.ivy\cache\mycompany.lpages-spcommon-lpages.test.xml
> [ivy:resolve]         resolve done (454ms resolve - 0ms download)
> [ivy:resolve] :: problems summary ::
> [ivy:resolve] :::: WARNINGS
> [ivy:resolve]                 module not found: 
> mycompany#spcore#trunk;latest.integration
> [ivy:resolve]         ==== integration: tried
> [ivy:resolve]           
> http://reposerver-d2.corp.int-mycompany.com:8080/artifactory/integration/mycompany/spcore/[revision]/ivy-[revision].xml
> [ivy:resolve]           -- artifact 
> mycompany#spcore#trunk;latest.integration!spcore.jar:
> [ivy:resolve]           
> http://reposerver-d2.corp.int-mycompany.com:8080/artifactory/integration/mycompany/spcore/[revision]/spcore-[revision].jar
> [ivy:resolve]           -- artifact 
> mycompany#spcore#trunk;latest.integration!spcore-src.jar:
> [ivy:resolve]           
> http://reposerver-d2.corp.int-mycompany.com:8080/artifactory/integration/mycompany/spcore/[revision]/spcore-src-[revision].jar
> [ivy:resolve]                 ::::::::::::::::::::::::::::::::::::::::::::::
> [ivy:resolve]                 ::          UNRESOLVED DEPENDENCIES         ::
> [ivy:resolve]                 ::::::::::::::::::::::::::::::::::::::::::::::
> [ivy:resolve]                 :: mycompany#spcore#trunk;latest.integration: 
> not found
> [ivy:resolve]                 ::::::::::::::::::::::::::::::::::::::::::::::
> [ivy:resolve] 
> [ivy:resolve] 
> [ivy:resolve] :: USE VERBOSE OR DEBUG MESSAGE LEVEL FOR MORE DETAILS
> BUILD FAILED
> C:\allworkspaces\default\lp-common-trunk\build-common\build-minimal.xml:106: 
> impossible to resolve dependencies:
>       resolve failed - see output for details
>       at org.apache.ivy.ant.IvyResolve.doExecute(IvyResolve.java:325)
>       at org.apache.ivy.ant.IvyTask.execute(IvyTask.java:277)
>       at org.apache.tools.ant.UnknownElement.execute(UnknownElement.java:288)
>       at sun.reflect.GeneratedMethodAccessor1.invoke(Unknown Source)
>       at 
> sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
>       at java.lang.reflect.Method.invoke(Method.java:597)
>       at 
> org.apache.tools.ant.dispatch.DispatchUtils.execute(DispatchUtils.java:106)
>       at org.apache.tools.ant.Task.perform(Task.java:348)
>       at org.apache.tools.ant.Target.execute(Target.java:357)
>       at org.apache.tools.ant.Target.performTasks(Target.java:385)
>       at org.apache.tools.ant.Project.executeSortedTargets(Project.java:1337)
>       at org.apache.tools.ant.Project.executeTarget(Project.java:1306)
>       at 
> org.apache.tools.ant.helper.DefaultExecutor.executeTargets(DefaultExecutor.java:41)
>       at 
> org.eclipse.ant.internal.ui.antsupport.EclipseDefaultExecutor.executeTargets(EclipseDefaultExecutor.java:32)
>       at org.apache.tools.ant.Project.executeTargets(Project.java:1189)
>       at 
> org.eclipse.ant.internal.ui.antsupport.InternalAntRunner.run(InternalAntRunner.java:423)
>       at 
> org.eclipse.ant.internal.ui.antsupport.InternalAntRunner.main(InternalAntRunner.java:137)
> Caused by: resolve failed - see output for details
>       at org.apache.ivy.ant.IvyResolve.doExecute(IvyResolve.java:251)
>       ... 16 more
> --- Nested Exception ---
> resolve failed - see output for details
>       at org.apache.ivy.ant.IvyResolve.doExecute(IvyResolve.java:251)
>       at org.apache.ivy.ant.IvyTask.execute(IvyTask.java:277)
>       at org.apache.tools.ant.UnknownElement.execute(UnknownElement.java:288)
>       at sun.reflect.GeneratedMethodAccessor1.invoke(Unknown Source)
>       at 
> sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
>       at java.lang.reflect.Method.invoke(Method.java:597)
>       at 
> org.apache.tools.ant.dispatch.DispatchUtils.execute(DispatchUtils.java:106)
>       at org.apache.tools.ant.Task.perform(Task.java:348)
>       at org.apache.tools.ant.Target.execute(Target.java:357)
>       at org.apache.tools.ant.Target.performTasks(Target.java:385)
>       at org.apache.tools.ant.Project.executeSortedTargets(Project.java:1337)
>       at org.apache.tools.ant.Project.executeTarget(Project.java:1306)
>       at 
> org.apache.tools.ant.helper.DefaultExecutor.executeTargets(DefaultExecutor.java:41)
>       at 
> org.eclipse.ant.internal.ui.antsupport.EclipseDefaultExecutor.executeTargets(EclipseDefaultExecutor.java:32)
>       at org.apache.tools.ant.Project.executeTargets(Project.java:1189)
>       at 
> org.eclipse.ant.internal.ui.antsupport.InternalAntRunner.run(InternalAntRunner.java:423)
>       at 
> org.eclipse.ant.internal.ui.antsupport.InternalAntRunner.main(InternalAntRunner.java:137)
> Total time: 1 second

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.

Reply via email to