You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@maven.apache.org by "thierry lach (JIRA)" <ji...@codehaus.org> on 2005/07/28 17:10:57 UTC

[jira] Commented: (MPDIST-22) Use property of dependencies to include dependencies

    [ http://jira.codehaus.org/browse/MPDIST-22?page=comments#action_43588 ] 

thierry lach commented on MPDIST-22:
------------------------------------

I've accomplished this with a postGoal against dist:prepare-bin-filesystem.  The code could be added directly to the prpare-bin-filesystem goal.

  <postGoal name="dist:prepare-bin-filesystem">
      <!-- Copy in all referenced jars -->
      <j:forEach var="lib" items="${pom.artifacts}">
        <j:set var="dep" value="${lib.dependency}"/>     
        <j:if test="${dep.getProperty('dist.bundle')=='true'}">
           <ant:copy todir="${pom.getPluginContext('maven-dist-plugin').getVariable('maven.dist.bin.assembly.dir')}" file="${lib.path}"/>  
        </j:if>  
    </j:forEach>
  </postGoal>


> Use <dist.bundle> property of dependencies to include dependencies
> ------------------------------------------------------------------
>
>          Key: MPDIST-22
>          URL: http://jira.codehaus.org/browse/MPDIST-22
>      Project: maven-dist-plugin
>         Type: Improvement
>     Reporter: Geoffrey

>
>
> Currently dist doesn't include any dependencies, but most of the time you 'll want to include most of the dependencies.
> This can be done in a ear/war like manner, with a property on the dependencies: <dist.bundle>true</dist.bundle>

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators:
   http://jira.codehaus.org/secure/Administrators.jspa
-
For more information on JIRA, see:
   http://www.atlassian.com/software/jira


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