ant-ivy-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Xavier Hanin" <xavier.ha...@gmail.com>
Subject Re: exclude dependency but resolve *its* dependencies
Date Tue, 22 Apr 2008 08:06:46 GMT
On Tue, Apr 22, 2008 at 9:57 AM, Clements Mark <clements@ofac.ch> wrote:

>
>
> > -----Original Message-----
> > From: Xavier Hanin [mailto:xavier.hanin@gmail.com]
> > On Mon, Apr 21, 2008 at 4:31 PM, Clements Mark <clements@ofac.ch>
> wrote:
> > > I would like to be able to define a dependency in ivy.xml something
> like
> > > this:
> > >
> > >  <dependency  name="OFACOF" rev="HEAD" conf="compile,run"
> > > changing="true" >
> > >     <exclude name="OFACOF"/>
> > >  </dependency>
> > >
> > > ie resolving and retrieving the dependencies of OFACOF, but not have
> > > OFACOF itself available from Ivy (I want to supply it from a local
> > > project in Eclipse).
> > >
> > > Without publishing my integration version of OFACOF to a local
> > > repository, is it possible to do this? If I've missed something
> obvious
> > > in the docs could someone please point me to it?
> >
> >
> > The exclude you use should work, Ivy should exclude the dependencies
> only
> > if
> > you exclude the whole module, not the artifacts. Which artifact(s)
> does
> > OFACOF publish?
> Hi,
>
> OFACOF publishes
>
> <publications>
>        <artifact name="OFACOF" type="jar"/>
>        <artifact name="OFACOF" type="source" ext="src.jar"/>
> </publications>
>
> I've tried excluding the artifacts by type
>
> <dependency  name="OFACOF" rev="HEAD" conf="compile,run" changing="true"
> >
>
>         <exclude name="OFACOF" type="jar"/>
>        <exclude name="OFACOF" type="source"/>
>
> </dependency>
>
> But I can still see OFACOF-HEAD.jar in the list for ivy.xml in Eclipse.
> As stated in my reply to Jing, I don't think it's a problem as the
> runner/debugger loads the local project first when it is specified as a
> required project.

Ok, so your problem is solved, but we still need to investigate to see if
artifact exclusion still works in Ivy. Could you open an issue in JIRA?

Xavier


>
>
> Thanks again,
>
> Mark
>
>
>


-- 
Xavier Hanin - Independent Java Consultant
http://xhab.blogspot.com/
http://ant.apache.org/ivy/
http://www.xoocode.org/

Mime
  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message