Thanks everyone! I have successfully restructured my project (now I have to get everyone else in the team to do it... This is going to be fun!!)
-----Original Message----- From: Kiran Kodlady [mailto:[EMAIL PROTECTED] Sent: Tuesday, July 24, 2007 11:53 PM To: [email protected] Subject: Re: Maven: Creating a JAR in a WAR in an EAR Hey Supriya, u need to write 4 pom.xmls for this. one @ root level and rest 3 in each of the module u mentioned. for ejb projects u need to generate RMIC code as well.. for that u shud make some significat changes to pom.xml of ejb module. for info on this u can refer this: http://www.jroller.com/peter_pilgrim/entry/battling_with_maven_2_integra ting [let me know if u need any help on this.. as i have successfully generated RMIC] Regarding servlet files[War project] , u need to mention packaging as "war" in pom.xml. and after that in dependency list mention ejb project along with group id. You can use this plugin @ the end of pom.xml. [you can also make changes related to region specific build over here] <plugins> <plugin> <groupId>org.apache.maven.plugins</groupId> <artifactId>maven-war-plugin</artifactId> <configuration> <webXml>webapp/WEB-INF/web.xml</webXml> </configuration> </plugin> </plugins> consider helper classes as a jar module and build this module ahead of war module. Let me know if there are anything i can help u out.. - kiran kodlady Vaidya, Supriya A (US - Chicago) 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] > > -- View this message in context: http://www.nabble.com/Maven%3A-Creating-a-JAR-in-a-WAR-in-an-EAR-tf41372 78s177.html#a11776168 Sent from the Maven - Users mailing list archive at Nabble.com. --------------------------------------------------------------------- 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]
