Have you tried maven.junit.fork? I had all sorts of weird XML problems with any version of Xerces (1.4.3 all the way to 2.2.1), like an incompatible class change error. Forking the junit tests fixed it. This is in the FAQ. My guess is Eclipse forks junit tests (certainly up until 2.1 M3 it did), which would explain the difference.

Cheers,
Brett

Moritz Petersen wrote:
--------------------------------------------------------------------------------
Sorry, if you receive this mail twice, my mail system seems to have some errors.
--------------------------------------------------------------------------------

Hello dIon,

thank you for the efforts. My experiences with the downloaded xerces-2.2.1.jar are:
o I tested my application with Eclipse (on both, Mac OS X and Win 2k), referencing the .jar files in the Maven repository. - The tests run fine!
o I tested my application with Maven using "maven test" and the problem occurs (on both platforms).
Does the error message I've provided with the previous mail tell you anything? It _must_ be an error with Maven, because there _is_ an error message (I am not angry, I am just confused...).

What can I do? Is there any way to debug more detailled, than running maven -X -e? Is it possible that my project.xml is corrupt or contains any errors? I'd like to continue using Maven with my projects, but at this point, it seems to be hopeless.
Thank you! Any replies / comments / suggestions are appreciated!
-Mo.

P.S.: This was the error message I received:
junit] [DEBUG] Class org.apache.xerces.impl.XMLDocumentScannerImpl$ContentDispatcher loaded from parent loader [junit] [VERBOSE] Exception reading component /Users/moritzpetersen/Documents/Projekte/Resources/apache.org/install/ jakarta-turbine-maven/repository/xerces/jars/xerces-2.2.1.jar



I have a couple of problems with maven in the past days, one of the problem is, that the xerces-2.2.1.jar from the ibiblio repository
I'm downloading now to check it out.
It unzips ok. And seems fine for me.

Please help! I cannot build / test any more with maven, which is really ugly!
You can build/test simply by downloading the xerces 2.2.1 jar from xml.apache.org and putting it in the right place in your local repository. The jar was last updated on 2002-11-25, so I'm a little sceptical.
I'll go grab the real one and compare...
I got the following: C:\temp>comp xerces-2.2.1.jar xercesImpl.jar Comparing xerces-2.2.1.jar and xercesImpl.jar... Files compare OK

--
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]>

Reply via email to