After upgrading to the version 2020.3 of Idea i get a NullPointerException for the mapping processor. If anybody has a clue... Thank you!
IntelliJ IDEA If so, open the preferences window, navigate to Compiler -> Annotation processor and untick checkbox “Enable annotation processing” at “Annotation profile for mapstruct-integrationtest”. You should now be able to rebuild MapStruct.
Settings -> Build, Execution, Deployment -> Build Tools -> Reload project after changes in the build scripts: From "External Changes" to "Any Changes"
The solution is to update MapStruct to 1.4.1.Final or later version, see this issue for more details.
You can also add -Djps.track.ap.dependencies=false
at File | Settings (Preferences on macOS) | Build, Execution, Deployment | Compiler | Build process VM options as a workaround.
If you cannot update MapStruct (my case), details here.
You have to find the exact place where put the -Djps.track.ap.dependencies=false
setting (and I had hard time to figure out where).
So, as they say, a picture is worth a thousand words:
Preferences --> Build, Execution, Deployment --> Compiler
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With