Replace scope compile by provided.
Why using compile ?

- Olivier

-----Message d'origine-----
De : Jochen Wiedmann [mailto:[EMAIL PROTECTED] 
Envoyé : mercredi 14 décembre 2005 10:57
À : Maven Users List
Objet : How to stop that the war plugin deploys servlet-api.jar?



Hi,

I have a project which consists of several subprojects. One of them 
contains the following dependency:

     <dependency>
       <groupId>javax.servlet</groupId>
       <artifactId>servlet-api</artifactId>
       <version>2.3</version>
       <scope>compile</scope>
     </dependency>

Note the "compile" scope.

In a depending subproject I am using the war plugin. To my surprise, the

mvn:explode target is copying the servlet-api jar file into WEB-INF/lib.

(Tomcat refuses it, but that's fine to me.) I have tried to eliminate 
the file using

     <excludes>**/servlet-api*.jar</excludes>

in the war plugins configuration, but that doesn't work either.


Any ideas?


Jochen


---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



This e-mail, any attachments and the information contained therein ("this 
message") are confidential and intended solely for the use of the addressee(s). 
If you have received this message in error please send it back to the sender 
and delete it. Unauthorized publication, use, dissemination or disclosure of 
this message, either in whole or in part is strictly prohibited.
********************************************************************** 
Ce message électronique et tous les fichiers joints ainsi que  les informations 
contenues dans ce message ( ci après "le message" ), sont confidentiels et 
destinés exclusivement à l'usage de la  personne à laquelle ils sont adressés. 
Si vous avez reçu ce message par erreur, merci  de le renvoyer à son émetteur 
et de le détruire. Toutes diffusion, publication, totale ou partielle ou 
divulgation sous quelque forme que se soit non expressément autorisées de ce 
message, sont interdites.
********************************************************************** 


---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to