-1

I am facing this issue while compiling the code.

Exception in thread "main" java.lang.AssertionError
jdk.compiler/com.sun.tools.javac.processing.JavacProcessingEnvironment$ImplicitCompleter.complete(JavacProcessingEnvironment.java:1521)
muasif80
  • 5,586
  • 4
  • 32
  • 45
  • Does this answer your question? [Maven compilation issue with Java 9](https://stackoverflow.com/questions/46878649/maven-compilation-issue-with-java-9) – Joe Jun 15 '20 at 12:11
  • Are you using the most recent version of the maven-compiler-plugin? – khmarbaise Jun 18 '20 at 06:30

1 Answers1

0

This looks like MCOMPILER-346 ("JDK10: Compiler plugin trips AssertionError inside javac when using javax.tools API"):

Compilation fails with a crash inside javac unless the maven-compiler-plugin is configured with

<forceJavacCompilerUse>true</forceJavacCompilerUse>

As of June 2020, the bug's not fixed. Try the workaround suggested.

Joe
  • 29,416
  • 12
  • 68
  • 88