[Created] (MCOMPILER-328) Module not found when java services are involved

Previous Topic Next Topic
 
classic Classic list List threaded Threaded
1 message Options
Reply | Threaded
Open this post in threaded view
|

[Created] (MCOMPILER-328) Module not found when java services are involved

JIRA jira@apache.org
Réda Housni Alaoui created MCOMPILER-328:
--------------------------------------------

             Summary: Module not found when java services are involved
                 Key: MCOMPILER-328
                 URL: https://issues.apache.org/jira/browse/MCOMPILER-328
             Project: Maven Compiler Plugin
          Issue Type: Bug
    Affects Versions: 3.7.0
            Reporter: Réda Housni Alaoui


I have a project using Maven and Java 9 that is unable to require elasticsearch automodule.

I created a a project reproducing easily the issue with a README containing the reproduction scenario and the debug I made that lead me to {{jdk.internal.module.ModulePath}}:

[https://github.com/Cosium/jigsaw-elasticsearch]

Build fails with:

```

{{[ERROR] Failed to execute goal org.apache.maven.plugins:maven-compiler-plugin:3.7.0:compile (default-compile) on project jigsaw-elasticsearch: Compilation failure [ERROR] /srv/git/cosium/jigsaw-elasticsearch/src/main/java/module-info.java:[7,14] module not found: elasticsearch}}

```

The same project compiles well with Gradle.

Therefore I am inclined to believe that issue comes from Maven.



--
This message was sent by Atlassian JIRA
(v7.6.3#76005)