This does seem to be the easiest - but if you are working with a new project only. If I have an existing structure where ONE project contains all the necessary packages for the EJB and WAR, how do I go about packaging the JAR->WAR->EAR?
-----Original Message----- From: Wayne Fay [mailto:[EMAIL PROTECTED] Sent: Tuesday, July 24, 2007 12:35 PM To: Maven Users List Subject: Re: Maven: Creating a JAR in a WAR in an EAR You should use multiple projects with dependencies set up between them. Some webpages should help explain it: http://maven.apache.org/guides/getting-started/index.html http://www.onjava.com/pub/a/onjava/2005/09/07/maven.html Also the free PDF ebooks from Mergere/DevZuz and Sonatype have complete examples and documentation on this structure: http://www.devzuz.com/web/guest/products/resources#BBWM http://www.sonatype.com/book/index.html Wayne On 7/24/07, Vaidya, Supriya A (US - Chicago) <[EMAIL PROTECTED]> wrote: > Hi: > > I have a single project with multiple packages: > > 1. Package A - EJB files > 2. Package B - Servlet files > 3. Package C - Helper classes > > The objective is to create a JAR of the EJB files, and then a WAR of the > servlet files that also includes the JAR (but not the .class files > directly) and then package this whole WAR in the EAR. > > I know we can do this in Ant, but what is the best way of accomplishing > this goal in Maven? Should I have created different projects? Or do I > have to use filters? Or maybe the ant plugin? > > Suggestions would really help! > > > This message (including any attachments) contains confidential information intended for a specific individual and purpose, and is protected by law. If you are not the intended recipient, you should delete this message. > > > Any disclosure, copying, or distribution of this message, or the taking of any action based on it, is strictly prohibited. [v.E.1] > --------------------------------------------------------------------- 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]
