[EMAIL PROTECTED]
To: Maven Users List users@maven.apache.org
Sent: Tuesday, April 17, 2007 6:52:08 PM
Subject: RE: M2 : Controlling WEB-INF/lib contents in war
I had already seen about scopes and my original mail did note that
setting the scope to provided for a.jar and b.jar did give me
the include list is pretty
ugly and error prone.
thanks
-Original Message-
From: Antonio Petrelli [mailto:[EMAIL PROTECTED]
Sent: Tuesday, April 17, 2007 3:55 PM
To: Maven Users List
Subject: Re: M2 : Controlling WEB-INF/lib contents in war
2007/4/17, Kathryn Huxtable [EMAIL PROTECTED]:
He
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 -
here as the jars will be in the main ear
file, so will be available to the war file
thanks
-Original Message-
From: Antonio Petrelli [mailto:[EMAIL PROTECTED]
Sent: Tuesday, April 17, 2007 3:24 PM
To: Maven Users List
Subject: Re: M2 : Controlling WEB-INF/lib contents in war
2007/4/17
2007/4/17, Shute, James [EMAIL PROTECTED]:
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
, but
that'll get fixed when the 2.1 version of that plugin is released.
thanks
-Original Message-
From: Jerome Lacoste [mailto:[EMAIL PROTECTED]
Sent: Tuesday, April 17, 2007 5:04 PM
To: Maven Users List
Subject: Re: M2 : Controlling WEB-INF/lib contents in war
On 4/17/07, Shute, James [EMAIL
2007/4/17, Kathryn Huxtable [EMAIL PROTECTED]:
He meant scope. -K
No, no! I meant profile, but I misunderstood his needs.
James, why using warSourceIncludes for your 2 special cases is not feasible?
Do you mean that in the EAR there could be a previous version of a JAR
than that in the WAR?
To: Maven Users List
Subject: Re: M2 : Controlling WEB-INF/lib contents in war
2007/4/17, Shute, James [EMAIL PROTECTED]:
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
On 4/17/07, Shute, James [EMAIL PROTECTED] wrote:
The target layout I'm after is:
ear
|
|-lib
| |-a.jar
| |-b.jar
|
|-webapp
|
|-WEB-INF
|-web.xml
|-lib
|-c.jar
I can't use warSourceExcludes as AFAIK excludes take precedence over
james,
I think you need to