On Thu, 1 Sep 2005, Ashley Williams wrote: That problem has been fixed a while back in the eclipse plugin. It's fixed in svn and will come with the beta-1 release.
-- Kenney > Didn't work! > > Changed my dependency like so: > <dependency> > <groupId>servletapi</groupId> > <artifactId>servletapi</artifactId> > <version>2.4</version> > <scope>provided</scope> > </dependency> > > then I ran my build: > $ m2 clean:clean install -Dpwd=admin > > then I ran my eclipse plugin: > $ m2 eclipse:eclipse > > then I checked the war: > jar tvf test-web.war > > ...great, no reference to servlet.jar, but wait a minute I went to > eclipse, pressed F5 to refresh the project and watched the servlet > api lib disappear before my very eyes. > > I mean thinking about it, it's probably down to the ecilpse plugin to > correctly interpret the scopes which is probably where the failure is. > > On 1 Sep 2005, at 14:59, Yann Le Du wrote: > > > Hi Ashley, > > > > The scope "provided" should do the trick, see : > > http://maven.apache.org/maven2/dependency- > > mechanism.html#dependency_scope > > > > servlet-api seems to be the new standard name (see jspapi:jsp-api) > > - but that's > > just a guess... > > > > HTH, > > Yann > > > > --- Ashley Williams <[EMAIL PROTECTED]> a écrit : > > > > > >> Hi > >> > >> > >> I'm new to Maven 2 and enjoying it very much thankyou for asking ;) > >> > >> I'm trying to create a servlet project for eclipse using the > >> eclipse:eclipse task and therefore have added a dependency to the pom > >> to servletapi (side question: should I be using servletapi or > >> servlet- > >> api). So far so good, but when I install the app, I get a copy of the > >> servlet jar in my war file, obviously not what I want since Tomcat is > >> already supplying the library. > >> > >> Then I changed the scope to runtime which worked fine, but now I no > >> longer see the servlet jar in my eclipse project after running > >> eclipse:eclipse. > >> > >> So is there a scope I can use so that I will always see the > >> dependencies in my eclipse project? Or maybe the eclipse:eclipse task > >> could do with a mod? > >> > >> Cheers > >> AW > >> > >> --------------------------------------------------------------------- > >> To unsubscribe, e-mail: [EMAIL PROTECTED] > >> For additional commands, e-mail: [EMAIL PROTECTED] > >> > >> > >> > > > > > > Yahoo! Mail - Votre e-mail personnel et gratuit qui vous suit > > partout ! > > Créez votre Yahoo! Mail sur http://mail.yahoo.fr > > > > --------------------------------------------------------------------- > > 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] > > -- Kenney Westerhof http://www.neonics.com GPG public key: http://www.gods.nl/~forge/kenneyw.key --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
