I'm putting together a build process in which I want to be able to customize
the war build to optionally exclude certain jars under certain profiles.
Specifically, I want to exclude the junit jar from WEB-INF/lib if (and only
if) I'm building using the profile jboss, triggered by -Djboss-build on the
command line.

So I want <scope>provided</scope> when building for jboss, but
<scope>compile</scope> when not.  Is there any way that I can accomplish
this?

Reply via email to