I'm having a go at migrating my app to M2 and have hit a bit of a
roadblock.  For my war module I don't want the dependencies to go into
WEB-INF/lib, with the exception of 2 of them, which do have to live in
there (for reasons to do with Weblogic's class-loading)

Now under M1 this was easy - just set the war.bundle property
appropriately when defining the dependencies.

I've read this article:
http://maven.apache.org/plugins/maven-war-plugin/examples/skinny-wars.ht
ml

That lets me stop all jars going into that dir, but I can't find any way
to specify things so those 2 special cases do get included.

An alternative approach I've tried is in the pom for the war to specify
the dependencies again, but with a scope of provided, which does stop
them being bundled in.  However this is a bit of a hack as if I change
the versions / add dependencies in future I've got to remember to change
them there too, which isn't great.  If there was some way to specify the
overriding dependency so it picked up the version already defined that
would be an improvement - is that possible?

Any suggestions / advice very much appreciated

thanks

James


- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - 
- - - -

This message is intended only for the personal and confidential use of the 
designated recipient(s) named above.  If you are not the intended recipient of 
this message you are hereby notified that any review, dissemination, 
distribution or copying of this message is strictly prohibited.  This 
communication is for information purposes only and should not be regarded as an 
offer to sell or as a solicitation of an offer to buy any financial product, an 
official confirmation of any transaction, or as an official statement of Lehman 
Brothers.  Email transmission cannot be guaranteed to be secure or error-free.  
Therefore, we do not represent that this information is complete or accurate 
and it should not be relied upon as such.  All information is subject to change 
without notice.




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

Reply via email to