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

Surefire plug-in level dependency doesn't work

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Open
    • Major
    • Resolution: Unresolved
    • 3.0.0-M5
    • None
    • Junit 4.x support
    • None

    Description

      I've been using a Junit 4.x listener for years, to wrap every test method run with nice header/trailer decorations.

       I've been doing this by adding the dependency to the listener class in the surefire's <plugin> section and then using the property listener.

      I've just discovered that this doesn't work anymore with 3.0.0-M5 version: it says that the listener's ClassNotFoundException for the listener class.

      You can verify this with the attached simple project.

      Using it, I've tried several older versions until I found that the latest working is 2.19.1, the 2.20.1 raises a NullPointerEx and I didn't get exactly where (see the .out in the attachment).

       

      Attachments

        1. junit-deptest.zip
          16 kB
          Marco Brandizi

        Activity

          People

            Unassigned Unassigned
            mbrandizi Marco Brandizi
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated: