I am using IntelliJ 13.0.2 on OSX 10.9.5 using java 1.8. I get this error when trying to run unit test inside IntelliJ. When I run compilation or verification through maven on the command line, it works fine.
I went to File-> Other Settings-> Default Settings-> Compiler-> Annotation Processors and unchecked Enable annotation processing. I also tried it with Enable annotation processing and left selected by default.
We run tests with
@RunWith(MockitoJUnitRunner.class)
and the annotation processor that he cannot find is org.mapstruct.ap.MappingProcessor. I don’t know where it comes from, it’s not in our import. Maybe addiction to Mockito?
source share