Hi all,
I'm trying out the scala-maven-plugin 3.2.2 with java 9 build 156 and was wondering what the status is on supporting Java 9 ? Right now when I run the plugin I get the error:
[ERROR] error: scala.reflect.internal.MissingRequirementError: object java.lang.Object in compiler mirror not found.
[ERROR] at scala.reflect.internal.MissingRequirementError$.signal(MissingRequirementError.scala:17)
[ERROR] at scala.reflect.internal.MissingRequirementError$.notFound(MissingRequirementError.scala:18)
Which I am pretty sure it can be solved by passing the option "-J--add-opens -Jjava.base/java.lang=ALL-UNNAMED" to the javac compiler (works with the maven compiler plugin). However I'm not sure how to do that or if it makes sense in this case. After looking around, I tried to pass those arguments with the following configuration:
<plugin>
<groupId>net.alchim31.maven</groupId>
<artifactId>scala-maven-plugin</artifactId>
<version>3.2.2</version>
<configuration>
<!--<fork>true</fork>-->
<javacArgs>-J--add-opens -Jjava.base/java.lang=ALL-UNNAMED -J--add-opens -Jjava.base/java.lang.reflect=ALL-UNNAMED</javacArgs>
<args>-J--add-opens -Jjava.base/java.lang=ALL-UNNAMED -J--add-opens -Jjava.base/java.lang.reflect=ALL-UNNAMED</args>
</configuration>
</plugin>
But still no luck. Is there a way to make this work or is this not supported yet?
Cheers,
John.