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

Regression when running test using ServiceLoader

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Duplicate
    • 3.0.0-M5
    • None
    • Maven Failsafe Plugin
    • None

    Description

      When running a test using failsafe which uses ServiceLoader to load a service which is defined in the src/test source folder, the ServiceLoader fails to find the service. This worked in 3.0.0-M4 and earlier releases. For a minimal example take a look at: https://github.com/knutwannheden/maven-surefire-tccl-bug.

      Note that if the service is defined in src/main then the service is found.

      Attachments

        Issue Links

          Activity

            People

              tibordigana Tibor Digana
              d96knut Knut Wannheden
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: