Hello,

sorry, for the confusion..outlook "automatically" send my draft..;-}

back to my problem. Unfortunately, your approach doesn't work with RAD 7.0 / 
Websphere 6.1, since RAD's J2EE Dependency configuration for the WAR project 
relies on the Manifest file in WEB-INF/lib. If I set the Provided scope to 
libraries, Maven won't generate an classpath entry in the Manifest file. As a 
consequence, The web app classloader won't see this dependency.

Kuno

-----Ursprüngliche Nachricht-----
Von: Wayne Fay [mailto:[EMAIL PROTECTED]
Gesendet: Donnerstag, 29. Mai 2008 17:27
An: Maven Users List
Betreff: Re: Advanced exclude pattern for Skinny Wars


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]


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

Reply via email to