I think the best way to achieve this would be by simply configuring
the <scope> of the various dependencies.

Thus your Struts libraries would be "compile" scope and the utility
libraries would be "provided". Then you will need to include the
utility libs in the EAR module (as dependencies) as well so they are
pulled into the EAR.

Wayne

On 5/29/08, Baeriswyl Kuno - Extern (IT-BA-MV) <[EMAIL PROTECTED]> wrote:
> Hello,
>
> in der Maven documentation is an article about a workaround for creating 
> skinny wars. 
> http://maven.apache.org/plugins/maven-war-plugin/examples/skinny-wars.html
>
> In this approach, all libs in WEB-INF/lib are exluded by applying following 
> pattern configuration: 
> <warSourceExcludes>WEB-INF/lib/*.jar</warSourceExcludes>
>
> Is it possible to exclude only certain libraries? Respectively, can I 
> configure the war plugin in way that I it keeps the web specific 
> dependencies, e.g. Struts libraries, in the web application and shares only 
> the utility libraries in the EAR classloader?
>
> Thanks
>
> Kuno
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
>
>

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

Reply via email to