[ https://issues.apache.org/jira/browse/SUREFIRE-1993?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17488982#comment-17488982 ]
Maarten Mulders commented on SUREFIRE-1993: ------------------------------------------- [~tibordigana], I'm having a hard time getting the IT's to run locally. I tried to run them with {{mvn verify -P run-its}} but even the existing ones (for example {{JUnitPlatformIT.testMultipleEngines}}) fail with {code}[ERROR] Caused by: java.lang.ClassNotFoundException: org.apache.maven.surefire.junitplatform.JUnitPlatformProvider [ERROR] at java.base/jdk.internal.loader.BuiltinClassLoader.loadClass(BuiltinClassLoader.java:581) [ERROR] at java.base/jdk.internal.loader.ClassLoaders$AppClassLoader.loadClass(ClassLoaders.java:178) [ERROR] at java.base/java.lang.ClassLoader.loadClass(ClassLoader.java:522) [ERROR] at org.apache.maven.surefire.api.util.ReflectionUtils.loadClass(ReflectionUtils.java:215) [ERROR] ... 6 more [ERROR] {code} It's probably something stupid I'm missing - does it make a bell ring for you? > Failsafe fails to detect module dependencies > -------------------------------------------- > > Key: SUREFIRE-1993 > URL: https://issues.apache.org/jira/browse/SUREFIRE-1993 > Project: Maven Surefire > Issue Type: Bug > Components: Maven Failsafe Plugin > Affects Versions: 3.0.0-M5 > Environment: Java 17 > Maven 4.0.0-alpha-SNAPSHOT and 3.8.4 > Reporter: Maarten Mulders > Priority: Minor > Attachments: reproducer.zip > > > Please see the attached project. It has three Maven modules, each defining > its own JPMS module. The *application* module depends on an interface from > the *studentservice* module, and the implementation for that interface lives > in {*}studentservice-provider{*}. The {{module-info.java}} for the > *studentservice-provider* module declares the implementation of that > interface. > When you run the application using {{{}./manually.sh{}}}, it correctly loads > the *studentservice-provider* module. When you run the IT, it does not. > The application prints the module path to standard out. > From the test script it prints: > {code:java} > application/target/application-1.jar > studentservice/target/studentservice-1.jar > studentservice-provider/target/studentservice-provider-1.jar{code} > From the integration test, which starts the same application, it prints: > {code:java} > application/target/application-1.jar > studentservice/target/studentservice-1.jar{code} > > Note how in the integration test the *studentservice-provider* is missing in > the output. -- This message was sent by Atlassian Jira (v8.20.1#820001)