module-info

Unable to derive module descriptor for auto generated module names in Java 9?

点点圈 提交于 2019-11-26 02:01:23
问题 My project depends on Netty Epoll transport. Here is dependency: <dependency> <groupId>io.netty</groupId> <artifactId>netty-transport-native-epoll</artifactId> <version>${netty.version}</version> <classifier>${epoll.os}</classifier> </dependency> The auto-generated module name for this dependency is: netty.transport.native.epoll And as the native keyword is reserved in Java 9 I can\'t add this module as a dependency to my project: module core { requires netty.transport.native.epoll; } Due to:

Unable to compile simple Java 10 / Java 11 project with Maven

…衆ロ難τιáo~ 提交于 2019-11-26 00:37:51
问题 I have a trivial Maven project: src └── main └── java └── module-info.java pom.xml pom.xml: <groupId>org.example</groupId> <artifactId>example</artifactId> <version>1.0-SNAPSHOT</version> <packaging>jar</packaging> <name>example</name> <build> <plugins> <plugin> <groupId>org.apache.maven.plugins</groupId> <artifactId>maven-compiler-plugin</artifactId> <version>3.7.0</version> <configuration> <release>10</release> </configuration> </plugin> </plugins> </build> When I build the project via mvn

Unable to compile simple Java 10 / Java 11 project with Maven

会有一股神秘感。 提交于 2019-11-25 21:39:06
I have a trivial Maven project: src └── main └── java └── module-info.java pom.xml pom.xml: <groupId>org.example</groupId> <artifactId>example</artifactId> <version>1.0-SNAPSHOT</version> <packaging>jar</packaging> <name>example</name> <build> <plugins> <plugin> <groupId>org.apache.maven.plugins</groupId> <artifactId>maven-compiler-plugin</artifactId> <version>3.7.0</version> <configuration> <release>10</release> </configuration> </plugin> </plugins> </build> When I build the project via mvn -X install -DskipTests=true , it fails: org.apache.maven.lifecycle.LifecycleExecutionException: Failed