You are viewing a plain text version of this content. The canonical link for it is here.
Posted to ivy-user@ant.apache.org by Dave Brosius <db...@baybroadband.net> on 2010/04/18 23:48:17 UTC

Queston about transitive="false"

Greetings,
     I'm trying to introduce Ivy into a mature product where 3rdparty 
jars are checked in to the scm. My first step is just to have ivy yank 
down all these files, and then copy them into the locations where they 
currently exist, that way the mult-project ant build won't need to know 
anything about ivy (except for the first build step of pulling the files 
down). Once this is working, I'll remove the jars from the scm, and then 
work on making the build more ivy-like.

So to start, i've created an ivy.xml that specifies a transitive="false" 
configuration, and have listed all the jars that are currently in my scm.

Many of the jars work fine, but a few have the following problem. For 
instance here is a snippet from my ivy.xml

.....

<configurations>
    <conf name="default" transitive="false"/>
</configurations>
<dependencies>
    <dependency org="org.apache.ant" name="ant" rev="${ant.version}" 
conf="*->*,!sources,!javadoc"/>
    ....
....
...


When run with ant -v

I get

[ivy:retrieve] == resolving dependencies
acme#3rdparty;working@dbrosius->org.apache.ant#ant;1.7.1
....
<skip some stuff>
....
http://repo1.maven.org/maven2/org/apache/ant/ant/1.7.1/ant-1.7.1.pom
[ivy:retrieve]     public: found md file for org.apache.ant#ant;1.7.1
[ivy:retrieve]         =>
http://repo1.maven.org/maven2/org/apache/ant/ant/1.7.1/ant-1.7.1.pom
(1.7.1)
[ivy:retrieve] downloading
http://repo1.maven.org/maven2/org/apache/ant/ant/1.7.1/ant-1.7.1.pom ...
[ivy:retrieve]     public: downloading
http://repo1.maven.org/maven2/org/apache/ant/ant/1.7.1/ant-1.7.1.pom
[ivy:retrieve]     public: downloading
http://repo1.maven.org/maven2/org/apache/ant/ant/1.7.1/ant-1.7.1.pom.sha1
[ivy:retrieve] sha1 OK for
http://repo1.maven.org/maven2/org/apache/ant/ant/1.7.1/ant-1.7.1.pom
[ivy:retrieve]     [SUCCESSFUL ]
org.apache.ant#ant;1.7.1!ant.pom(pom.original) (606ms)
[ivy:retrieve] default: Checking cache for: dependency:
org.apache.ant#ant-parent;1.7.1 {}
[ivy:retrieve]         tried
/usr/share/apache-ivy-2.1.0/local/org.apache.ant/ant-parent/1.7.1/ivys/ivy.xml 

[ivy:retrieve]         tried
/usr/share/apache-ivy-2.1.0/local/org.apache.ant/ant-parent/1.7.1/jars/ant-parent.jar 

[ivy:retrieve]     local: no ivy file nor artifact found for
org.apache.ant#ant-parent;1.7.1
....
<skip some stuff>
....

[ivy:retrieve]         tried
http://repo1.maven.org/maven2/org/apache/ant/ant-parent/1.7.1/ant-parent-1.7.1.pom 

[ivy:retrieve]     public: found md file for 
org.apache.ant#ant-parent;1.7.1
[ivy:retrieve]         =>
http://repo1.maven.org/maven2/org/apache/ant/ant-parent/1.7.1/ant-parent-1.7.1.pom 

(1.7.1)
[ivy:retrieve] downloading
http://repo1.maven.org/maven2/org/apache/ant/ant-parent/1.7.1/ant-parent-1.7.1.pom 

...
[ivy:retrieve]     public: downloading
http://repo1.maven.org/maven2/org/apache/ant/ant-parent/1.7.1/ant-parent-1.7.1.pom 

[ivy:retrieve]     public: downloading
http://repo1.maven.org/maven2/org/apache/ant/ant-parent/1.7.1/ant-parent-1.7.1.pom.sha1 

[ivy:retrieve] sha1 OK for
http://repo1.maven.org/maven2/org/apache/ant/ant-parent/1.7.1/ant-parent-1.7.1.pom 

[ivy:retrieve]     [SUCCESSFUL ]
....
<skip some stuff>
....
http://repo1.maven.org/maven2/org/apache/ant/ant-parent/1.7.1/ant-parent-1.7.1.jar 

[ivy:retrieve] CLIENT ERROR: Not Found


So ivy can't find ant-parent in the repo1.maven.org repo. Now I suppose 
that is a problem with that repository, but why is ivy trying to 
download that file, since i specified no dependencies? I don't want or 
need that file.

How do i get around this?
dave


Re: Queston about transitive="false"

Posted by Dave Brosius <db...@baybroadband.net>.
Thanks for the response. I guess i'll have to go look for documentation 
on 'parents' -- didn't know about that. I guess i'm just missing 
something in this whole process that makes it seems so ridiculously 
complex. I want a bunch of jar files, and I know where to get them from. 
This whole dependency/parent thing just seems like overkill. Is it 
usually the case that you don't know what jars you need?

Perhaps for my situation, i'll just write an ant task that pulls the 
jars from the appropriate repos, which should be relatively trivial, and 
less likely to fail, or at least be more predictable.

Thanks for the help.
dave

Andrew Thorburn wrote:
> Unfortunately, it's not a dependency - it's a parent. It may be
> necessary to depend on Ant Parent first, then Ant, e.g.
>
> <dependency org="org.apache.ant" name="ant-parent"
> rev="${ant.version}" conf="*->*,!sources,!javadoc"/>
> <dependency org="org.apache.ant" name="ant" rev="${ant.version}"
> conf="*->*,!sources,!javadoc"/>
>
> I'm not sure if that will fix it, but I've had issues with other
> Apache Projects and their parents before... Mostly when trying to
> apply namespace rules to the parent (it doesn't work).
>
> - Andrew
>
>
> On Mon, Apr 19, 2010 at 9:48 AM, Dave Brosius <db...@baybroadband.net> wrote:
>   
>> Greetings,
>>    I'm trying to introduce Ivy into a mature product where 3rdparty jars are
>> checked in to the scm. My first step is just to have ivy yank down all these
>> files, and then copy them into the locations where they currently exist,
>> that way the mult-project ant build won't need to know anything about ivy
>> (except for the first build step of pulling the files down). Once this is
>> working, I'll remove the jars from the scm, and then work on making the
>> build more ivy-like.
>>
>> So to start, i've created an ivy.xml that specifies a transitive="false"
>> configuration, and have listed all the jars that are currently in my scm.
>>
>> Many of the jars work fine, but a few have the following problem. For
>> instance here is a snippet from my ivy.xml
>>
>> .....
>>
>> <configurations>
>>   <conf name="default" transitive="false"/>
>> </configurations>
>> <dependencies>
>>   <dependency org="org.apache.ant" name="ant" rev="${ant.version}"
>> conf="*->*,!sources,!javadoc"/>
>>   ....
>> ....
>> ...
>>
>>
>> When run with ant -v
>>
>> I get
>>
>> [ivy:retrieve] == resolving dependencies
>> acme#3rdparty;working@dbrosius->org.apache.ant#ant;1.7.1
>> ....
>> <skip some stuff>
>> ....
>> http://repo1.maven.org/maven2/org/apache/ant/ant/1.7.1/ant-1.7.1.pom
>> [ivy:retrieve]     public: found md file for org.apache.ant#ant;1.7.1
>> [ivy:retrieve]         =>
>> http://repo1.maven.org/maven2/org/apache/ant/ant/1.7.1/ant-1.7.1.pom
>> (1.7.1)
>> [ivy:retrieve] downloading
>> http://repo1.maven.org/maven2/org/apache/ant/ant/1.7.1/ant-1.7.1.pom ...
>> [ivy:retrieve]     public: downloading
>> http://repo1.maven.org/maven2/org/apache/ant/ant/1.7.1/ant-1.7.1.pom
>> [ivy:retrieve]     public: downloading
>> http://repo1.maven.org/maven2/org/apache/ant/ant/1.7.1/ant-1.7.1.pom.sha1
>> [ivy:retrieve] sha1 OK for
>> http://repo1.maven.org/maven2/org/apache/ant/ant/1.7.1/ant-1.7.1.pom
>> [ivy:retrieve]     [SUCCESSFUL ]
>> org.apache.ant#ant;1.7.1!ant.pom(pom.original) (606ms)
>> [ivy:retrieve] default: Checking cache for: dependency:
>> org.apache.ant#ant-parent;1.7.1 {}
>> [ivy:retrieve]         tried
>> /usr/share/apache-ivy-2.1.0/local/org.apache.ant/ant-parent/1.7.1/ivys/ivy.xml
>> [ivy:retrieve]         tried
>> /usr/share/apache-ivy-2.1.0/local/org.apache.ant/ant-parent/1.7.1/jars/ant-parent.jar
>> [ivy:retrieve]     local: no ivy file nor artifact found for
>> org.apache.ant#ant-parent;1.7.1
>> ....
>> <skip some stuff>
>> ....
>>
>> [ivy:retrieve]         tried
>> http://repo1.maven.org/maven2/org/apache/ant/ant-parent/1.7.1/ant-parent-1.7.1.pom
>> [ivy:retrieve]     public: found md file for org.apache.ant#ant-parent;1.7.1
>> [ivy:retrieve]         =>
>> http://repo1.maven.org/maven2/org/apache/ant/ant-parent/1.7.1/ant-parent-1.7.1.pom
>> (1.7.1)
>> [ivy:retrieve] downloading
>> http://repo1.maven.org/maven2/org/apache/ant/ant-parent/1.7.1/ant-parent-1.7.1.pom
>> ...
>> [ivy:retrieve]     public: downloading
>> http://repo1.maven.org/maven2/org/apache/ant/ant-parent/1.7.1/ant-parent-1.7.1.pom
>> [ivy:retrieve]     public: downloading
>> http://repo1.maven.org/maven2/org/apache/ant/ant-parent/1.7.1/ant-parent-1.7.1.pom.sha1
>> [ivy:retrieve] sha1 OK for
>> http://repo1.maven.org/maven2/org/apache/ant/ant-parent/1.7.1/ant-parent-1.7.1.pom
>> [ivy:retrieve]     [SUCCESSFUL ]
>> ....
>> <skip some stuff>
>> ....
>> http://repo1.maven.org/maven2/org/apache/ant/ant-parent/1.7.1/ant-parent-1.7.1.jar
>> [ivy:retrieve] CLIENT ERROR: Not Found
>>
>>
>> So ivy can't find ant-parent in the repo1.maven.org repo. Now I suppose that
>> is a problem with that repository, but why is ivy trying to download that
>> file, since i specified no dependencies? I don't want or need that file.
>>
>> How do i get around this?
>> dave
>>
>>
>>     
>
>
>   


Re: Queston about transitive="false"

Posted by Andrew Thorburn <nz...@gmail.com>.
Unfortunately, it's not a dependency - it's a parent. It may be
necessary to depend on Ant Parent first, then Ant, e.g.

<dependency org="org.apache.ant" name="ant-parent"
rev="${ant.version}" conf="*->*,!sources,!javadoc"/>
<dependency org="org.apache.ant" name="ant" rev="${ant.version}"
conf="*->*,!sources,!javadoc"/>

I'm not sure if that will fix it, but I've had issues with other
Apache Projects and their parents before... Mostly when trying to
apply namespace rules to the parent (it doesn't work).

- Andrew


On Mon, Apr 19, 2010 at 9:48 AM, Dave Brosius <db...@baybroadband.net> wrote:
> Greetings,
>    I'm trying to introduce Ivy into a mature product where 3rdparty jars are
> checked in to the scm. My first step is just to have ivy yank down all these
> files, and then copy them into the locations where they currently exist,
> that way the mult-project ant build won't need to know anything about ivy
> (except for the first build step of pulling the files down). Once this is
> working, I'll remove the jars from the scm, and then work on making the
> build more ivy-like.
>
> So to start, i've created an ivy.xml that specifies a transitive="false"
> configuration, and have listed all the jars that are currently in my scm.
>
> Many of the jars work fine, but a few have the following problem. For
> instance here is a snippet from my ivy.xml
>
> .....
>
> <configurations>
>   <conf name="default" transitive="false"/>
> </configurations>
> <dependencies>
>   <dependency org="org.apache.ant" name="ant" rev="${ant.version}"
> conf="*->*,!sources,!javadoc"/>
>   ....
> ....
> ...
>
>
> When run with ant -v
>
> I get
>
> [ivy:retrieve] == resolving dependencies
> acme#3rdparty;working@dbrosius->org.apache.ant#ant;1.7.1
> ....
> <skip some stuff>
> ....
> http://repo1.maven.org/maven2/org/apache/ant/ant/1.7.1/ant-1.7.1.pom
> [ivy:retrieve]     public: found md file for org.apache.ant#ant;1.7.1
> [ivy:retrieve]         =>
> http://repo1.maven.org/maven2/org/apache/ant/ant/1.7.1/ant-1.7.1.pom
> (1.7.1)
> [ivy:retrieve] downloading
> http://repo1.maven.org/maven2/org/apache/ant/ant/1.7.1/ant-1.7.1.pom ...
> [ivy:retrieve]     public: downloading
> http://repo1.maven.org/maven2/org/apache/ant/ant/1.7.1/ant-1.7.1.pom
> [ivy:retrieve]     public: downloading
> http://repo1.maven.org/maven2/org/apache/ant/ant/1.7.1/ant-1.7.1.pom.sha1
> [ivy:retrieve] sha1 OK for
> http://repo1.maven.org/maven2/org/apache/ant/ant/1.7.1/ant-1.7.1.pom
> [ivy:retrieve]     [SUCCESSFUL ]
> org.apache.ant#ant;1.7.1!ant.pom(pom.original) (606ms)
> [ivy:retrieve] default: Checking cache for: dependency:
> org.apache.ant#ant-parent;1.7.1 {}
> [ivy:retrieve]         tried
> /usr/share/apache-ivy-2.1.0/local/org.apache.ant/ant-parent/1.7.1/ivys/ivy.xml
> [ivy:retrieve]         tried
> /usr/share/apache-ivy-2.1.0/local/org.apache.ant/ant-parent/1.7.1/jars/ant-parent.jar
> [ivy:retrieve]     local: no ivy file nor artifact found for
> org.apache.ant#ant-parent;1.7.1
> ....
> <skip some stuff>
> ....
>
> [ivy:retrieve]         tried
> http://repo1.maven.org/maven2/org/apache/ant/ant-parent/1.7.1/ant-parent-1.7.1.pom
> [ivy:retrieve]     public: found md file for org.apache.ant#ant-parent;1.7.1
> [ivy:retrieve]         =>
> http://repo1.maven.org/maven2/org/apache/ant/ant-parent/1.7.1/ant-parent-1.7.1.pom
> (1.7.1)
> [ivy:retrieve] downloading
> http://repo1.maven.org/maven2/org/apache/ant/ant-parent/1.7.1/ant-parent-1.7.1.pom
> ...
> [ivy:retrieve]     public: downloading
> http://repo1.maven.org/maven2/org/apache/ant/ant-parent/1.7.1/ant-parent-1.7.1.pom
> [ivy:retrieve]     public: downloading
> http://repo1.maven.org/maven2/org/apache/ant/ant-parent/1.7.1/ant-parent-1.7.1.pom.sha1
> [ivy:retrieve] sha1 OK for
> http://repo1.maven.org/maven2/org/apache/ant/ant-parent/1.7.1/ant-parent-1.7.1.pom
> [ivy:retrieve]     [SUCCESSFUL ]
> ....
> <skip some stuff>
> ....
> http://repo1.maven.org/maven2/org/apache/ant/ant-parent/1.7.1/ant-parent-1.7.1.jar
> [ivy:retrieve] CLIENT ERROR: Not Found
>
>
> So ivy can't find ant-parent in the repo1.maven.org repo. Now I suppose that
> is a problem with that repository, but why is ivy trying to download that
> file, since i specified no dependencies? I don't want or need that file.
>
> How do i get around this?
> dave
>
>

Re: Queston about transitive="false"

Posted by Dave Brosius <db...@baybroadband.net>.
<ivysettings>
    <properties file="ivysettings.properties"/>
    <settings defaultResolver="default"/>
    <include file="${ivy.settings.dir}/ivyconf-ibiblio.xml"/>
    <include file="${ivy.settings.dir}/ivyconf-jboss.xml"/>
    <include file="${ivy.settings.dir}/ivyconf-archiva.xml"/>
    <include url="${ivy.default.settings.dir}/ivysettings-public.xml"/>
    <include url="${ivy.default.settings.dir}/ivysettings-shared.xml"/>
    <include url="${ivy.default.settings.dir}/ivysettings-local.xml"/>
    <include url="${ivy.default.settings.dir}/ivysettings-main-chain.xml"/>
    <include file="${ivy.settings.dir}/ivysettings-default-chain.xml"/>
</ivysettings>

where ivyconf-ibiblio.xml is

<ivysettings>
    <resolvers>
        <url name="ibiblio" m2compatible="true">
            <artifact 
pattern="http://mirrors.ibiblio.org/pub/mirrors/maven2/[organisation]/[module]/[revision]/[artifact]-[revision].[ext]"/>
        </url>
    </resolvers>
</ivysettings>



Maarten Coene wrote:
> I just tried myself and I didn't had a problem with the snippet from your ivy.xml.
> Could you post your settings.xml as well?
>
> Maarten
>
>
>
>
> ----- Original Message ----
> From: Dave Brosius <db...@baybroadband.net>
> To: ivy-user@ant.apache.org
> Sent: Tue, April 20, 2010 3:14:32 AM
> Subject: Re: Queston about transitive="false"
>
> I am using ivy 2.1.0
>
> Maarten Coene wrote:
>   
>> Which Ivy version do you use?
>> This should work with Ivy 2.1.0... 
>> Maarten
>>
>>
>>
>>
>> ----- Original Message ----
>> From: Dave Brosius <db...@baybroadband.net>
>> To: ivy-user@ant.apache.org
>> Sent: Sun, April 18, 2010 11:48:17 PM
>> Subject: Queston about transitive="false"
>>
>> Greetings,
>>     I'm trying to introduce Ivy into a mature product where 3rdparty jars are checked in to the scm. My first step is just to have ivy yank down all these files, and then copy them into the locations where they currently exist, that way the mult-project ant build won't need to know anything about ivy (except for the first build step of pulling the files down). Once this is working, I'll remove the jars from the scm, and then work on making the build more ivy-like.
>>
>> So to start, i've created an ivy.xml that specifies a transitive="false" configuration, and have listed all the jars that are currently in my scm.
>>
>> Many of the jars work fine, but a few have the following problem. For instance here is a snippet from my ivy.xml
>>
>> .....
>>
>> <configurations>
>>    <conf name="default" transitive="false"/>
>> </configurations>
>> <dependencies>
>>    <dependency org="org.apache.ant" name="ant" rev="${ant.version}" conf="*->*,!sources,!javadoc"/>
>>    ....
>> ....
>> ...
>>
>>
>> When run with ant -v
>>
>> I get
>>
>> [ivy:retrieve] == resolving dependencies
>> acme#3rdparty;working@dbrosius->org.apache.ant#ant;1.7.1
>> ....
>> <skip some stuff>
>> ....
>> http://repo1.maven.org/maven2/org/apache/ant/ant/1.7.1/ant-1.7.1.pom
>> [ivy:retrieve]     public: found md file for org.apache.ant#ant;1.7.1
>> [ivy:retrieve]         =>
>> http://repo1.maven.org/maven2/org/apache/ant/ant/1.7.1/ant-1.7.1.pom
>> (1.7.1)
>> [ivy:retrieve] downloading
>> http://repo1.maven.org/maven2/org/apache/ant/ant/1.7.1/ant-1.7.1.pom ...
>> [ivy:retrieve]     public: downloading
>> http://repo1.maven.org/maven2/org/apache/ant/ant/1.7.1/ant-1.7.1.pom
>> [ivy:retrieve]     public: downloading
>> http://repo1.maven.org/maven2/org/apache/ant/ant/1.7.1/ant-1.7.1.pom.sha1
>> [ivy:retrieve] sha1 OK for
>> http://repo1.maven.org/maven2/org/apache/ant/ant/1.7.1/ant-1.7.1.pom
>> [ivy:retrieve]     [SUCCESSFUL ]
>> org.apache.ant#ant;1.7.1!ant.pom(pom.original) (606ms)
>> [ivy:retrieve] default: Checking cache for: dependency:
>> org.apache.ant#ant-parent;1.7.1 {}
>> [ivy:retrieve]         tried
>> /usr/share/apache-ivy-2.1.0/local/org.apache.ant/ant-parent/1.7.1/ivys/ivy.xml [ivy:retrieve]         tried
>> /usr/share/apache-ivy-2.1.0/local/org.apache.ant/ant-parent/1.7.1/jars/ant-parent.jar [ivy:retrieve]     local: no ivy file nor artifact found for
>> org.apache.ant#ant-parent;1.7.1
>> ....
>> <skip some stuff>
>> ....
>>
>> [ivy:retrieve]         tried
>> http://repo1.maven.org/maven2/org/apache/ant/ant-parent/1.7.1/ant-parent-1.7.1.pom [ivy:retrieve]     public: found md file for org.apache.ant#ant-parent;1.7.1
>> [ivy:retrieve]         =>
>> http://repo1.maven.org/maven2/org/apache/ant/ant-parent/1.7.1/ant-parent-1.7.1.pom (1.7.1)
>> [ivy:retrieve] downloading
>> http://repo1.maven.org/maven2/org/apache/ant/ant-parent/1.7.1/ant-parent-1.7.1.pom ...
>> [ivy:retrieve]     public: downloading
>> http://repo1.maven.org/maven2/org/apache/ant/ant-parent/1.7.1/ant-parent-1.7.1.pom [ivy:retrieve]     public: downloading
>> http://repo1.maven.org/maven2/org/apache/ant/ant-parent/1.7.1/ant-parent-1.7.1.pom.sha1 [ivy:retrieve] sha1 OK for
>> http://repo1.maven.org/maven2/org/apache/ant/ant-parent/1.7.1/ant-parent-1.7.1.pom [ivy:retrieve]     [SUCCESSFUL ]
>> ....
>> <skip some stuff>
>> ....
>> http://repo1.maven.org/maven2/org/apache/ant/ant-parent/1.7.1/ant-parent-1.7.1.jar [ivy:retrieve] CLIENT ERROR: Not Found
>>
>>
>> So ivy can't find ant-parent in the repo1.maven.org repo. Now I suppose that is a problem with that repository, but why is ivy trying to download that file, since i specified no dependencies? I don't want or need that file.
>>
>> How do i get around this?
>> dave
>>
>>
>>      
>>
>>  
>>     
>
>
>       
>
>
>   


Re: Queston about transitive="false"

Posted by Maarten Coene <ma...@yahoo.com>.
I just tried myself and I didn't had a problem with the snippet from your ivy.xml.
Could you post your settings.xml as well?

Maarten




----- Original Message ----
From: Dave Brosius <db...@baybroadband.net>
To: ivy-user@ant.apache.org
Sent: Tue, April 20, 2010 3:14:32 AM
Subject: Re: Queston about transitive="false"

I am using ivy 2.1.0

Maarten Coene wrote:
> Which Ivy version do you use?
> This should work with Ivy 2.1.0... 
> Maarten
> 
> 
> 
> 
> ----- Original Message ----
> From: Dave Brosius <db...@baybroadband.net>
> To: ivy-user@ant.apache.org
> Sent: Sun, April 18, 2010 11:48:17 PM
> Subject: Queston about transitive="false"
> 
> Greetings,
>     I'm trying to introduce Ivy into a mature product where 3rdparty jars are checked in to the scm. My first step is just to have ivy yank down all these files, and then copy them into the locations where they currently exist, that way the mult-project ant build won't need to know anything about ivy (except for the first build step of pulling the files down). Once this is working, I'll remove the jars from the scm, and then work on making the build more ivy-like.
> 
> So to start, i've created an ivy.xml that specifies a transitive="false" configuration, and have listed all the jars that are currently in my scm.
> 
> Many of the jars work fine, but a few have the following problem. For instance here is a snippet from my ivy.xml
> 
> .....
> 
> <configurations>
>    <conf name="default" transitive="false"/>
> </configurations>
> <dependencies>
>    <dependency org="org.apache.ant" name="ant" rev="${ant.version}" conf="*->*,!sources,!javadoc"/>
>    ....
> ....
> ...
> 
> 
> When run with ant -v
> 
> I get
> 
> [ivy:retrieve] == resolving dependencies
> acme#3rdparty;working@dbrosius->org.apache.ant#ant;1.7.1
> ....
> <skip some stuff>
> ....
> http://repo1.maven.org/maven2/org/apache/ant/ant/1.7.1/ant-1.7.1.pom
> [ivy:retrieve]     public: found md file for org.apache.ant#ant;1.7.1
> [ivy:retrieve]         =>
> http://repo1.maven.org/maven2/org/apache/ant/ant/1.7.1/ant-1.7.1.pom
> (1.7.1)
> [ivy:retrieve] downloading
> http://repo1.maven.org/maven2/org/apache/ant/ant/1.7.1/ant-1.7.1.pom ...
> [ivy:retrieve]     public: downloading
> http://repo1.maven.org/maven2/org/apache/ant/ant/1.7.1/ant-1.7.1.pom
> [ivy:retrieve]     public: downloading
> http://repo1.maven.org/maven2/org/apache/ant/ant/1.7.1/ant-1.7.1.pom.sha1
> [ivy:retrieve] sha1 OK for
> http://repo1.maven.org/maven2/org/apache/ant/ant/1.7.1/ant-1.7.1.pom
> [ivy:retrieve]     [SUCCESSFUL ]
> org.apache.ant#ant;1.7.1!ant.pom(pom.original) (606ms)
> [ivy:retrieve] default: Checking cache for: dependency:
> org.apache.ant#ant-parent;1.7.1 {}
> [ivy:retrieve]         tried
> /usr/share/apache-ivy-2.1.0/local/org.apache.ant/ant-parent/1.7.1/ivys/ivy.xml [ivy:retrieve]         tried
> /usr/share/apache-ivy-2.1.0/local/org.apache.ant/ant-parent/1.7.1/jars/ant-parent.jar [ivy:retrieve]     local: no ivy file nor artifact found for
> org.apache.ant#ant-parent;1.7.1
> ....
> <skip some stuff>
> ....
> 
> [ivy:retrieve]         tried
> http://repo1.maven.org/maven2/org/apache/ant/ant-parent/1.7.1/ant-parent-1.7.1.pom [ivy:retrieve]     public: found md file for org.apache.ant#ant-parent;1.7.1
> [ivy:retrieve]         =>
> http://repo1.maven.org/maven2/org/apache/ant/ant-parent/1.7.1/ant-parent-1.7.1.pom (1.7.1)
> [ivy:retrieve] downloading
> http://repo1.maven.org/maven2/org/apache/ant/ant-parent/1.7.1/ant-parent-1.7.1.pom ...
> [ivy:retrieve]     public: downloading
> http://repo1.maven.org/maven2/org/apache/ant/ant-parent/1.7.1/ant-parent-1.7.1.pom [ivy:retrieve]     public: downloading
> http://repo1.maven.org/maven2/org/apache/ant/ant-parent/1.7.1/ant-parent-1.7.1.pom.sha1 [ivy:retrieve] sha1 OK for
> http://repo1.maven.org/maven2/org/apache/ant/ant-parent/1.7.1/ant-parent-1.7.1.pom [ivy:retrieve]     [SUCCESSFUL ]
> ....
> <skip some stuff>
> ....
> http://repo1.maven.org/maven2/org/apache/ant/ant-parent/1.7.1/ant-parent-1.7.1.jar [ivy:retrieve] CLIENT ERROR: Not Found
> 
> 
> So ivy can't find ant-parent in the repo1.maven.org repo. Now I suppose that is a problem with that repository, but why is ivy trying to download that file, since i specified no dependencies? I don't want or need that file.
> 
> How do i get around this?
> dave
> 
> 
>      
> 
>  


      

Re: Queston about transitive="false"

Posted by Dave Brosius <db...@baybroadband.net>.
I am using ivy 2.1.0

Maarten Coene wrote:
> Which Ivy version do you use?
> This should work with Ivy 2.1.0... 
>
> Maarten
>
>
>
>
> ----- Original Message ----
> From: Dave Brosius <db...@baybroadband.net>
> To: ivy-user@ant.apache.org
> Sent: Sun, April 18, 2010 11:48:17 PM
> Subject: Queston about transitive="false"
>
> Greetings,
>     I'm trying to introduce Ivy into a mature product where 3rdparty jars are checked in to the scm. My first step is just to have ivy yank down all these files, and then copy them into the locations where they currently exist, that way the mult-project ant build won't need to know anything about ivy (except for the first build step of pulling the files down). Once this is working, I'll remove the jars from the scm, and then work on making the build more ivy-like.
>
> So to start, i've created an ivy.xml that specifies a transitive="false" configuration, and have listed all the jars that are currently in my scm.
>
> Many of the jars work fine, but a few have the following problem. For instance here is a snippet from my ivy.xml
>
> .....
>
> <configurations>
>    <conf name="default" transitive="false"/>
> </configurations>
> <dependencies>
>    <dependency org="org.apache.ant" name="ant" rev="${ant.version}" conf="*->*,!sources,!javadoc"/>
>    ....
> ....
> ...
>
>
> When run with ant -v
>
> I get
>
> [ivy:retrieve] == resolving dependencies
> acme#3rdparty;working@dbrosius->org.apache.ant#ant;1.7.1
> ....
> <skip some stuff>
> ....
> http://repo1.maven.org/maven2/org/apache/ant/ant/1.7.1/ant-1.7.1.pom
> [ivy:retrieve]     public: found md file for org.apache.ant#ant;1.7.1
> [ivy:retrieve]         =>
> http://repo1.maven.org/maven2/org/apache/ant/ant/1.7.1/ant-1.7.1.pom
> (1.7.1)
> [ivy:retrieve] downloading
> http://repo1.maven.org/maven2/org/apache/ant/ant/1.7.1/ant-1.7.1.pom ...
> [ivy:retrieve]     public: downloading
> http://repo1.maven.org/maven2/org/apache/ant/ant/1.7.1/ant-1.7.1.pom
> [ivy:retrieve]     public: downloading
> http://repo1.maven.org/maven2/org/apache/ant/ant/1.7.1/ant-1.7.1.pom.sha1
> [ivy:retrieve] sha1 OK for
> http://repo1.maven.org/maven2/org/apache/ant/ant/1.7.1/ant-1.7.1.pom
> [ivy:retrieve]     [SUCCESSFUL ]
> org.apache.ant#ant;1.7.1!ant.pom(pom.original) (606ms)
> [ivy:retrieve] default: Checking cache for: dependency:
> org.apache.ant#ant-parent;1.7.1 {}
> [ivy:retrieve]         tried
> /usr/share/apache-ivy-2.1.0/local/org.apache.ant/ant-parent/1.7.1/ivys/ivy.xml 
> [ivy:retrieve]         tried
> /usr/share/apache-ivy-2.1.0/local/org.apache.ant/ant-parent/1.7.1/jars/ant-parent.jar 
> [ivy:retrieve]     local: no ivy file nor artifact found for
> org.apache.ant#ant-parent;1.7.1
> ....
> <skip some stuff>
> ....
>
> [ivy:retrieve]         tried
> http://repo1.maven.org/maven2/org/apache/ant/ant-parent/1.7.1/ant-parent-1.7.1.pom 
> [ivy:retrieve]     public: found md file for org.apache.ant#ant-parent;1.7.1
> [ivy:retrieve]         =>
> http://repo1.maven.org/maven2/org/apache/ant/ant-parent/1.7.1/ant-parent-1.7.1.pom 
> (1.7.1)
> [ivy:retrieve] downloading
> http://repo1.maven.org/maven2/org/apache/ant/ant-parent/1.7.1/ant-parent-1.7.1.pom 
> ...
> [ivy:retrieve]     public: downloading
> http://repo1.maven.org/maven2/org/apache/ant/ant-parent/1.7.1/ant-parent-1.7.1.pom 
> [ivy:retrieve]     public: downloading
> http://repo1.maven.org/maven2/org/apache/ant/ant-parent/1.7.1/ant-parent-1.7.1.pom.sha1 
> [ivy:retrieve] sha1 OK for
> http://repo1.maven.org/maven2/org/apache/ant/ant-parent/1.7.1/ant-parent-1.7.1.pom 
> [ivy:retrieve]     [SUCCESSFUL ]
> ....
> <skip some stuff>
> ....
> http://repo1.maven.org/maven2/org/apache/ant/ant-parent/1.7.1/ant-parent-1.7.1.jar 
> [ivy:retrieve] CLIENT ERROR: Not Found
>
>
> So ivy can't find ant-parent in the repo1.maven.org repo. Now I suppose that is a problem with that repository, but why is ivy trying to download that file, since i specified no dependencies? I don't want or need that file.
>
> How do i get around this?
> dave
>
>
>       
>
>
>   


Re: Queston about transitive="false"

Posted by Maarten Coene <ma...@yahoo.com>.
Which Ivy version do you use?
This should work with Ivy 2.1.0... 

Maarten




----- Original Message ----
From: Dave Brosius <db...@baybroadband.net>
To: ivy-user@ant.apache.org
Sent: Sun, April 18, 2010 11:48:17 PM
Subject: Queston about transitive="false"

Greetings,
    I'm trying to introduce Ivy into a mature product where 3rdparty jars are checked in to the scm. My first step is just to have ivy yank down all these files, and then copy them into the locations where they currently exist, that way the mult-project ant build won't need to know anything about ivy (except for the first build step of pulling the files down). Once this is working, I'll remove the jars from the scm, and then work on making the build more ivy-like.

So to start, i've created an ivy.xml that specifies a transitive="false" configuration, and have listed all the jars that are currently in my scm.

Many of the jars work fine, but a few have the following problem. For instance here is a snippet from my ivy.xml

.....

<configurations>
   <conf name="default" transitive="false"/>
</configurations>
<dependencies>
   <dependency org="org.apache.ant" name="ant" rev="${ant.version}" conf="*->*,!sources,!javadoc"/>
   ....
....
...


When run with ant -v

I get

[ivy:retrieve] == resolving dependencies
acme#3rdparty;working@dbrosius->org.apache.ant#ant;1.7.1
....
<skip some stuff>
....
http://repo1.maven.org/maven2/org/apache/ant/ant/1.7.1/ant-1.7.1.pom
[ivy:retrieve]     public: found md file for org.apache.ant#ant;1.7.1
[ivy:retrieve]         =>
http://repo1.maven.org/maven2/org/apache/ant/ant/1.7.1/ant-1.7.1.pom
(1.7.1)
[ivy:retrieve] downloading
http://repo1.maven.org/maven2/org/apache/ant/ant/1.7.1/ant-1.7.1.pom ...
[ivy:retrieve]     public: downloading
http://repo1.maven.org/maven2/org/apache/ant/ant/1.7.1/ant-1.7.1.pom
[ivy:retrieve]     public: downloading
http://repo1.maven.org/maven2/org/apache/ant/ant/1.7.1/ant-1.7.1.pom.sha1
[ivy:retrieve] sha1 OK for
http://repo1.maven.org/maven2/org/apache/ant/ant/1.7.1/ant-1.7.1.pom
[ivy:retrieve]     [SUCCESSFUL ]
org.apache.ant#ant;1.7.1!ant.pom(pom.original) (606ms)
[ivy:retrieve] default: Checking cache for: dependency:
org.apache.ant#ant-parent;1.7.1 {}
[ivy:retrieve]         tried
/usr/share/apache-ivy-2.1.0/local/org.apache.ant/ant-parent/1.7.1/ivys/ivy.xml 
[ivy:retrieve]         tried
/usr/share/apache-ivy-2.1.0/local/org.apache.ant/ant-parent/1.7.1/jars/ant-parent.jar 
[ivy:retrieve]     local: no ivy file nor artifact found for
org.apache.ant#ant-parent;1.7.1
....
<skip some stuff>
....

[ivy:retrieve]         tried
http://repo1.maven.org/maven2/org/apache/ant/ant-parent/1.7.1/ant-parent-1.7.1.pom 
[ivy:retrieve]     public: found md file for org.apache.ant#ant-parent;1.7.1
[ivy:retrieve]         =>
http://repo1.maven.org/maven2/org/apache/ant/ant-parent/1.7.1/ant-parent-1.7.1.pom 
(1.7.1)
[ivy:retrieve] downloading
http://repo1.maven.org/maven2/org/apache/ant/ant-parent/1.7.1/ant-parent-1.7.1.pom 
...
[ivy:retrieve]     public: downloading
http://repo1.maven.org/maven2/org/apache/ant/ant-parent/1.7.1/ant-parent-1.7.1.pom 
[ivy:retrieve]     public: downloading
http://repo1.maven.org/maven2/org/apache/ant/ant-parent/1.7.1/ant-parent-1.7.1.pom.sha1 
[ivy:retrieve] sha1 OK for
http://repo1.maven.org/maven2/org/apache/ant/ant-parent/1.7.1/ant-parent-1.7.1.pom 
[ivy:retrieve]     [SUCCESSFUL ]
....
<skip some stuff>
....
http://repo1.maven.org/maven2/org/apache/ant/ant-parent/1.7.1/ant-parent-1.7.1.jar 
[ivy:retrieve] CLIENT ERROR: Not Found


So ivy can't find ant-parent in the repo1.maven.org repo. Now I suppose that is a problem with that repository, but why is ivy trying to download that file, since i specified no dependencies? I don't want or need that file.

How do i get around this?
dave