当前位置:   article > 正文

Unable to make field private com.sun.tools.javac.processing.JavacProcessingEnvironment_an internal error occurred during: "svn 清理". unabl

an internal error occurred during: "svn 清理". unable to make field private

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 @3e46c46e

 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 @3e46c46e 
  • 1
  • 2
  • 3
  • 4
[ERROR] Failed to execute goal org.apache.maven.plugins:maven-compiler-plugin:3.11.0:compile (default-compile) on project XXXX 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 @23556f03 -> [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 :XXXX
  • 1
  • 2
  • 3
  • 4
  • 5
  • 6
  • 7
  • 8
  • 9
  • 10
  1. 检查maven安装到高版本
    检查java -version 高版本
    idea java版本,maven版本

  2. lombok版本和jdk16冲突
    lombok版本和jdk高版本冲突;
    可以把lombok版本升下,如1.18.26:

<dependency>
      <groupId>org.projectlombok</groupId>
      <artifactId>lombok</artifactId>
      <version>1.18.26</version>
</dependency>
  • 1
  • 2
  • 3
  • 4
  • 5
声明:本文内容由网友自发贡献,不代表【wpsshop博客】立场,版权归原作者所有,本站不承担相应法律责任。如您发现有侵权的内容,请联系我们。转载请注明出处:https://www.wpsshop.cn/w/花生_TL007/article/detail/195710
推荐阅读
相关标签
  

闽ICP备14008679号