ant-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Xavier Hanin <xavier.ha...@gmail.com>
Subject Re: pom2ivy and transitive source retrieving
Date Tue, 25 Aug 2009 13:00:33 GMT
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/%3CA0B0F63671BE56498793255905162B5DB2E223@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.

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.

WDYT?

Xavier



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


-- 
Xavier Hanin - 4SH France - http://www.4sh.fr/
BordeauxJUG creator & leader - http://www.bordeauxjug.org/
Apache Ivy Creator - http://ant.apache.org/ivy/

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