Maven + Eclipse Oxygen + Java 9

Viewed 2582

I created a very basic maven project:

<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
    xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
    <modelVersion>4.0.0</modelVersion>
    <groupId>de.jotschi</groupId>
    <artifactId>test</artifactId>
    <version>0.0.1-SNAPSHOT</version>

    <build>
        <plugins>
            <plugin>
                <groupId>org.apache.maven.plugins</groupId>
                <artifactId>maven-compiler-plugin</artifactId>
                <version>3.7.0</version>
                <configuration>
                    <source>9</source>
                    <target>9</target>
                </configuration>
            </plugin>
        </plugins>
    </build>

</project>

It just has an de.jotschi.App main class and a /test/src/main/java/module-info.java file which defines and exports the module:

module test {
  exports de.jotschi;
}

If I run the App class within eclipse I see the following error:

Error occurred during initialization of boot layer java.lang.module.FindException: Module test not found

Eclipse: Oxygen.1 Release (4.7.1) + Java 9 Support for Oxygen

Java: 9+181

1 Answers
Related