If you do as I describe, the WAR file built by Eclipse will include the .jar for the library, but the library will not live in the webapp project. It will be obtained by Maven at build time. If you use the Maven Eclipse plugin, it will correctly reference the library from your Maven local repository.
K.C. -----Original Message----- From: Dan Adams [mailto:[EMAIL PROTECTED] Sent: Tuesday, February 21, 2006 1:41 PM To: Maven Users List Subject: RE: using a webapp to test a project Well, what i mean is that i want the library i'm working on and the webapp that tests it to be in the same eclipse project. On Tue, 2006-02-21 at 13:19 -0800, KC Baltz wrote: > The simplest thing to do would be to create a working webapp in Maven first, > one that has no dependency on the library you want to test. A good way to do > this would be with the archetype for webapps. > > Once that works, add a <dependency> to your webapp that references the > library. That should allow you to write code in your webapp that calls the > library. > > I'm not sure what you mean by "I would like it so that the sub-project has > it's own set of dependencies that are not bundled." The webapp doesn't need > to be set up as a "sub-project." > > Give that a try and come back to the list if you run into problems. > > -----Original Message----- > From: Dan Adams [mailto:[EMAIL PROTECTED] > Sent: Tuesday, February 21, 2006 11:07 AM > To: [email protected] > Subject: using a webapp to test a project > > > Hello, I'm a little to maven so forgive me. I'm using maven 2 and I have > a library that I would like to test but I would to test it with a web > application that runs in jetty. How would something like this work as > far as where the files would go and how it would effect the pom? Could > the webapp be a sub-project? I would like it so that the sub-project has > it's own set of dependencies that are not bundled. Thanks. > -- Dan Adams Software Engineer Interactive Factory --------------------------------------------------------------------- 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]
