且构网

分享程序员开发的那些事...
且构网 - 分享程序员编程开发的那些事

Java 11:目标org.apache.maven.plugins:maven-compiler-plugin:3.8.0的执行默认编译:编译失败.:NullPointerException

更新时间:2022-06-01 22:40:42

这是Maven-Compiler-Plugin

看看以下问题:
https://issues.apache.org/jira/browse/MCOMPILER-355
https://issues.apache.org/jira/browse/MCOMPILER-359

Have a look at below issues:
https://issues.apache.org/jira/browse/MCOMPILER-355
https://issues.apache.org/jira/browse/MCOMPILER-359

具体在行号CompilerMojo.java:244

Caused by: java.lang.NullPointerException
 at org.apache.maven.plugin.compiler.CompilerMojo.preparePaths (CompilerMojo.java:244)

MCOMPILER-355已在版本 3.8.1 中修复.

MCOMPILER-359修复程序将成为下一个发布的 https://github的一部分. com/apache/maven-compiler-plugin/pull/28/files

MCOMPILER-355 is fixed in version 3.8.1.

MCOMPILER-359 fix will be part of next released https://github.com/apache/maven-compiler-plugin/pull/28/files

您应该尝试将Maven-Compiler-Plugin的版本更新为 3.8.1 .

You should try updating the version of Maven-Compiler-Plugin to 3.8.1.