[ 
https://issues.apache.org/jira/browse/SUREFIRE-1830?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Knut Wannheden updated SUREFIRE-1830:
-------------------------------------
    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.|https://github.com/knutwannheden/maven-surefire-tccl-bug]

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

  was:
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.|https://github.com/knutwannheden/maven-surefire-tccl-bug]

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


> Regression when running test using ServiceLoader
> ------------------------------------------------
>
>                 Key: SUREFIRE-1830
>                 URL: https://issues.apache.org/jira/browse/SUREFIRE-1830
>             Project: Maven Surefire
>          Issue Type: Bug
>          Components: Maven Failsafe Plugin
>    Affects Versions: 3.0.0-M5
>            Reporter: Knut Wannheden
>            Priority: Major
>
> 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.|https://github.com/knutwannheden/maven-surefire-tccl-bug]
> Note that if the service is defined in {{src/main}} then the service is found.



--
This message was sent by Atlassian Jira
(v8.3.4#803005)

Reply via email to