I've seen the same thing, and actually thought about some fixes.. Could make junit-report smarter to only run if the unit test report files don't exist. Could also introduce some sort of pregoal to test:test that checks and if the tests have been run, then set maven.test.skip=true..
Eric > -----Original Message----- > From: Springer, Ian P. [mailto:[EMAIL PROTECTED] > Sent: Monday, July 26, 2004 6:48 PM > To: [EMAIL PROTECTED] > Subject: issue w/ test:test goal being run multiple times when dist goal > is executed > > > When I run "maven dist", my project's unit tests get run three times: > > 1) because test:test is a prereq of jar:jar > 2) because test:test is a prereq of war:webapp > (which I call from a dist:prepare-bin-filesystem postgoal in > maven.xml) > 3) because junit-report:report does an attainGoal of test:test > > Running the unit test three times slows down the dist build and also > clutters Maven's output. Does anyone know of a workaround for this > issue? > > Thanks, > Ian > > --------------------------------------------------------------------- > 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]
