ant-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Nicolas Lalevée <nicolas.lale...@hibnet.org>
Subject Re: pom2ivy and transitive source retrieving
Date Wed, 26 Aug 2009 12:30:03 GMT
On Tuesday 25 August 2009 15:00:33 Xavier Hanin wrote:
> 2009/8/24 Nicolas Lalevée <nicolas.lalevee@hibnet.org>
>
> > A point raised by a user of Ivy:
> >
> > http://mail-archives.apache.org/mod_mbox/ant-ivy-user/200908.mbox/%3CA0B0
> >F63671BE56498793255905162B5DB2E223@dc1.fal.local%3E Which also point to
> > these
> > https://issues.apache.org/jira/browse/IVY-325
> > https://issues.apache.org/jira/browse/IVY-1003
> >
> > The problem is about retrieving transitively sources of some artifact on
> > the
> > maven repo. Today Ivy is generating things like :
> > <publications>
> >    <artifact name="commons-validator" type="jar" ext="jar"
> > conf="master"/> <artifact name="commons-validator" type="source"
> > ext="jar"
> > conf="sources"
> > m:classifier="sources"/>
> > </publications>
> >
> > So when resolving the conf "master", we cannot get the sources. IvyDE
> > work around this by looking to every declared artifact, but with ant we
> > cannot. Shouldn't we better generate:
> > <publications>
> >    <artifact name="commons-validator" type="jar" ext="jar"
> > conf="master"/> <artifact name="commons-validator" type="source"
> > ext="jar"
> > conf="master,sources" m:classifier="sources"/>
> > </publications>
> >
> > Is there any reason not to do so ?
>
> The problem with that is how people would get only the main jar of their
> dependencies? Using an artifact type filter? That doesn't sound good IMO.

I thought types where meant to be used for that kind of use case.

> Another suggested solution is to add a sources->sources(*) in the
> dependency conf mapping, but I see 2 problems with that:
> - it makes the sources conf always transitive
> - the fallback of * doesn't really make sense
>
> So what I find would be better is to define a transitive-sources conf, and
> have a conf mapping of transitive-sources->transitive-sources(*), or even
> better  transitive-sources->transitive-sources(none) if we define 'none' as
> a special fallback conf which means no dependency conf if the required one
> does not exist. Of course we would need to do that for javadoc too.

what about transitive-sources->transitive-sources(sources) ?

Nicolas


>
> WDYT?
>
> Xavier
>
> > Nicolas
> >
> > ---------------------------------------------------------------------
> > To unsubscribe, e-mail: dev-unsubscribe@ant.apache.org
> > For additional commands, e-mail: dev-help@ant.apache.org

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@ant.apache.org
For additional commands, e-mail: dev-help@ant.apache.org


Mime
View raw message