Why won't the ServiceLoader load any implementations from another module?
问题 I have a multi-module maven project which is making use of the JPMS features. The consumer module is not loading the implementations present in the provider module. Here's the maven project structure: ServiceLoaderExample ├── consumer ├── distribution ├── provider ├── service The interface TestService is defined in the "service" module. The implementation is TestServiceImpl which is defined in the "provider" module. And the main() method in the "consumer" module uses the ServiceLoader API to