Details
-
Type:
Bug
-
Status:
Closed
-
Priority:
Major
-
Resolution: Fixed
-
Affects Version/s: 2.3
-
Fix Version/s: 2.4
-
Component/s: classloading, Junit 4.x support
-
Labels:None
-
Environment:Windows XP SP2, Java SE 6, Maven 2.0.5
-
Complexity:Intermediate
-
Number of attachments :
Description
JUnit 4 and POJO tests give ClassNotFoundException exceptions in test phase of the build (pom.xml is attached).
The console output gives a hint: JUnit 3.8.1 is appended to the surefire-booter forked JVM classpath instead of JUnit 4 (I tried it with junit-4.0, 4.1 and 4.2). When I try a POJO test case I get the same error.
Also attached are the outputs from the command lines for JUnit4 and POJO test cases
mvn -X clean test > mvn.log
Attachments
Issue Links
| This issue relates to: | ||||
| SUREFIRE-467 | NoSuchMethodError UrlUtils.getURL when using JDK3 for testing |
|
|
|
Hi,
I had the same issue but I solve it easily : surefire simply doesn't work if the full path or the directory where your artifacts
are contains non plain english chars. This is the case in your logs so just move your code in a simple path (no space, only
standard ASCII char) and it will work.
Some other plugins have the same problem, such as docbook, and so on...