I have a trivial Maven project:
src
└── main
└── java
└── module-info.java
pom.xml
pom.xml:
org.
Alright so for me nothing worked.
I was using spring boot with hibernate. The spring boot version was ~2.0.1 and I would keep get this error and null pointer exception upon compilation. The issue was with hibernate that needed a version bump. But after that I had some other issues that seemed like the annotation processor was not recognised so I decided to just bump spring from 2.0.1 to 2.1.7-release and everything worked as expected.
You still need to add the above plugin tough
Hope it helps!