commons-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From David Graham <grahamdavid1...@yahoo.com>
Subject Re: Distributions to include dependencies?
Date Mon, 27 Dec 2004 23:24:56 GMT
It would certainly be helpful to our users to include the dependencies in
the distro.  Otherwise, it's like trying to drive a car without the
wheels.

David

--- Henri Yandell <flamefew@gmail.com> wrote:

> Not a huge issue for things like Lang which have no dependencies, but
> for other things like Digester I think it would be a lot better if the
> binary tar.gz contained the jars it depends on?
> 
> So when I download digester-1.6, the tar.gz contains jars for
> logging-1.0.3 and beanutils-1.7. We're not forcing those versions on
> people, just providing them to save lots of searching around or
> waiting while iBiblio responds.
> 
> It seems pretty easy to do too from a maven.xml point of view:
> 
> <?xml version="1.0"?>
> <project xmlns:j="jelly:core" xmlns:ant="jelly:ant">
>   <!--
>   description="Adds dependencies to distributions"
>   -->
>   <postGoal name="dist:prepare-bin-filesystem">
>     <ant:mkdir dir="${maven.dist.bin.archive.dir}/dependencies"/>
>     <j:forEach var="dep" items="${pom.dependencies}">
>       <j:if test="${dep.getProperty('distributable')=='true'}">
>         <copy todir="${maven.dist.bin.archive.dir}/dependencies"
>
file="${maven.repo.local}/${dep.getGroupId()}/jars/${dep.getArtifact()}"/>
>       </j:if>
>     </j:forEach>
>   </postGoal>
> </project>
> 
> You'd just add:
> 
> <properties>
>   <distributable>true</distributable>
> </properties>
> 
> to a dependency.
> 
> Anyone interested?
> 
> Hen
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: commons-dev-unsubscribe@jakarta.apache.org
> For additional commands, e-mail: commons-dev-help@jakarta.apache.org
> 
> 


=====
Get Firefox!
http://www.mozilla.org/firefox/

__________________________________________________
Do You Yahoo!?
Tired of spam?  Yahoo! Mail has the best spam protection around 
http://mail.yahoo.com 

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


Mime
View raw message