You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@maven.apache.org by "Morgovsky, Alexander (US - Glen Mills)" <am...@deloitte.com> on 2006/10/09 04:06:10 UTC

Lib dependencies in .war artifact

Hi.  I need some .jar's for compilation of a .war artifact, but I want
to only include a subset of these in the WEB-INF/lib.  If I set the
subset of the ones for inclusion with the scope of runtime for each,
they will not be used for compilation, and the compilation will fail.
Thus, the question is, how do I include a subset of .jar's which both
are for compilation and runtime, but exclude all the ones which are for
compilation only?  Thanks for your help. 


This message (including any attachments) contains confidential information intended for a specific individual and purpose, and is protected by law.  If you are not the intended recipient, you should delete this message. 


Any disclosure, copying, or distribution of this message, or the taking of any action based on it, is strictly prohibited. [v.E.1]

Re: Lib dependencies in .war artifact

Posted by ArneD <pu...@degenring.de>.

Morgovsky, Alexander (US - Glen Mills) wrote:
> 
> Hi.  I need some .jar's for compilation of a .war artifact, but I want
> to only include a subset of these in the WEB-INF/lib.  If I set the
> subset of the ones for inclusion with the scope of runtime for each,
> they will not be used for compilation, and the compilation will fail.
> Thus, the question is, how do I include a subset of .jar's which both
> are for compilation and runtime, but exclude all the ones which are for
> compilation only?  Thanks for your help. 
> 

Try scope "provided" for those that you need for compilation only
and scope "compile" for thos that you need for compilation and runtime.

Regards,
Arne

-- 
View this message in context: http://www.nabble.com/Lib-dependencies-in-.war-artifact-tf2408437.html#a6717565
Sent from the Maven - Users mailing list archive at Nabble.com.


---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
For additional commands, e-mail: users-help@maven.apache.org