You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@maven.apache.org by Gonzalo Vásquez Sáez <go...@gmail.com> on 2007/04/02 20:29:05 UTC

WAR Archiver: avoiding JAR files in WEB-INF/lib

Is there any way to tell some dependencies just to be used on the compile
phase and not to be included in the run phase during a WAR packaging? I have
some Application Server specific JAR files needed during compile time (IBM
WAS 6), but which they don't need to be included in the WAR itself, as they
would be already accessible from the AppServer's classpath.

Perhaps some other <scope /> other than "compile", or some special plugin?

Thanks.-

RE: [***POSSIBLE SPAM***] - WAR Archiver: avoiding JAR files in WEB-INF/lib - Bayesian Filter detected spam

Posted by William Ferguson <Wi...@yarris.com>.
The scope you want is 'provided'.

See http://maven.apache.org/guides/introduction/introduction-to-dependency-mechanism.html for more details on specifying dependencies.

William 

-----Original Message-----
From: Gonzalo Vásquez Sáez [mailto:gonzalo.vasquez.saez@gmail.com] 
Sent: Tuesday, 3 April 2007 4:29 AM
To: users@maven.apache.org
Subject: [***POSSIBLE SPAM***] - WAR Archiver: avoiding JAR files in WEB-INF/lib - Bayesian Filter detected spam

Is there any way to tell some dependencies just to be used on the compile phase and not to be included in the run phase during a WAR packaging? I have some Application Server specific JAR files needed during compile time (IBM WAS 6), but which they don't need to be included in the WAR itself, as they would be already accessible from the AppServer's classpath.

Perhaps some other <scope /> other than "compile", or some special plugin?

Thanks.-

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


Re: WAR Archiver: avoiding JAR files in WEB-INF/lib

Posted by Gonzalo Vásquez Sáez <go...@gmail.com>.
Thanks Kathryn and Manos, worked great!

On 02/04/07, Manos Batsis <ma...@geekologue.com> wrote:
>
> Gonzalo Vásquez Sáez wrote:
>
> > Perhaps some other <scope /> other than "compile"
>
> "provided"
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
> For additional commands, e-mail: users-help@maven.apache.org
>
>

Re: WAR Archiver: avoiding JAR files in WEB-INF/lib

Posted by Manos Batsis <ma...@geekologue.com>.
Gonzalo Vásquez Sáez wrote:

> Perhaps some other <scope /> other than "compile"

"provided"

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


Re: WAR Archiver: avoiding JAR files in WEB-INF/lib

Posted by Kathryn Huxtable <kh...@ku.edu>.
'provided'. -K


On 4/2/07 1:29 PM, "Gonzalo Vásquez Sáez" <go...@gmail.com>
wrote:

> Is there any way to tell some dependencies just to be used on the compile
> phase and not to be included in the run phase during a WAR packaging? I have
> some Application Server specific JAR files needed during compile time (IBM
> WAS 6), but which they don't need to be included in the WAR itself, as they
> would be already accessible from the AppServer's classpath.
> 
> Perhaps some other <scope /> other than "compile", or some special plugin?
> 
> Thanks.-


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