Uploaded image for project: 'Maven Surefire'
  1. Maven Surefire
  2. SUREFIRE-313

build fails with ClassNotFoundException, BUT the class IS there!

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Fixed
    • 2.3
    • 2.4
    • None
    • Windows XP SP2, Java SE 6, Maven 2.0.5

    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

        1. pom.xml
          1 kB
          Ivan Mikushin
        2. mvn-pojo-test.log
          34 kB
          Ivan Mikushin
        3. mvn-junit4.log
          34 kB
          Ivan Mikushin

        Issue Links

          Activity

            People

              Unassigned Unassigned
              i.mikushin Ivan Mikushin
              Votes:
              1 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: