Another option is to upgrade Tomcat (if you can) which is now ignoring 
servlet-api and jsp-api if it's found in webapp WEB-INF/lib directory.

Remy

> -----Message d'origine-----
> De : Tom Hurley [mailto:[EMAIL PROTECTED] 
> Envoyé : mercredi 4 octobre 2006 00:50
> À : Maven Users List
> Objet : RE: Removing jsp-api-2.0.jar from delpoyed webapp
> 
> Thanks again Wayne,
> 
> mvn -X helped me find the problem. I appreciate the help and 
> also that of others on this list who have helped me get 
> familiar with maven. Thanks you.
> 
> Tom.
> 
> -----Original Message-----
> From: Wayne Fay [mailto:[EMAIL PROTECTED]
> Sent: Tuesday, October 03, 2006 11:08 AM
> To: Maven Users List
> Subject: Re: Removing jsp-api-2.0.jar from delpoyed webapp
> 
> Try mvn -X and use the text dependency tree to identify which 
> artifacts are pulling in that dependency. It might not be 
> coming from where you think it is.
> 
> I'll take a wild guess here and say you've got a J2EE 
> multi-module project and while the WAR module is properly 
> excluding the jsp-api, the EAR module is not, and so you're 
> getting that jar bundled in. You will need to specify the 
> exclude in both poms.
> 
> Wayne
> 
> On 10/3/06, Tom Hurley <[EMAIL PROTECTED]> wrote:
> > Thanks Wayne,
> >
> > I've tried both of those options but the jar is still being 
> included. 
> > Its making me say bad words...
> >
> > Any other suggestions?
> >
> > Thanks.
> >
> > Tom.
> >
> >
> >
> > Tom Hurley, Senior Lead Developer
> > Insightful Corp, 206-283-8802 x369
> >
> > -----Original Message-----
> > From: Wayne Fay [mailto:[EMAIL PROTECTED]
> > Sent: Tuesday, October 03, 2006 10:48 AM
> > To: Maven Users List
> > Subject: Re: Removing jsp-api-2.0.jar from delpoyed webapp
> >
> > You have 2 options:
> > 1. Add an excludes node to the dependency node which is bringing in 
> > this unwanted artifact.
> > 2. Specify the jsp-api-2.0 as a dependency with scope "provided" in 
> > your
> pom.
> >
> > Wayne
> >
> > On 10/3/06, Tom Hurley <[EMAIL PROTECTED]> wrote:
> > > Hi,
> > >
> > > I am having a problem with the Maven's transitive 
> dependency mechanism.
> > It's
> > > a fantastic feature but I would like to be able to prevent it 
> > > including a particular jar.
> > >
> > > I am creating a web app and deploying it to Tomcat. In my 
> case one 
> > > of the
> > 3rd
> > > party libraries results in the inclusion of jsp-api-2.0.jar in my
> > WEB-INF\lib
> > > folder. This is a shared library in Tomcat's common\lib 
> folder and 
> > > its inclusion with my application causes known problems 
> when running 
> > > my application. If I delete the jar everything works okay.
> > >
> > > Is there any way to either stop the dependency mechanism 
> including 
> > > this
> jar
> > > or can I flag it to Maven to exclude it? Someone else 
> must have come 
> > > up against this problem.
> > >
> > > Thanks in advance for any help or suggestions.
> > >
> > > Tom.
> > >
> > >
> > > 
> --------------------------------------------------------------------
> > > - 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]
> >
> >
> > 
> ---------------------------------------------------------------------
> > 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]
> 
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
> 
> 
-------------------------------------------------------------------------------------------
"Cette communication (y compris les pieces jointes) est reservee a l'usage 
exclusif du destinataire (des destinataires) et peut contenir des informations 
privilegiees, confidentielles, exemptees de divulgation selon la loi ou 
protegees par les droits d'auteur. Si vous n'etes pas un destinataire, toute 
utilisation, divulgation, distribution, reproduction, examen ou copie (totale 
ou partielle) est non-autorisee et peut etre illegale. Tout message 
electronique est susceptible d'alteration et son integrite ne peut etre 
assuree. Sanofi Pasteur decline toute responsabilite au titre de ce message 
s'il a ete modifie ou falsifie. Si vous n'etes pas destinataire de ce message, 
merci de le detruire immediatement et d'avertir l'expediteur de l'erreur de 
distribution et de la destruction du message. Merci.
This transmission (including any attachments) is intended solely for the use of 
the addressee(s) and may contain confidential information including trade 
secrets which are privileged, confidential, exempt from disclosure under 
applicable law and/or subject to copyright. If you are not an intended 
recipient, any use, disclosure, distribution, reproduction, review or copying 
(either whole or partial) is unauthorized and may be unlawful. E-mails are 
susceptible to alteration and their integrity cannot be guaranteed.Sanofi 
Pasteur shall not be liable for this e-mail if modified or falsified. If you 
are not the intended recipient of this e-mail, please delete it immediately 
from your system and notify the sender of the wrong delivery and the mail 
deletion. Thank you."
**********************************************************************


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

Reply via email to