you can create a custom lifecycle which identifies the artifacts you wish to execute in \META-INF\maven\lifecycles.xml http://www.sonatype.com/books/mvnref-book/reference/writing-plugins-sect-plugins-lifecycle.html
Martin Gainty ______________________________________________ Jogi és Bizalmassági kinyilatkoztatás/Verzicht und Vertraulichkeitanmerkung/Note de déni et de confidentialité Ez az üzenet bizalmas. Ha nem ön az akinek szánva volt, akkor kérjük, hogy jelentse azt nekünk vissza. Semmiféle továbbítása vagy másolatának készítése nem megengedett. Ez az üzenet csak ismeret cserét szolgál és semmiféle jogi alkalmazhatósága sincs. Mivel az electronikus üzenetek könnyen megváltoztathatóak, ezért minket semmi felelöség nem terhelhet ezen üzenet tartalma miatt. Diese Nachricht ist vertraulich. Sollten Sie nicht der vorgesehene Empfaenger sein, so bitten wir hoeflich um eine Mitteilung. Jede unbefugte Weiterleitung oder Fertigung einer Kopie ist unzulaessig. Diese Nachricht dient lediglich dem Austausch von Informationen und entfaltet keine rechtliche Bindungswirkung. Aufgrund der leichten Manipulierbarkeit von E-Mails koennen wir keine Haftung fuer den Inhalt uebernehmen. Ce message est confidentiel et peut être privilégié. Si vous n'êtes pas le destinataire prévu, nous te demandons avec bonté que pour satisfaire informez l'expéditeur. N'importe quelle diffusion non autorisée ou la copie de ceci est interdite. Ce message sert à l'information seulement et n'aura pas n'importe quel effet légalement obligatoire. Étant donné que les email peuvent facilement être sujets à la manipulation, nous ne pouvons accepter aucune responsabilité pour le contenu fourni. > Date: Fri, 29 Apr 2011 08:02:16 +1000 > Subject: Re: reordering the lifecycle > From: ed.hillm...@gmail.com > To: users@maven.apache.org > > Wouldn't it be easier to use the integration-test phase instead of the test > phase? The integration-test phase runs after the package phase, and can be > used to run tests later in the lifecycle. > > Just a thought, > Ed > > On Fri, Apr 29, 2011 at 7:35 AM, Justin Lee <evancho...@gmail.com> 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? > >