Sorry you had to go through all that. Perhaps it is a sign we have our answers in the wrong places.
http://jakarta.apache.org/turbine/maven/ref/faq.html#unit-test-14 Were you using jdk 1.4? Probably, which means as soon as you change forking to true in cvs, jdk users < 1.4 could have problems. -Peter ----- Original Message ----- From: "Henning P. Schmiedehausen" <[EMAIL PROTECTED]> Newsgroups: hometree.jakarta.turbine.dev To: <[EMAIL PROTECTED]> Sent: Monday, July 01, 2002 8:19 AM Subject: Fulcrum: Fork the Junit tests > Hi, > > it took me quite a while to find out why sometimes my JUnit tests fail > with strange loader violation errors. > > After reading various articles in the ant and junit mailing lists, this > fixes all my problems forever: > > --- jakarta-turbine-fulcrum/project.properties Fri May 31 20:20:22 2002 > +++ ../fulcrum/project.properties Fri Jun 21 11:54:46 2002 > @@ -4,6 +4,10 @@ > maven.delegatorBuildFile = build.xml > maven.prepareSourceDirectory = target/src > maven.prepareSourceTarget = om > +# > +# Without this, tests may fail with "loader constraints violated" > +# > +maven.junit.fork = true > > > Is there any objection to make this the default by putting it into the > fulcrum CVS? > > Regards > Henning > > -- > Dipl.-Inf. (Univ.) Henning P. Schmiedehausen -- Geschaeftsfuehrer > INTERMETA - Gesellschaft fuer Mehrwertdienste mbH [EMAIL PROTECTED] > > Am Schwabachgrund 22 Fon.: 09131 / 50654-0 [EMAIL PROTECTED] > D-91054 Buckenhof Fax.: 09131 / 50654-20 > > -- > 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]>
