J'ai écrit une application de module Java 9 avec maven et maintenant j'essaie d'ajouter des cas de test.Erreur de test des modules Java 9
J'ai cette erreur quand je suis en train de mvn clean install
sur le projet tout:
[ERROR] Failed to execute goal org.apache.maven.plugins:maven-compiler-plugin:3.6.1:testCompile (default-testCompile) on project EmployeeModule: Fatal error compiling: invalid flag: -Xmodule:EmployeeModule -> [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
[ERROR]
[ERROR] After correcting the problems, you can resume the build with the command
[ERROR] mvn <goals> -rf :EmployeeModule
Ses étranges parce que je peux exécuter ce projet IntelliJ sans avertissement ni erreur, je peux aussi effectuer des tests dans ce module sans erreurs . J'utilise Java 9 d'Oracle Site et Maven 3.5.0. Désolé, je ne peux pas le marquer avec java9.
C'était trop facile: D Merci! – amkz