RE: Maven: Creating a JAR in a WAR in an EAR

2007-07-25 Thread Vaidya, Supriya A (US - Chicago)
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: users@maven.apache.org Subject:

Maven: Creating a JAR in a WAR in an EAR

2007-07-24 Thread Vaidya, Supriya A \(US - Chicago\)
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

Re: Maven: Creating a JAR in a WAR in an EAR

2007-07-24 Thread Wayne Fay
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

RE: Maven: Creating a JAR in a WAR in an EAR

2007-07-24 Thread Vaidya, Supriya A (US - Chicago)
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

Re: Maven: Creating a JAR in a WAR in an EAR

2007-07-24 Thread Stephane Nicoll
This is against Maven philosophy, period. On 7/24/07, Vaidya, Supriya A (US - Chicago) [EMAIL PROTECTED] wrote: 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

Re: Maven: Creating a JAR in a WAR in an EAR

2007-07-24 Thread Wayne Fay
It is absolutely against the Maven philosophy. Having said that, you could probably make it work with jar-pom.xml, war-pom.xml, ear-pom.xml and judicious use of include/excludes, but that sounds like entirely too much work. And no offense, but I'm not going to help you do it. ;-) Your best

Re: Maven: Creating a JAR in a WAR in an EAR

2007-07-24 Thread Kiran Kodlady
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: