java8升级到java11时maven编译报错 [ERROR] Failed to execute goal org.apache.maven.plugins:maven-compiler-plug

[ERROR] Failed to execute goal org.apache.maven.plugins:maven-compiler-plugin:3.8.1:compile (default-compile) on project orderapp: Fatal error compiling: CompilerException: NullPointerException -> [Help 1]

解决办法:
添加Maven依赖

<dependency>
    <groupId>javax.annotationgroupId>
    <artifactId>javax.annotation-apiartifactId>
    <version>1.3.2version>
    <scope>providedscope>
dependency>

你可能感兴趣的:(Java)