You have a module-info.class in your classpath likely extracted from one of your dependencies. You can set extractDependencies to false which will prevent this problem. Additionally, you can upgrade to AMPS 8.0.4 which will solve the bug that you’re experiencing. https://ecosystem.atlassian.net/browse/AMPS-1509
Thank you for your hint. I tried your tips. However it was not the problem.
My colleague fixed it and told me that the problem was either compiling with Java 9 or a misconfigured Google gson dependency which caused the problem.
Nice that you were able to solve it.
Gson 2.8.6 added a module-info file (Java 9) and you had extractDependencies property not set to false. This is exactly the problem which is tracked in AMPS-1509.
The problem arose because I used the @Component annotation from org.osgi.service.component.annotations.Component instead of the Spring @Component annotation. This caused a mismatch in the OSGi component resolution, as the plugin was expecting Spring-based component management but encountered OSGi-based annotations instead.
Fix:
After replacing the @Component annotation from org.osgi.service.component.annotations with the Spring @Component annotation, the issue was resolved.