I know maven doesn't exactly support property inheritance just yet,
but I'm wondering whether the following problem will be solved even
when that day comes.

My project has two war subprojects, an ear subproject, and a common
jar subproject.  Each war depends on the common jar and some external
jars required both at compile and run time.  The ear depends on the
two wars.

My problem is ear file bloat.  Both wars packaged in the ear contain
copies of the same external jars.  I would prefer the wars not contain
the external libs, but refer to common ones packaged in the root of
the ear.

But for testing, it's convenient to deploy the wars separately, in
which case the external jars must be put in WEB-INF/lib.

How do I arrange my ?ar.bundle dependency properties in the pom so
that when I build the war subproject, the external jars are packaged
with the war, and when I build the ear subproject, they are not?

I've tried this:  <war.bundle>${bundle.war}</war.bundle>

And then in the root project.properties, I set bundle.war=false.  In
the war subproject I set bundle.war=true.  But it seems the
subproject's bundle.war property always takes precedence, whether I
build from the root or not.

Any other suggestions?  

Thanks,
Jim

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to