本文分析了Maven编译错误'Failed to execute goal org.apache.maven.plugins:maven-compiler-plugin:3.8.1:compile'的原因,包括JDK版本不匹配、源代码错误、Maven配置问题及Lombok插件兼容性问题。提供了检查JDK版本、修改pom.xml、重新编译和确认Lombok版本的解决步骤。
Failed to execute goal org.apache.maven.plugins:maven-compiler-plugin:3.8.1:
compile (default-compile) on project scenario-engine: Fatal error compiling
WARNING: An illegal reflective access operation has occurred
WARNING: Illegal reflective access by lombok.javac.apt.LombokProcessor to field com.sun.tools.javac.processing.JavacProcessingEnvironment.processorClassLoader
WARNING: Please consider reporting this to the maintainers of lombok.javac.apt.LombokProcessor
WARNING: Use --illegal-access=warn to enable