yeah - I was missing <type>*war*</type> in my ear dependency list so it was looking for a jar to add !
On 22/03/06, Mark <[EMAIL PROTECTED]> wrote: > > Falling at the last fence - including the war in the ear ? > > > > > > On 22/03/06, Mark <[EMAIL PROTECTED]> wrote: > > > > I will - I guess I use the ear plugin to inculde the war since it's not > > really a dependency ? > > > > Thanks guys - this needs to go on the maven site I guess ? > > > > On 22/03/06, Wayne Fay <[EMAIL PROTECTED]> wrote: > > > > > > Yes exactly. I have the following: > > > project root > > > -pom.xml > > > -lib > > > ++pom.xml > > > -ejb > > > ++pom.xml > > > -war > > > ++pom.xml > > > -ear > > > ++pom.xml > > > > > > So every directory has a pom.xml file that describes the files and > > > dependencies for that directory, and each one has a different > > > packaging type declared. > > > > > > So lib depends on a few external resources, ejb depends on lib plus a > > > couple others, war depends on ejb and some others, and ear depends on > > > war. > > > > > > This is roughly how you'd want to construct a J2EE app in Maven2. > > > > > > There have been a lot of discussions on J2EE in the users@ list, > > > search the mailing list archives for examples of poms etc... > > > > > > Wayne > > > > > > > > > On 3/22/06, Mark <[EMAIL PROTECTED] > wrote: > > > > So I need to use more than one pom in a parent child relationship, > > > defining > > > > the child poms as modules in the parent pom ? > > > > > > > > Then everything should be OK because each module is it's own context > > > > > > > 'brilliant!' > > > > > > > > Then what you say about adding the inter-depencies makes sense too. > > > > > > > > Yann thanks for your time. > > > > > > > > ps I found this too: > > > > > > > > http://communitygrids.blogspot.com/2006/02/maven-2-notes-part-6-multiproject_06.html > > > > > > > > > > > On 22/03/06, Yann Le Du < [EMAIL PROTECTED]> wrote: > > > > > > > > > > Let Maven work for you ;) > > > > > > > > > > If you declare the JAR as a dependency in the WAR POM, the JAR > > > will be > > > > > included in the WAR. Same thing for EAR. > > > > > > > > > > On 3/22/06, Mark <[EMAIL PROTECTED]> wrote: > > > > > > > > > > > > Sure > > > > > > > > > > > > The ear contains the war and the war contains the jar .. but I'm > > > getting > > > > > > closer. > > > > > > > > > > > > > > > > > > On 22/03/06, Yann Le Du < [EMAIL PROTECTED]> wrote: > > > > > > > > > > > > > > I'm not sure to understand what you want to achieve. If you > > > want to > > > > > have > > > > > > > some resources packaged in META-INF, just put them into : > > > > > > > * src/main/resources/META-INF for JAR > > > > > > > * src/main/webapp/META-INF for WAR > > > > > > > * src/main/application/META-INF for EAR > > > > > > > > > > > > > > Can you explain what you mean about multiple nested artifacts > > > ? > > > > > > > > > > > > > > On 3/22/06, Mark <[EMAIL PROTECTED]> wrote: > > > > > > > > > > > > > > > > That approach doesn't look good because I don't this one pom > > > can > > > > > > easily > > > > > > > > creat multiple artifacts which are nested in some way ? > > > > > > > > > > > > > > > > Should I be looking at archetype ? > > > > > > > > > > > > > > > > On 22/03/06, Mark < [EMAIL PROTECTED]> wrote: > > > > > > > > > > > > > > > > > > > > > > > > > > Well I started looking at the jar plugin first, and I > > > couldn't see > > > > > a > > > > > > > way > > > > > > > > > to limit what resources are added - not a problem for war > > > or ear ? > > > > > > > > > > > > > > > > > > I suppose I could farm that out to ant ? > > > > > > > > > > > > > > > > > > > > > > > > > > > On 22/03/06, Yann Le Du <[EMAIL PROTECTED] > wrote: > > > > > > > > > > > > > > > > > > > > Hi Mark, > > > > > > > > > > > > > > > > > > > > Did you check : > > > > > > > > > > http://maven.apache.org/guides/mini/guide-webapp.html > > > > > > > > > > http://maven.apache.org/plugins/maven-jar-plugin/ > > > > > > > > > > http://maven.apache.org/plugins/maven-war-plugin/ > > > > > > > > > > http://maven.apache.org/plugins/maven-ear-plugin/ > > > > > > > > > > > > > > > > > > > > - Yann > > > > > > > > > > > > > > > > > > > > On 3/22/06, Mark < [EMAIL PROTECTED] > wrote: > > > > > > > > > > > > > > > > > > > > > > Is there any examples / articles on this ? > > > > > > > > > > > > > > > > > > > > > > The artifacts I am looking to create a jar, war, and > > > ear all > > > > > > with > > > > > > > > > > varying > > > > > > > > > > > resources in their respective META-INF folders ? > > > > > > > > > > > > > > > > > > > > > > Mark. > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > >
