Trevas - Java 17
· Ett minutt lesing
News
Trevas 1.2.0 enables Java 17 support.
Java modules handling
Spark does not support Java modules.
Java 17 client apps, embedding Trevas in Spark mode have to configure UNNAMED
modules for Spark.
Maven
Add to your pom.xml
file, in the build > plugins
section:
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-compiler-plugin</artifactId>
<version>3.11.0</version>
<configuration>
<compilerArgs>
<arg>--add-exports</arg>
<arg>java.base/sun.nio.ch=ALL-UNNAMED</arg>
</compilerArgs>
</configuration>
</plugin>
Docker
ENTRYPOINT ["java", "--add-exports", "java.base/sun.nio.ch=ALL-UNNAMED", "mainClass"]