jvm servlet JAVA编译过程中的一些错误解决方案 - 先用mvn -v查看mvn版本信息,如果jdk设置了 jdk16,则说明jdk版本过高,需要降级
报错信息
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]
解决方案
先用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]
解决方案
mvn换镜像源:
nexus-aliyun
*,!jeecg,!jeecg-snapshots,!getui-nexus
Nexus aliyun
https://maven.aliyun.com/repository/public 拼多多帮助力入口
相关阅读,jvm