http://maven.apache.org/guides/introduction/introduction-to-dependency-mechanism.html

/Anders

2010/8/28 Panayotis Matsinopoulos <[email protected]>

>  Dear Wayne,
>
> You are probably right on my mistake. The documentation also verifies what
> you are saying
>
> "FAQ: How do I prevent including JARs in WEB-INF/lib? I need a "compile
> only" scope!
>
> Answer: The scope you should use for this is provided. This indicates to
> Maven that the
> dependency will be provided at run time by its container or the JDK, for
> example.
> Dependencies with this scope will not be passed on transitively, nor will
> they be bundled in
> an package such as a WAR, or included in the runtime classpath"
>
> However, since I am new to maven, allow me please to ask what's the purpose
> of "compile" scope then, and what's the difference from "provided".
>
> Thanks in advance
> Panayotis
>
>
>
>
> On 28/8/2010 7:22 μμ, Wayne Fay wrote:
>
>> You can use these jars only at compile time and not at package time. For
>>> example, you can have the following in your pom.xml:
>>>
>>> <scope>compile</scope>
>>>
>>> This will not include log4j.jar into your war.
>>>
>> This is simply false. The proper scope for "use at compile time but do
>> not include in package" is "provided". But the first post mentioned
>> "skinny wars" so he knows about this, I assume.
>>
>> Wayne
>>
>> ---------------------------------------------------------------------
>> 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