Skip to content

Commit 62e31da

Browse files
committed
Fix test problem
1 parent ff48092 commit 62e31da

1 file changed

Lines changed: 12 additions & 0 deletions

File tree

spi-subtypes/pom.xml

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -59,6 +59,18 @@
5959
<groupId>org.apache.maven.plugins</groupId>
6060
<artifactId>maven-compiler-plugin</artifactId>
6161
</plugin>
62+
<!-- 19-Jan-2026: Tests must run on classpath (not module path)
63+
because ServiceLoader.load() requires caller module to
64+
declare 'uses' for each service type, which isn't possible
65+
when service types are determined dynamically at runtime.
66+
-->
67+
<plugin>
68+
<groupId>org.apache.maven.plugins</groupId>
69+
<artifactId>maven-surefire-plugin</artifactId>
70+
<configuration>
71+
<useModulePath>false</useModulePath>
72+
</configuration>
73+
</plugin>
6274
</plugins>
6375
</build>
6476
</project>

0 commit comments

Comments
 (0)