That's what I ended up. Thanks to whomever initially suggested that. I'm not even sure I knew that phase existed before that.
On Mon, May 2, 2011 at 7:51 PM, Benson Margulies <[email protected]>wrote: > Bind surefire to the integration-test phase, that runs post-packaging. > > On Fri, Apr 29, 2011 at 3:05 AM, Ron Wheeler > <[email protected]> wrote: > > On 28/04/2011 5:35 PM, Justin Lee wrote: > >> > >> I have a huge tree of ant based projects i'm trying to convert to maven. > >> I > >> have the mechanics worked about except for a minor hitch: I need the > test > >> phase to be the last one executed. Since all of this code is test code > >> there will be no artifacts to install, no deployments run. But I need > to, > >> say, generate the war files before surefire kicks off and runs the test. > >> How can I do that? Could I bind the surefire plugin to the install > phase > >> instead? > >> > > Try to identify the "Maven way" to do what you are doing. > > Maven is not Ant. > > > > Don't be tempted to invent something new unless you are sure that no one > > else has ever tried to develop an application like yours. > > There is a Maven Best Practice for almost every situation and most likely > > thousands of people have already set up a project like yours. It > somethings > > takes a bit of digging to find out the "right" way. > > > > > > Ron > > > > --------------------------------------------------------------------- > > 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] > >
