Thanks for the answer that was what i excpected :/ So there is no way to overide the mojo declaration in the .java
* @execute phase="test" lifecycle="surefire" ... except to modify the plugin itself ... Selon "Beyer,Nathan" <[EMAIL PROTECTED]>: > Yes, it will run 3 times, but there's not much that can be done about > it. > > Consider if you adjusted your command to "mvn clean install site". It's > not required, but for clarity, here's what's happening. The 'clean' > launches the clean lifecycle and cleans everything up. The 'install' > causes the build lifecycle to run up to the 'install' phase, which > includes the 'test' phase which runs surefire plugin. The 'site' causes > the site lifecycle to run, which causes the surefire-report plugin to > run and it currently doesn't use existing surefire results, so it runs > the tests again and the cobertura plugin causes the test to run, yet > again. > > There's a bug logged for this [1], but it seems like it won't be > resolved until 2.1/2.2, if then. > > [1] http://jira.codehaus.org/browse/MSUREFIREREP-6 > > -----Original Message----- > From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] > Sent: Wednesday, August 30, 2006 9:25 AM > To: [email protected] > Subject: [M2] My tests are launched 3 times ! > > Hi all, > > I run a 'mvn clean site install' and my tests are launched 3 times : > > On for the surefire report plugin, one for the cobertura plugin and one > for the install plugin. > > How can i do to have them launched only once ? > > Thanks ! > > Ben > > > --------------------------------------------------------------------- > To unsubscribe, e-mail: [EMAIL PROTECTED] > For additional commands, e-mail: [EMAIL PROTECTED] > > > ----------------------------------------- > CONFIDENTIALITY NOTICE This message and any included attachments > are from Cerner Corporation and are intended only for the > addressee. The information contained in this message is > confidential and may constitute inside or non-public information > under international, federal, or state securities laws. > Unauthorized forwarding, printing, copying, distribution, or use of > such information is strictly prohibited and may be unlawful. If you > are not the addressee, please promptly delete this message and > notify the sender of the delivery error by e-mail or you may call > Cerner's corporate offices in Kansas City, Missouri, U.S.A at (+1) > (816)221-1024. ------------------------------------------- > > > --------------------------------------------------------------------- > 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]
