We've recently been discussing this if you care to spin through the archives for all the details. What it boils down to is currently you cannot produce a jar if you have failing tests. The proposed solution was to create a target that didn't depend on the tests to get around this. As to having failing tests, the reports of the failures are captured and you can produce the web site with a report of passing and failing test cases.
I'm curious though, why do you want to create a distribution that doesn't pass your unit tests? ================================================================= Jeffrey D. Brekke Quad/Graphics [EMAIL PROTECTED] http://www.qg.com > -----Original Message----- > From: Glen Stampoultzis [mailto:[EMAIL PROTECTED]] > Sent: Tuesday, June 25, 2002 2:11 AM > To: Turbine Maven Users List > Subject: Re: NoClassDefFoundError > > > > Okay, fixed it. Looked like I needed to turn on forking for junit. > > Next question. The build fails if there are any junit test > cases failing. > This means I can't use build-dist unless I have 100% passing > testcases. Is > there anyway to turn this off? > > Regards, > > Glen > > > ----- Original Message ----- > From: "Glen Stampoultzis" <[EMAIL PROTECTED]> > To: <[EMAIL PROTECTED]> > Sent: Tuesday, June 25, 2002 4:16 PM > Subject: NoClassDefFoundError > > > > In beta 4 I'm getting the following when running the > maven:build-dist > > target. Any ideas? > > > > > > BUILD FAILED > > > > java.lang.NoClassDefFoundError > > at java.lang.reflect.Constructor.newInstance(Native Method) > > at > junit.framework.TestSuite.addTestMethod(TestSuite.java:102) > > at junit.framework.TestSuite.<init>(TestSuite.java:66) > > at > > > org.apache.tools.ant.taskdefs.optional.junit.JUnitTestRunner.<init>(J > > UnitTestRunner.java:195) > > at > > > org.apache.tools.ant.taskdefs.optional.junit.JUnitTask.executeInVM(JU > > nitTask.java:558) > > at > > > org.apache.tools.ant.taskdefs.optional.junit.JUnitTask.execute(JUnitT > > ask.java:403) > > at > > > org.apache.tools.ant.taskdefs.optional.junit.JUnitTask.execute(JUnitT > > ask.java:380) > > at org.apache.tools.ant.Task.perform(Task.java:217) > > at org.apache.tools.ant.Target.execute(Target.java:184) > > at org.apache.tools.ant.Target.performTasks(Target.java:202) > > at > org.apache.tools.ant.Project.executeTarget(Project.java:601) > > at org.apache.tools.ant.taskdefs.Ant.execute(Ant.java:266) > > at org.apache.tools.ant.Task.perform(Task.java:217) > > at org.apache.tools.ant.Target.execute(Target.java:184) > > at org.apache.tools.ant.Target.performTasks(Target.java:202) > > at > org.apache.tools.ant.Project.executeTarget(Project.java:601) > > at org.apache.tools.ant.taskdefs.Ant.execute(Ant.java:266) > > at > > > org.apache.tools.ant.taskdefs.CallTarget.execute(CallTarget.java:120) > > > > at org.apache.tools.ant.Task.perform(Task.java:217) > > at org.apache.tools.ant.Target.execute(Target.java:184) > > at org.apache.tools.ant.Target.performTasks(Target.java:202) > > at > org.apache.tools.ant.Project.executeTarget(Project.java:601) > > at org.apache.tools.ant.taskdefs.Ant.execute(Ant.java:266) > > at org.apache.tools.ant.Task.perform(Task.java:217) > > at org.apache.tools.ant.Target.execute(Target.java:184) > > at org.apache.tools.ant.Target.performTasks(Target.java:202) > > at > org.apache.tools.ant.Project.executeTarget(Project.java:601) > > at > org.apache.tools.ant.Project.executeTargets(Project.java:560) > > at org.apache.tools.ant.Main.runBuild(Main.java:454) > > at org.apache.tools.ant.Main.start(Main.java:153) > > at org.apache.tools.ant.Main.main(Main.java:176) > > > > Total time: 58 seconds > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > -- > > To unsubscribe, e-mail: > <mailto:[EMAIL PROTECTED]> > > For additional commands, e-mail: > <mailto:[EMAIL PROTECTED]> > > > > > > -- > To unsubscribe, e-mail: > <mailto:[EMAIL PROTECTED]> > For additional commands, e-mail: > <mailto:[EMAIL PROTECTED]> > -- To unsubscribe, e-mail: <mailto:[EMAIL PROTECTED]> For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>
