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 Michael Laccetti <mi...@s2g.ca> on 2008/05/05 18:51:32 UTC
Exclusions not being excluded
This is magic, since the exclusions were working fine on Friday, and the Ivy
library hasn't changed. I'm at a serious loss here.
The important part:
<dependency org="org.springframework" name="spring-web" rev="2.5.4">
<exclude org="javax.faces" />
<exclude org="struts" />
<exclude org="org.apache.axis" />
</dependency>
And yet, when I run ant, I see the following:
[ivy:resolve] found org.springframework#spring-web;2.5.4 in ibiblio
[ivy:resolve] found javax.faces#jsf-api;1.1 in ibiblio
[ivy:resolve] found commons-beanutils#commons-beanutils;1.7.0 in jboss
[ivy:resolve] found commons-fileupload#commons-fileupload;1.2 in jboss
[ivy:resolve] found commons-httpclient#commons-httpclient;3.1 in ibiblio
[ivy:resolve] found commons-codec#commons-codec;1.2 in jboss
[ivy:resolve] found org.apache.axis#axis;1.4 in ibiblio
[ivy:resolve] found struts#struts;1.2.9 in ibiblio
Why would this suddenly change functionality? Did I have too much coffee?
Not enough? The ivy.xml file in its full glory can be found here:
http://papernapkin.org/pastebin/view/747/
Mike
-----
--
Michael Laccetti (416)558-9718
S2G Limited http://www.s2g.ca/
--
View this message in context: http://www.nabble.com/Exclusions-not-being-excluded-tp17065941p17065941.html
Sent from the ivy-user mailing list archive at Nabble.com.
Re: Exclusions not being excluded
Posted by oakridge <ce...@yahoo.com>.
bug report filed:
https://issues.apache.org/jira/browse/IVY-820
--
View this message in context: http://www.nabble.com/Exclusions-not-being-excluded-tp17065941p17411257.html
Sent from the ivy-user mailing list archive at Nabble.com.
Re: Exclusions not being excluded
Posted by Xavier Hanin <xa...@gmail.com>.
I haven't had time to investigate more so far, but since you are several to
have troubles with transitive dependency exclusion, I think you can raise an
issue in JIRA.
Xavier
On Fri, May 16, 2008 at 6:10 PM, Michael Laccetti <mi...@s2g.ca> wrote:
>
> It hasn't, yet, though I'm having problems with the dependency exclusion,
> not
> the global override. To "fix" a similar problem to yours with Hibernate, I
> had to do some dirty-ish hacks. Here is a quick sample:
>
> <!-- Dependencies -->
> <dependency org="org.springframework" name="spring-orm" rev="2.5.4">
> <exclude org="org.hibernate" />
> </dependency>
> <dependency org="org.hibernate" name="hibernate" rev="3.2.1.ga">
> <!-- some exclusions here for caching and other stuff I don't want
> to use
> -->
> </dependency>
>
> <!-- Global Exclusions -->
> <exclude org="cglib" module="cglib" />
>
> My Ivy configuration is pretty large, as I had to go through and exclude
> things from a variety of imports to ensure they'd stay out. Even so,
> Struts
> is still showing up, even though I have told it not to.
>
>
> oakridge wrote:
> >
> > Michael,
> >
> > I am not sure if the problem you were having was solved, but I have found
> > a bug or a missing feature. Please see my post for more information:
> >
> >
> http://www.nabble.com/Global-and-Local-Excludes-Being-Ignored-By-Ivy--Config-Prblm-of-Bug---td17262577.html
> >
> > In a nutshell, Ivy doesn't seem to respect global excludes for transitive
> > dependencies. This is the issue I experienced, but it seems unlikely to
> > be your direct problem. Sorry, I didn't intend to threadjack since I
> > thought my issue was one and the same.
> >
>
>
> -----
> --
> Michael Laccetti (416)558-9718
> S2G Limited http://www.s2g.ca/
> --
> View this message in context:
> http://www.nabble.com/Exclusions-not-being-excluded-tp17065941p17278492.html
> Sent from the ivy-user mailing list archive at Nabble.com.
>
>
--
Xavier Hanin - Independent Java Consultant
http://xhab.blogspot.com/
http://ant.apache.org/ivy/
http://www.xoocode.org/
Re: Exclusions not being excluded
Posted by Michael Laccetti <mi...@s2g.ca>.
It hasn't, yet, though I'm having problems with the dependency exclusion, not
the global override. To "fix" a similar problem to yours with Hibernate, I
had to do some dirty-ish hacks. Here is a quick sample:
<!-- Dependencies -->
<dependency org="org.springframework" name="spring-orm" rev="2.5.4">
<exclude org="org.hibernate" />
</dependency>
<dependency org="org.hibernate" name="hibernate" rev="3.2.1.ga">
<!-- some exclusions here for caching and other stuff I don't want to use
-->
</dependency>
<!-- Global Exclusions -->
<exclude org="cglib" module="cglib" />
My Ivy configuration is pretty large, as I had to go through and exclude
things from a variety of imports to ensure they'd stay out. Even so, Struts
is still showing up, even though I have told it not to.
oakridge wrote:
>
> Michael,
>
> I am not sure if the problem you were having was solved, but I have found
> a bug or a missing feature. Please see my post for more information:
>
> http://www.nabble.com/Global-and-Local-Excludes-Being-Ignored-By-Ivy--Config-Prblm-of-Bug---td17262577.html
>
> In a nutshell, Ivy doesn't seem to respect global excludes for transitive
> dependencies. This is the issue I experienced, but it seems unlikely to
> be your direct problem. Sorry, I didn't intend to threadjack since I
> thought my issue was one and the same.
>
-----
--
Michael Laccetti (416)558-9718
S2G Limited http://www.s2g.ca/
--
View this message in context: http://www.nabble.com/Exclusions-not-being-excluded-tp17065941p17278492.html
Sent from the ivy-user mailing list archive at Nabble.com.
Re: Exclusions not being excluded
Posted by oakridge <ce...@yahoo.com>.
Michael,
I am not sure if the problem you were having was solved, but I have found a
bug or a missing feature. Please see my post for more information:
http://www.nabble.com/Global-and-Local-Excludes-Being-Ignored-By-Ivy--Config-Prblm-of-Bug---td17262577.html
In a nutshell, Ivy doesn't seem to respect global excludes for transitive
dependencies. This is the issue I experienced, but it seems unlikely to be
your direct problem. Sorry, I didn't intend to threadjack since I thought
my issue was one and the same.
--
View this message in context: http://www.nabble.com/Exclusions-not-being-excluded-tp17065941p17274683.html
Sent from the ivy-user mailing list archive at Nabble.com.
Re: Exclusions not being excluded
Posted by _deco_ <pa...@gmail.com>.
oakridge wrote:
>
> Michael, I am having the same issue using Ivy 2 Beta 2. Did you have any
> luck solving the problem?
>
> Thanks,
> Julian
>
The problem that i'm having is pretty similar... The exclude only works for
modules, not for organizations. Maybe as a newbie in Ivy, I'm writing the
org name wrong (Although I checked during ivy:retrieve) .
Here is part of my ivy.xml:
<dependency org="org.springframework" name="spring" rev="2.5.4">
<exclude module="jfreechart"/>
<exclude module="struts"/>
<exclude org="aspectj"/>
<exclude org="javax"/>
<exclude org="tomcat"/>
<exclude org="velocity"/>
<exclude org="opensymphony"/>
<exclude org="oro"/>
</dependency>
In the output from ivy:retrieve I don't find any jfreechart or struts, but
tomcat, velocity, etc are found.
thanks
--
View this message in context: http://www.nabble.com/Exclusions-not-being-excluded-tp17065941p17271031.html
Sent from the ivy-user mailing list archive at Nabble.com.
Re: Exclusions not being excluded
Posted by oakridge <ce...@yahoo.com>.
Michael, I am having the same issue using Ivy 2 Beta 2. Did you have any
luck solving the problem?
Thanks,
Julian
--
View this message in context: http://www.nabble.com/Exclusions-not-being-excluded-tp17065941p17260546.html
Sent from the ivy-user mailing list archive at Nabble.com.
Re: Exclusions not being excluded
Posted by Michael Laccetti <mi...@s2g.ca>.
I compiled a pre-rc1 library last week (to gain access to the override tags),
and have been using the same library. I threw it up on a webserver to make
life easier; the Ant build script pulls it down from there:
<get src="http://www.codeogre.com/dist/ivy-2.0.0.rc1.jar"
dest="${ivy.jar.file}" usetimestamp="true"/>
Xavier Hanin wrote:
>
> Are you absolutely sure the same version of Ivy was used before and after?
> And sure of the Ivy file you use? I use exclusion everyday, and they work
> just fine.
>
> Xavier
>
-----
--
Michael Laccetti (416)558-9718
S2G Limited http://www.s2g.ca/
--
View this message in context: http://www.nabble.com/Exclusions-not-being-excluded-tp17065941p17088658.html
Sent from the ivy-user mailing list archive at Nabble.com.
Re: Exclusions not being excluded
Posted by Xavier Hanin <xa...@gmail.com>.
Are you absolutely sure the same version of Ivy was used before and after?
And sure of the Ivy file you use? I use exclusion everyday, and they work
just fine.
Xavier
On Tue, May 6, 2008 at 7:19 PM, Michael Laccetti <mi...@s2g.ca> wrote:
>
> I deleted the entire .ivy2 directory, the downloaded Ivy library,
> everything.
> Still happening.
>
>
> Xavier Hanin wrote:
> >
> > This is strange. Maybe the problem comes from the cache. Did you try
> > running
> > again with a clean cache?
> >
> > Xavier
> >
>
> -----
> --
> Michael Laccetti (416)558-9718
> S2G Limited http://www.s2g.ca/
> --
> View this message in context:
> http://www.nabble.com/Exclusions-not-being-excluded-tp17065941p17088044.html
> Sent from the ivy-user mailing list archive at Nabble.com.
>
>
--
Xavier Hanin - Independent Java Consultant
http://xhab.blogspot.com/
http://ant.apache.org/ivy/
http://www.xoocode.org/
Re: Exclusions not being excluded
Posted by Michael Laccetti <mi...@s2g.ca>.
I deleted the entire .ivy2 directory, the downloaded Ivy library, everything.
Still happening.
Xavier Hanin wrote:
>
> This is strange. Maybe the problem comes from the cache. Did you try
> running
> again with a clean cache?
>
> Xavier
>
-----
--
Michael Laccetti (416)558-9718
S2G Limited http://www.s2g.ca/
--
View this message in context: http://www.nabble.com/Exclusions-not-being-excluded-tp17065941p17088044.html
Sent from the ivy-user mailing list archive at Nabble.com.
Re: Exclusions not being excluded
Posted by Xavier Hanin <xa...@gmail.com>.
This is strange. Maybe the problem comes from the cache. Did you try running
again with a clean cache?
Xavier
On Mon, May 5, 2008 at 6:51 PM, Michael Laccetti <mi...@s2g.ca> wrote:
>
> This is magic, since the exclusions were working fine on Friday, and the
> Ivy
> library hasn't changed. I'm at a serious loss here.
>
> The important part:
> <dependency org="org.springframework" name="spring-web" rev="2.5.4">
> <exclude org="javax.faces" />
> <exclude org="struts" />
> <exclude org="org.apache.axis" />
> </dependency>
>
> And yet, when I run ant, I see the following:
> [ivy:resolve] found org.springframework#spring-web;2.5.4 in ibiblio
> [ivy:resolve] found javax.faces#jsf-api;1.1 in ibiblio
> [ivy:resolve] found commons-beanutils#commons-beanutils;1.7.0 in jboss
> [ivy:resolve] found commons-fileupload#commons-fileupload;1.2 in jboss
> [ivy:resolve] found commons-httpclient#commons-httpclient;3.1 in ibiblio
> [ivy:resolve] found commons-codec#commons-codec;1.2 in jboss
> [ivy:resolve] found org.apache.axis#axis;1.4 in ibiblio
> [ivy:resolve] found struts#struts;1.2.9 in ibiblio
>
> Why would this suddenly change functionality? Did I have too much coffee?
> Not enough? The ivy.xml file in its full glory can be found here:
> http://papernapkin.org/pastebin/view/747/
>
> Mike
>
> -----
> --
> Michael Laccetti (416)558-9718
> S2G Limited http://www.s2g.ca/
> --
> View this message in context:
> http://www.nabble.com/Exclusions-not-being-excluded-tp17065941p17065941.html
> Sent from the ivy-user mailing list archive at Nabble.com.
>
>
--
Xavier Hanin - Independent Java Consultant
http://xhab.blogspot.com/
http://ant.apache.org/ivy/
http://www.xoocode.org/
Re: Exclusions not being excluded
Posted by Michael Laccetti <mi...@s2g.ca>.
Bueller? Bueller? Bueller?
Michael Laccetti wrote:
>
> Why would this suddenly change functionality? Did I have too much coffee?
> Not enough?
>
-----
--
Michael Laccetti (416)558-9718
S2G Limited http://www.s2g.ca/
--
View this message in context: http://www.nabble.com/Exclusions-not-being-excluded-tp17065941p17083142.html
Sent from the ivy-user mailing list archive at Nabble.com.