Hey Wayne I am using Hudson.
So if I understood you right: You would considering to set up a job on Hudson which just does build of the fatjar and a second job triggered afterwards that runs my tests against it - via this way I would not be troubled with the fact that the Maven-antrun-plugin is not passing its errors back to the Maven lifecycle. Well it is definitely a solution - even it does not sound great. Does anybody has a cool if you could use the surefire:plugin to do the testing against the compiled java sources. As I mentioned early I have tried it but was not blessed with success. Thanks Perron Wayne Fay wrote: > > 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] >> >> > > -- View this message in context: http://www.nabble.com/Running-compiled-tests-against-a-fat-jar-tp20010631p20029529.html Sent from the Maven - Users mailing list archive at Nabble.com. --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
