You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@maven.apache.org by MI...@fiberlink.com on 2005/09/28 23:10:13 UTC
Dependencies and war files
I'm using m2 beta 1 version of the ANT tasks.
I've specified the "servletapi" jar file as a "compile" dependency.
However, when i create my war file (which i do with an ANT script),
i don't want it included in the WEB-INF/lib directory.
>From what i can tell, when i can't use the <dependencies> element
to use the servlet api in the compile, but not when building the war.
I imagine that the "war" plugin suffers from the same issue. In addition,
why is it that the "war" plugin still does not package up the application
classes into a jar file? Why must it use a WEB-INF/classes directory?
Is there some scope for the file I can use that won't include it in the
runtime list?
---------------------
Matthew Inger
Fiberlink Communications Corp
215-664-1723
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
For additional commands, e-mail: users-help@maven.apache.org
Re: Dependencies and war files
Posted by Saleem Shafi <sa...@gmail.com>.
According to the docs, it sounds like what you're looking for is the
"provided" scope..
"provided - this is much like compile, but indicates you expect the
JDK or a container to provide it. It is only available on the
compilation classpath, and is not transitive."
- from http://maven.apache.org/maven2/dependency-mechanism.html
Saleem.
On 9/28/05, MInger@fiberlink.com <MI...@fiberlink.com> wrote:
>
>
>
> I'm using m2 beta 1 version of the ANT tasks.
>
> I've specified the "servletapi" jar file as a "compile" dependency.
> However, when i create my war file (which i do with an ANT script),
> i don't want it included in the WEB-INF/lib directory.
>
> From what i can tell, when i can't use the <dependencies> element
> to use the servlet api in the compile, but not when building the war.
>
> I imagine that the "war" plugin suffers from the same issue. In addition,
> why is it that the "war" plugin still does not package up the application
> classes into a jar file? Why must it use a WEB-INF/classes directory?
>
> Is there some scope for the file I can use that won't include it in the
> runtime list?
>
> ---------------------
> Matthew Inger
> Fiberlink Communications Corp
> 215-664-1723
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
> For additional commands, e-mail: users-help@maven.apache.org
>
>
--
Saleem Shafi
Partner
Pomatics Technology Partners LTD
http://pomatics.com
ph: 512.577.1472
email: saleemshafi@pomatics.com
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
For additional commands, e-mail: users-help@maven.apache.org