Details
-
Type:
Improvement
-
Status:
Open
-
Priority:
Major
-
Resolution: Unresolved
-
Affects Version/s: None
-
Fix Version/s: None
-
Labels:None
-
Number of attachments :
Description
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>
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">
{pom.artifacts}<!-- Copy in all referenced jars -->
<j:forEach var="lib" items="$
">
{lib.dependency}<j:set var="dep" value="$
"/>
{dep.getProperty('dist.bundle')=='true'}<j:if test="$
">
{pom.getPluginContext('maven-dist-plugin').getVariable('maven.dist.bin.assembly.dir')}<ant:copy todir="$
" file="$
{lib.path}"/>
</j:if>
</j:forEach>
</postGoal>