-
Notifications
You must be signed in to change notification settings - Fork 2
Description
When I tryed to run mvn clean install, I got this build error. I've tryed to delete the maven-compiler-plugin folder end re-run to prevent any corruption error, but nothing change.
Here is my console output:
λ mvn clean install
[INFO] Scanning for projects...
[INFO]
[INFO] -------------------------< eu.openreq:openreq >-------------------------
[INFO] Building openreq_releaseplanning 1.0
[INFO] --------------------------------[ jar ]---------------------------------
[INFO]
[INFO] --- maven-clean-plugin:2.6.1:clean (default-clean) @ openreq ---
[INFO] Deleting D:\tools\openreq-live-master\target
[INFO]
[INFO] --- maven-resources-plugin:2.6:resources (default-resources) @ openreq ---
[INFO] Using 'UTF-8' encoding to copy filtered resources.
[INFO] Copying 1 resource
[INFO] Copying 173 resources
[INFO]
[INFO] --- maven-compiler-plugin:3.1:compile (default-compile) @ openreq ---
[INFO] Changes detected - recompiling the module!
[INFO] Compiling 213 source files to D:\tools\openreq-live-master\target\classes
[INFO] ------------------------------------------------------------------------
[INFO] BUILD FAILURE
[INFO] ------------------------------------------------------------------------
[INFO] Total time: 6.689 s
[INFO] Finished at: 2021-09-22T22:06:40-03:00
[INFO] ------------------------------------------------------------------------
[ERROR] Failed to execute goal org.apache.maven.plugins:maven-compiler-plugin:3.1:compile (default-compile) on project openreq: Fatal error compiling: java.lang.ExceptionInInitializerError: Unable to make field private com.sun.tools.javac.processing.JavacProcessingEnvironment$DiscoveredProcessors com.sun.tools.javac.processing.JavacProcessingEnvironment.discoveredProcs accessible: module jdk.compiler does not "opens com.sun.tools.javac.processing" to unnamed module @7d1e54a6 -> [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