ant-ivy-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Konstantin Rekk <konstantin.r...@gbv.de>
Subject artifact not found after switch to defaultLatestStrategy="latest-time"
Date Mon, 05 Jan 2009 18:37:22 GMT
Hello,

I encountered a strange behaviour during retrieve and I don't know if
it's a bug or due to my misunderstanding ...

(ivy 2 RC2)
This works: 
Case A)
<ivysettings>
	<settings defaultResolver="default"/> 

This not: 
Case B) 
<ivysettings>
	<!-- ivy.default.settings.dir ist located in ivy's jar file -->
	<settings defaultResolver="default"
defaultLatestStrategy="latest-time"/> 

It seems that the publications section is not honored in Case B. Instead
ivy is looking for default jmx-[revsion].jar.

The used "public" repository was derived from ivy roundup + jars. 
The ivy file there is:
  
<ivy-module xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
version="1.3" xsi:noNamespaceSchemaLocation="../../../../xsd/ivy.xsd">

    <info organisation="javax.management" module="jmx" revision="1.2.1" status="release"
publication="20030715120000">
.....

<configurations>
        <conf name="default" description="JMX core implementation"/>
        <conf name="tools" extends="default" description="JMX core plus additional tools"/>
    </configurations>

    <publications>
        <artifact name="jmxri"/>
        <artifact name="jmxtools" conf="tools"/>
        <artifact name="javadoc" type="javadoc" ext="zip"/>
</publications>
</ivy-module>

Hier a snippet from debug output during retrieve from ant:

Case B) 
######################################################################
...
settings loaded (193ms)
        default cache: /home/kostja/.ivy2/cache
        default resolver: default
        -- 5 resolvers:
        shared [file]
        vzgpublic [url]
        default [chain] [local, main]
        local [file]
        main [chain] [shared, vzgpublic]
no resolved descriptor found: launching default resolve
Overriding previous definition of property "ivy.version"
using ivy parser to parse
file:/home/kostja/VZG/soa-workarea-ref/projects/test/ivy.xml
:: resolving dependencies :: de.gbv#test;working@myhome
        confs: [default, test]
        validate = true
        refresh = false
resolving dependencies for configuration 'default'

...

== resolving dependencies
de.gbv#test;working@myhome->org.apache.log4j#log4j;1.2.15 [default->*]
default: Checking cache for: dependency: org.apache.log4j#log4j;1.2.15
{*=[*]}
default: module revision found in cache: org.apache.log4j#log4j;1.2.15
        found org.apache.log4j#log4j;1.2.15 in vzgpublic
== resolving dependencies
de.gbv#test;working@myhome->org.apache.log4j#log4j;1.2.15
[default->default]
== resolving dependencies
org.apache.log4j#log4j;1.2.15->javax.management#jmx;[1.2.1,2.0[ [jmx->tools]
default: Checking cache for: dependency:
javax.management#jmx;[1.2.1,2.0[ {jmx=[default, tools]}
no cached resolved revision for javax.management#jmx;[1.2.1,2.0[
no cached resolved revision for javax.management#jmx;[1.2.1,2.0[

tried /home/kostja/.ivy2/local/javax.management/jmx/[revision]/ivys/ivy.xml

tried /home/kostja/.ivy2/local/javax.management/jmx/[revision]/jars/jmx.jar
        local: no ivy file nor artifact found for
javax.management#jmx;[1.2.1,2.0[
main: Checking cache for: dependency:
javax.management#jmx;[1.2.1,2.0[ {jmx=[default, tools]}
no cached resolved revision for javax.management#jmx;[1.2.1,2.0[
no cached resolved revision for javax.management#jmx;[1.2.1,2.0[

tried /home/kostja/.ivy2/shared/javax.management/jmx/[revision]/ivys/ivy.xml

tried /home/kostja/.ivy2/shared/javax.management/jmx/[revision]/jars/jmx.jar
        shared: no ivy file nor artifact found for
javax.management#jmx;[1.2.1,2.0[
no cached resolved revision for javax.management#jmx;[1.2.1,2.0[
                tried
http://modules.gbv.de/public/modules/javax.management/jmx/[revision]/ivy.xml
                tried [1.2.1]
                tried
http://modules.gbv.de/public/modules/javax.management/jmx/[revision]/jars/jmx-[revision].jar
CLIENT ERROR: Not Found
url=http://modules.gbv.de/public/modules/javax.management/jmx/1.2.1/jars/jmx-1.2.1.jar
        vzgpublic: no ivy file nor artifact found for
javax.management#jmx;[1.2.1,2.0[
WARN: 	module not found: javax.management#jmx;[1.2.1,2.0[
WARN: ==== local: tried
WARN:   /home/kostja/.ivy2/local/javax.management/jmx/[revision]/ivys/ivy.xml
WARN:   -- artifact javax.management#jmx;[1.2.1,2.0[!jmx.jar:
WARN:   /home/kostja/.ivy2/local/javax.management/jmx/[revision]/jars/jmx.jar
WARN: ==== shared: tried
WARN:   /home/kostja/.ivy2/shared/javax.management/jmx/[revision]/ivys/ivy.xml
WARN:   -- artifact javax.management#jmx;[1.2.1,2.0[!jmx.jar:
WARN:   /home/kostja/.ivy2/shared/javax.management/jmx/[revision]/jars/jmx.jar
WARN: ==== vzgpublic: tried
WARN:
http://modules.gbv.de/public/modules/javax.management/jmx/[revision]/ivy.xml
WARN:   [1.2.1]
WARN:   -- artifact javax.management#jmx;[1.2.1,2.0[!jmx.jar:
WARN:
http://modules.gbv.de/public/modules/javax.management/jmx/[revision]/jars/jmx-[revision].jar
###############################################################################################

Case A)
#############################################################
....
settings loaded (228ms)
        default cache: /home/kostja/.ivy2/cache
        default resolver: default
        -- 5 resolvers:
        shared [file]
        vzgpublic [url]
        default [chain] [local, main]
        local [file]
        main [chain] [shared, vzgpublic]
...
:: resolving dependencies :: de.gbv#test;working@myhome
        confs: [default, test]
        validate = true
        refresh = false
resolving dependencies for configuration 'default'
== resolving dependencies for de.gbv#test;working@myhome [default]
== resolving dependencies
de.gbv#test;working@myhome->org.apache.commons#commons-lang;2.4
[default->*]
default: Checking cache for: dependency:
org.apache.commons#commons-lang;2.4 {*=[*]}
default: module revision found in cache:
org.apache.commons#commons-lang;2.4
        found org.apache.commons#commons-lang;2.4 in vzgpublic
== resolving dependencies
de.gbv#test;working@myhome->org.apache.commons#commons-cli;1.1
[default->*]
default: Checking cache for: dependency:
org.apache.commons#commons-cli;1.1 {*=[*]}
default: module revision found in cache:
org.apache.commons#commons-cli;1.1
        found org.apache.commons#commons-cli;1.1 in vzgpublic
== resolving dependencies
de.gbv#test;working@myhome->org.apache.log4j#log4j;1.2.15 [default->*]
default: Checking cache for: dependency: org.apache.log4j#log4j;1.2.15
{*=[*]}
default: module revision found in cache: org.apache.log4j#log4j;1.2.15
        found org.apache.log4j#log4j;1.2.15 in vzgpublic
== resolving dependencies
de.gbv#test;working@myhome->org.apache.log4j#log4j;1.2.15
[default->default]
== resolving dependencies
org.apache.log4j#log4j;1.2.15->javax.management#jmx;[1.2.1,2.0[ [jmx->tools]
default: Checking cache for: dependency:
javax.management#jmx;[1.2.1,2.0[ {jmx=[default, tools]}
no cached resolved revision for javax.management#jmx;[1.2.1,2.0[
no cached resolved revision for javax.management#jmx;[1.2.1,2.0[

tried /home/kostja/.ivy2/local/javax.management/jmx/[revision]/ivys/ivy.xml

tried /home/kostja/.ivy2/local/javax.management/jmx/[revision]/jars/jmx.jar
        local: no ivy file nor artifact found for
javax.management#jmx;[1.2.1,2.0[
main: Checking cache for: dependency:
javax.management#jmx;[1.2.1,2.0[ {jmx=[default, tools]}
no cached resolved revision for javax.management#jmx;[1.2.1,2.0[
no cached resolved revision for javax.management#jmx;[1.2.1,2.0[

tried /home/kostja/.ivy2/shared/javax.management/jmx/[revision]/ivys/ivy.xml

tried /home/kostja/.ivy2/shared/javax.management/jmx/[revision]/jars/jmx.jar
        shared: no ivy file nor artifact found for
javax.management#jmx;[1.2.1,2.0[
no cached resolved revision for javax.management#jmx;[1.2.1,2.0[
                tried
http://modules.gbv.de/public/modules/javax.management/jmx/[revision]/ivy.xml
        vzgpublic: found md file for javax.management#jmx;[1.2.1,2.0[
                =>
http://modules.gbv.de/public/modules/javax.management/jmx/1.2.1/ivy.xml
(1.2.1)
        default-cache: revision in cache: javax.management#jmx;1.2.1
        found javax.management#jmx;1.2.1 in vzgpublic
        [1.2.1] javax.management#jmx;[1.2.1,2.0[
== resolving dependencies
org.apache.log4j#log4j;1.2.15->javax.management#jmx;[1.2.1,2.0[ [jmx->default]
== resolving dependencies
org.apache.log4j#log4j;1.2.15->javax.management#jmx;[1.2.1,2.0[ [jmx->default]
== resolving dependencies
de.gbv#test;working@myhome->org.apache.log4j#log4j;1.2.15
[default->default]
== resolving dependencies
org.apache.log4j#log4j;1.2.15->javax.jms#jms;[1.1,2.0[ [jms->default]
default: Checking cache for: dependency:
javax.jms#jms;[1.1,2.0[ {jms=[default]}
no cached resolved revision for javax.jms#jms;[1.1,2.0[
no cached resolved revision for javax.jms#jms;[1.1,2.0[

tried /home/kostja/.ivy2/local/javax.jms/jms/[revision]/ivys/ivy.xml

tried /home/kostja/.ivy2/local/javax.jms/jms/[revision]/jars/jms.jar
        local: no ivy file nor artifact found for
javax.jms#jms;[1.1,2.0[
main: Checking cache for: dependency:
javax.jms#jms;[1.1,2.0[ {jms=[default]}
no cached resolved revision for javax.jms#jms;[1.1,2.0[
no cached resolved revision for javax.jms#jms;[1.1,2.0[

tried /home/kostja/.ivy2/shared/javax.jms/jms/[revision]/ivys/ivy.xml

tried /home/kostja/.ivy2/shared/javax.jms/jms/[revision]/jars/jms.jar
        shared: no ivy file nor artifact found for
javax.jms#jms;[1.1,2.0[
no cached resolved revision for javax.jms#jms;[1.1,2.0[
                tried
http://modules.gbv.de/public/modules/javax.jms/jms/[revision]/ivy.xml
        vzgpublic: found md file for javax.jms#jms;[1.1,2.0[
                =>
http://modules.gbv.de/public/modules/javax.jms/jms/1.1/ivy.xml (1.1)
        default-cache: revision in cache: javax.jms#jms;1.1
        found javax.jms#jms;1.1 in vzgpublic
        [1.1] javax.jms#jms;[1.1,2.0[
== resolving dependencies
de.gbv#test;working@myhome->org.apache.log4j#log4j;1.2.15
[default->default]
== resolving dependencies
org.apache.log4j#log4j;1.2.15->javax.mail#javamail;[1.4,2.0[ [mail->default]
default: Checking cache for: dependency:
javax.mail#javamail;[1.4,2.0[ {mail=[default]}
no cached resolved revision for javax.mail#javamail;[1.4,2.0[
no cached resolved revision for javax.mail#javamail;[1.4,2.0[

tried /home/kostja/.ivy2/local/javax.mail/javamail/[revision]/ivys/ivy.xml

tried /home/kostja/.ivy2/local/javax.mail/javamail/[revision]/jars/javamail.jar
        local: no ivy file nor artifact found for
javax.mail#javamail;[1.4,2.0[
main: Checking cache for: dependency:
javax.mail#javamail;[1.4,2.0[ {mail=[default]}
no cached resolved revision for javax.mail#javamail;[1.4,2.0[
no cached resolved revision for javax.mail#javamail;[1.4,2.0[

tried /home/kostja/.ivy2/shared/javax.mail/javamail/[revision]/ivys/ivy.xml

tried /home/kostja/.ivy2/shared/javax.mail/javamail/[revision]/jars/javamail.jar
        shared: no ivy file nor artifact found for
javax.mail#javamail;[1.4,2.0[
no cached resolved revision for javax.mail#javamail;[1.4,2.0[
                tried
http://modules.gbv.de/public/modules/javax.mail/javamail/[revision]/ivy.xml
        vzgpublic: found md file for javax.mail#javamail;[1.4,2.0[
                =>
http://modules.gbv.de/public/modules/javax.mail/javamail/1.4.1/ivy.xml
(1.4.1)
        default-cache: revision in cache: javax.mail#javamail;1.4.1
        found javax.mail#javamail;1.4.1 in vzgpublic
        [1.4.1] javax.mail#javamail;[1.4,2.0[
== resolving dependencies
javax.mail#javamail;[1.4,2.0[->javax.activation#jaf;[1.1.1,2.0[ [default->*]
default: Checking cache for: dependency:
javax.activation#jaf;[1.1.1,2.0[ {*=[*]}
no cached resolved revision for javax.activation#jaf;[1.1.1,2.0[
no cached resolved revision for javax.activation#jaf;[1.1.1,2.0[

tried /home/kostja/.ivy2/local/javax.activation/jaf/[revision]/ivys/ivy.xml

tried /home/kostja/.ivy2/local/javax.activation/jaf/[revision]/jars/jaf.jar
        local: no ivy file nor artifact found for
javax.activation#jaf;[1.1.1,2.0[
main: Checking cache for: dependency:
javax.activation#jaf;[1.1.1,2.0[ {*=[*]}
no cached resolved revision for javax.activation#jaf;[1.1.1,2.0[
no cached resolved revision for javax.activation#jaf;[1.1.1,2.0[

tried /home/kostja/.ivy2/shared/javax.activation/jaf/[revision]/ivys/ivy.xml

tried /home/kostja/.ivy2/shared/javax.activation/jaf/[revision]/jars/jaf.jar
        shared: no ivy file nor artifact found for
javax.activation#jaf;[1.1.1,2.0[
no cached resolved revision for javax.activation#jaf;[1.1.1,2.0[
                tried
http://modules.gbv.de/public/modules/javax.activation/jaf/[revision]/ivy.xml
        vzgpublic: found md file for javax.activation#jaf;[1.1.1,2.0[
                =>
http://modules.gbv.de/public/modules/javax.activation/jaf/1.1.1/ivy.xml
(1.1.1)
        default-cache: revision in cache: javax.activation#jaf;1.1.1
        found javax.activation#jaf;1.1.1 in vzgpublic
        [1.1.1] javax.activation#jaf;[1.1.1,2.0[
== resolving dependencies
de.gbv#test;working@myhome->org.apache.log4j#log4j;1.2.15
[default->mail]
== resolving dependencies
de.gbv#test;working@myhome->org.apache.log4j#log4j;1.2.15
[default->default]
== resolving dependencies
de.gbv#test;working@myhome->org.apache.log4j#log4j;1.2.15 [default->jmx]
== resolving dependencies
de.gbv#test;working@myhome->org.apache.log4j#log4j;1.2.15
[default->default]
== resolving dependencies
de.gbv#test;working@myhome->org.apache.log4j#log4j;1.2.15 [default->jms]
== resolving dependencies
de.gbv#test;working@myhome->org.apache.log4j#log4j;1.2.15
[default->default]
###########################################################################

Any help would be much appreciated.
 
Thanks in advance,

Konstantin



Mime
View raw message