


If the problem persist, just try to re-install lombok jar into your IDE (if you are using eclipse), and restart.Currently, I am working on a small 3D renderer. I recommend you build the project without IDE using mvn install on prompt. I am going to close this issue as it is a problem in the configuration 😄 You can also have a look at the mapstruct-lombok example from our repository. An additional reason to put it in the pom dependencies is this issue from IntelliJ (in case you are using InteliiJ 😄 The reason why we are suggesting to use the annotationProcessorPaths is because by doing that you won't be able to use something from the mapstruct-processor module by accident. You will have to remove the annotationProcessorPaths in that case and the compiler will pick up the processors from your dependency.

Then it will be picked up by the compiler and it should work.Īd the mapstruct-processor jar to your pom as a provided dependency. In any case in order to make it work correctly you have 2 options:Īdd the lombok dependency to the annotationProcessorPaths as well. The annotationProcessorPaths is there only since 3.5 so it is really strange how the mapstruct processor is invoked. The problem is that you have only mapstruct-processor in the annotationProcessorPaths and only that dependency is passed to the javac compiler. I will leave the issue open in case this is a bug - it is possible that I have missed this requirement in some documentation. For more information about the errors and possible solutions, please read the following articles: Re-run Maven using the -X switch to enable full debug logging. To see the full stack trace of the errors, re-run Maven with the -e switch. Failed to execute goal :maven-compiler-plugin:3.6.1:compile (default-compile) on project lombok-mapstruct-spring: Compilation failure C:/Users/agh/Desktop/tmp/lombok-mapstruct-spring/src/main/java/MyLombokAnnotatedClass.java: cannot find symbol Compiling 3 source files to C:\Users\agh\Desktop\tmp\lombok-mapstruct-spring\target\classes Changes detected - recompiling the module!

maven-compiler-plugin:3.6.1:compile (default-compile) lombok-mapstruct-spring. Using 'UTF-8' encoding to copy filtered resources. maven-resources-plugin:2.6:resources (default-resources) lombok-mapstruct-spring. Deleting C:\Users\agh\Desktop\tmp\lombok-mapstruct-spring\target maven-clean-plugin:2.6.1:clean (default-clean) lombok-mapstruct-spring. Building lombok-mapstruct-spring 0.0.1-SNAPSHOT
