Uploaded image for project: 'Maven Compiler Plugin'
  1. Maven Compiler Plugin
  2. MCOMPILER-328

Module not found when java services are involved

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Critical
    • Resolution: Not A Problem
    • 3.7.0
    • None
    • None

    Description

      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 all the details:

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

      Just clone it and run mvn clean package

      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 the issue comes from Maven.

      Attachments

        Activity

          People

            rfscholte Robert Scholte
            reda-alaoui Réda Housni Alaoui
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: