Brett,
If you want to generate a jar file for your war file and do not want to
create 2 subprojects (as is the general convention), you can create a very
simple postGoal that will jar your class files just prior to construction of
your war file:
<postGoal name="war:webapp">
<attainGoal name="jar:jar"/>
<ant:copy file="${maven.final.name}.jar"
todir="${maven.war.webapp.dir}/WEB-INF/lib"/>
<ant:delete dir="${maven.war.webapp.dir}/WEB-INF/classes"/>
</postGoal>
I haven't tested it, so you may have to fiddle with it a bit, but I think
you get the idea.
Cheers,
Chuck
> -----Original Message-----
> From: Brill Pappin [mailto:[EMAIL PROTECTED]
> Sent: Tuesday, June 29, 2004 9:03 AM
> To: Maven Users List
> Subject: Re: RFE for the war plugin
>
>
> Actually I don't really have much of a problem with Eclipse, other than
> I have to keep the parts of an app together... remember I'm one of the
> group who is trying to get the old fuddy-duddies around here to use
> Maven, so not everyone would "get it" if the parts of an app where
> spread all over the repository.
>
> I'm having a hard enough time getting people to build with maven
> (despite it being easier)... I've even got a couple of guys that won't
> even *execute* it on our development box to build an app, for no reason
> other than being stubbourn.
>
> BTW - A little off topic but following that last thought -- I see Mavens
> value, but if you want to gain more support and remove some of the
> roadblocks (for me at least) you have to target the agile folks; we are
> an agile shop but its they are who are the ones bulking even though
> Maven fits right into agile practice.
>
> - Brill Pappin
>
> Matt Read wrote:
>
> >What problems do you have with Eclipse? I do exactly this across
> a project
> >with many components which are re-used in various combinations
> of .ear and
> >.war files using the Maven dependency mechanism and have no
> problems at all
> >using Eclipse as my IDE.
> >
> >Matt.
> >
> >
> >
> >>-----Original Message-----
> >>From: Brill Pappin [mailto:[EMAIL PROTECTED]
> >>Sent: 29 June 2004 13:38
> >>To: Maven Users List
> >>Subject: Re: RFE for the war plugin
> >>
> >>Yes, I thought of doing that very thing :) however I then
> >>have problems with Eclipse as it doesn't understand
> >>multi-project builds, and you really want all the parts of an
> >>application in the same place.
> >>
> >>Still doable, but less than optimum.
> >>
> >>- Brill
> >>
> >>
> >>
>
>
> ---------------------------------------------------------------------
> 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]