[ 
https://issues.apache.org/jira/browse/SUREFIRE-1830?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17174238#comment-17174238
 ] 

Knut Wannheden commented on SUREFIRE-1830:
------------------------------------------

When running {{mvn verify -X}} this is what gets printed with 3.0.0-M4:
{noformat}
[DEBUG] boot(compact) classpath:  surefire-booter-3.0.0-M4.jar  
surefire-api-3.0.0-M4.jar  surefire-logger-api-3.0.0-M4.jar  test-classes  
maven-surefire-tccl-bug-1.0-SNAPSHOT.jar  junit-jupiter-5.6.2.jar  
junit-jupiter-api-5.6.2.jar  apiguardian-api-1.1.0.jar  opentest4j-1.2.0.jar  
junit-platform-commons-1.6.2.jar  junit-jupiter-params-5.6.2.jar  
junit-jupiter-engine-5.6.2.jar  junit-platform-engine-1.6.2.jar  
surefire-junit-platform-3.0.0-M4.jar  common-java5-3.0.0-M4.jar  
junit-platform-launcher-1.6.2.jar {noformat}

> 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