What build server? With Hudson, you could just set another build step to run ant's junit task immediately after Maven ran.
Wayne On Thu, Oct 16, 2008 at 2:37 AM, <[EMAIL PROTECTED]> wrote: > Hey, > > I am building a fat-jar bundling all dependencies using an Maven assembly > plugin. To ensure afterwards that this jar is tested I would like to run all > its tests against the jar file. > > I played around with the surefire:plugin and additionalClasspathElements plus > testClassDirectory - without any significant success - at the moment I am > using an maven-antrun plugin and utilising the junit task - BUT my maven > build wont fail if I have an error in the junit task :-(. > > Tried using errorproperty of the junit task and set the > maevn.test.haltafterError property to true ... still the outcome of my maven > build will be always successful even my junit task finds errors. And because > the maven build is successful my build server wont tell me that it has > problems. > > Anyone any idea .... > > Thanks Perron > -- > GMX Kostenlose Spiele: Einfach online spielen und Spaß haben mit Pastry > Passion! > http://games.entertainment.gmx.net/de/entertainment/games/free/puzzle/6169196 > > --------------------------------------------------------------------- > To unsubscribe, e-mail: [EMAIL PROTECTED] > For additional commands, e-mail: [EMAIL PROTECTED] > >