maven-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From David Hoffer <>
Subject How to exclude transitive dependencies from war?
Date Mon, 17 Sep 2012 19:09:54 GMT
I need to package a war so that it can be optionally included in a ear
deployment, put I can't just mark the ear level dependencies as
provided because I do need the full war doing development work and
running GWT hosted mode.

I've followed this link
regarding how to set the dependency as optional, which seems like it
might be the right solution, as I want the full war in the current
project but when used as an ear dependency I want it to exclude a
dependency (and all its transitive dependencies).

However its not working that way...if I set the artifact via:


It removes just the artifact bar from the war but leaves in the war
all it's transitive dependencies, which is not expected.  How can I
also exclude it's transitive dependencies?  This point is key as the
logic provided by the ear is significant and probably has 100 or more way to know what they all are and that can change too.


To unsubscribe, e-mail:
For additional commands, e-mail:

View raw message