Fatal error compiling: Unrecognized option : java.datatransfer -> [Help 1] [ERROR] [ERROR] To see the full stack trace of the errors, re-run Maven with the -e switch. [ERROR] Re-run Maven using the -X switch to enable full debug logging. [ERROR] [ERROR] For more information about the errors and possible solutions, please read the following articles: [ERROR] [Help 1] http://cwiki.apache.org/confluence/display/MAVEN/MojoExecutionException
Am getting above error while limiting java modules. Can anyone plz help me into this. below is the section where I have limited module.
<plugin>
<groupId>org.eclipse.tycho</groupId>
<artifactId>tycho-compiler-plugin</artifactId>
<version>${tycho-version}</version>
<configuration>
<compilerArgument>--warn:none</compilerArgument>
<compilerArgument>--err:none</compilerArgument>
<compilerArgument>-warn:+discouraged,forbidden</compilerArgument>
<compilerArgs>--limit-modules,java.base,java.compiler,java.datatransfer,java.desktop,java.instrument,java.logging,java.management,java.management.rmi,java.naming,java.net.http,java.prefs,java.rmi,java.scripting,java.se,java.security.jgss,java.security.sasl,java.smartcardiojava.sql,java.sql.rowset,java.transaction.xa,java.xml.crypto,jdk.accessibility,jdk.attach,jdk.charsets,jdk.compiler,jdk.crypto.cryptoki,jdk.crypto.ec</compilerArgs>
<useProjectSettings>true</useProjectSettings>
</configuration>
</plugin>
I'm not able to limit the module.