“IntelliJ Idea mapstruct java: Internal error in the mapping processor: java.lang.NullPointerException” is an error I have encountered severally when using Intelli J IDEA to run my Spring applications. Please find below steps to resolve the issue.
The solution is to add -Djps.track.ap.dependencies=false
at File | Settings | Build, Execution, Deployment | Compiler | Build process VM options as a workaround.
The alternative is to update Mapstruct, and if you have swagger in your pom file, you will need to exclude mapstruct first.
1 2 3 4 5 6 7 8 9 10 11 |
<dependency> <groupId>io.springfox</groupId> <artifactId>springfox-swagger2</artifactId> <version>${swagger2.version}</version> <exclusions> <exclusion> <groupId>org.mapstruct</groupId> <artifactId>mapstruct</artifactId> </exclusion> </exclusions> |
Leave a Comment