You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@maven.apache.org by chicoria_jardim <ch...@uol.com.br> on 2006/03/20 12:33:50 UTC
[1.1] dynamic dependency
Hi,
I would like to choose which dependency depA and it´s dependencies or depB and it´s dependencies) to add at build time.
I know that :
<j:if test="${mydep.type == 'A'}">
<ant:path id="mydep.classpath">
<ant:pathelement path="${plugin.getDependencyPath('groupIdA:depA')}" />
(... and its dependencies)
</j:if>
<j:if test="${mydep.type == 'B'}">
<ant:path id="mydep.classpath">
<ant:pathelement path="${plugin.getDependencyPath('groupIdB:depB')}" />
(... and its dependencies)
</j:if>
However the code above only add the dependencies to classpath at compile time.
I need that the dependency is enclosed at my EAR or WAR.
It´s possible ? Or the POM is read-only ?
Thanks !!
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
For additional commands, e-mail: users-help@maven.apache.org