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.
> > > > > >
> > > > > >
> > > > >
> > > > >
> > > >
> > >
> > >
> >
> >
>
>

Reply via email to