picocli: IntelliJ IDEA fails to compile project w/ annotation processor

The IDE’s compiler says:

Error:java: Bad service configuration file, or exception thrown while constructing Processor object: javax.annotation.processing.Processor: picocli.codegen.aot.graalvm.processor.NativeImageConfigGeneratorProcessor Unable to get public no-arg constructor

This can be worked around by disabling annotation processing in the IDE, but that setting then switches itself back on when the project’s pom.xml is updated.

To reproduce, create a Maven project with maven-compiler-plugin configured with the Picocli annotation processor.

About this issue

  • Original URL
  • State: closed
  • Created 5 years ago
  • Comments: 19 (18 by maintainers)

Commits related to this issue

Most upvoted comments

Upgraded to 4.0.2, didn’t help. 😦 Filed a bug with Jetbrains: https://youtrack.jetbrains.net/issue/IDEA-220545

I was able to successfully build the project in IntelliJ IDEA 2019.1.1. The problem does not manifest with that version.

After upgrading to IntelliJ IDEA 2019.2, I also see the error:

Error:java: Bad service configuration file, or exception thrown while constructing Processor object: javax.annotation.processing.Processor: picocli.codegen.aot.graalvm.processor.NativeImageConfigGeneratorProcessor Unable to get public no-arg constructor

Investigating…