You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@maven.apache.org by Guillaume Duchesneau <gd...@taleo.com> on 2006/12/14 17:18:17 UTC

test vs provided dependency scopes

Hello,

 

I am having problems setting my project dependencies.  I have a JAR
project that needs javax.servlet/servlet-api/2.4.  My first idea was to
set its scope to provided since this jar will end up in a servlet
container and the servlet api will be provided by the container.  The
problem I have is that my JUnits needs this dependency to run too.  So I
would need both provided and test scopes for that dependency.  But I do
not see any way to tell that the Maven.  Am I missing something?
Anybody can help?

 

Thanks!

 

Guillaume


Re: test vs provided dependency scopes

Posted by Craig McClanahan <cr...@apache.org>.
On 12/14/06, Guillaume Duchesneau <gd...@taleo.com> wrote:
>
> Hello,
>
>
>
> I am having problems setting my project dependencies.  I have a JAR
> project that needs javax.servlet/servlet-api/2.4.  My first idea was to
> set its scope to provided since this jar will end up in a servlet
> container and the servlet api will be provided by the container.  The
> problem I have is that my JUnits needs this dependency to run too.  So I
> would need both provided and test scopes for that dependency.  But I do
> not see any way to tell that the Maven.  Am I missing something?
> Anybody can help?


In my experience, dependencies that you mark "provided" (as you should do
with something like the servlet API) are automatically added to the test
classpath as well.

Craig

Thanks!
>
>
>
> Guillaume
>
>
>

Re: maven-metadata-somerepository.xml

Posted by Tom Huybrechts <to...@gmail.com>.
you're right, there is no documentation

the maven-metadata-XXX.xml in your local repo is the local copy of the
maven-metadata.xml on repository with id XXX. These can contain
different things, dependending on where they are in the repo. For
group metadata, they contain mappings from plugins to plugin prefixes,
for artifacts they contain the available version, together with a
latest and a release version....

Tom

On 12/14/06, Brigitte.Ilsanker@gi-de.com <Br...@gi-de.com> wrote:
> Hello all!
>
> I am looking for an answer or for some documentation what the meaning is of
> the maven-metadata-something.xml, that I can find randomly in my local
> repository.
>
> Either I'm too blind or there's no documentation available about, so any
> hint will be appreciated (even RTFM if there is some M somewhere).
>
> Many thanks
> Brigitte
>
>
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
> For additional commands, e-mail: users-help@maven.apache.org
>
>

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


maven-metadata-somerepository.xml

Posted by Br...@gi-de.com.
Hello all!

I am looking for an answer or for some documentation what the meaning is of
the maven-metadata-something.xml, that I can find randomly in my local
repository.

Either I'm too blind or there's no documentation available about, so any
hint will be appreciated (even RTFM if there is some M somewhere).

Many thanks
Brigitte




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