当前位置:   article > 正文

JAVA编译过程中的一些错误解决方案_fatal error compiling: java.lang.exceptionininitia

fatal error compiling: java.lang.exceptionininitializererror: unable to make

报错信息

 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 @402c3dce -> [Help 1]
  • 1

解决方案

先用mvn -v查看mvn版本信息,如果jdk设置了 jdk16,则说明jdk版本过高,需要降级。建议使用jdk8.

报错信息

Failed to execute goal on project xxx-base-core: Could not resolve dependencies 
for project org.dekunframework.boot:xxxx-base-core:jar:2.4.0: The following artifacts 
could not be resolved: org.hibernate:hibernate-re:jar:2.3.07, 
org.jeecgframework.boot:codegenerate:jar:1.2.5: Cannot access nexus-aliyun 
(http://maven.aliyun.com/nexus/content/groups/public) in offline mode and the artifact 
org.hibernate:hibernate-re:jar:2.3.07 has not been downloaded from it before. -> [Help 1]
  • 1
  • 2
  • 3
  • 4
  • 5
  • 6

解决方案

mvn换镜像源

<mirrors>
       <mirror>
            <id>nexus-aliyun</id>
            <mirrorOf>*,!jeecg,!jeecg-snapshots,!getui-nexus</mirrorOf>
            <name>Nexus aliyun</name>
            <url>https://maven.aliyun.com/repository/public</url>
        </mirror> 
 </mirrors>
  • 1
  • 2
  • 3
  • 4
  • 5
  • 6
  • 7
  • 8
声明:本文内容由网友自发贡献,不代表【wpsshop博客】立场,版权归原作者所有,本站不承担相应法律责任。如您发现有侵权的内容,请联系我们。转载请注明出处:https://www.wpsshop.cn/w/盐析白兔/article/detail/195645
推荐阅读
相关标签
  

闽ICP备14008679号