Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Build error when runs mvn clean install #7

Open
zdsantos opened this issue Sep 23, 2021 · 1 comment
Open

Build error when runs mvn clean install #7

zdsantos opened this issue Sep 23, 2021 · 1 comment

Comments

@zdsantos
Copy link

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

@zdsantos
Copy link
Author

More info:

λ mvn -version
Apache Maven 3.8.2 (ea98e05a04480131370aa0c110b8c54cf726c06f)
Maven home: D:\tools\apache-maven-3.8.2
Java version: 17, vendor: Oracle Corporation, runtime: C:\Program Files\Java\jdk-17
Default locale: pt_BR, platform encoding: Cp1252
OS name: "windows 10", version: "10.0", arch: "amd64", family: "windows"

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant