Hello All,
I have a project that uses maven in eclipse (Kepler with maven 3.0.4) that is also using project Lombok. Everything plays together nicely and inside of the IDE the code builds fine, maven updates all the dependencies just peachily, and all is tranquillo. However, when I try to build from the command line with maven (3.0.5) I receive errors about being unable to resolve Lombok symbols (e.g. error: cannot find symbol errors on line with Lombok log statements) Prior to using Lombok, I could use maven from the command line without an issue.
From the Lombok documentation, it seems like maven should Just Work(TM) without having to do anything special. Being that is seems like there is some problem with annotation processing, I tried to force maven to use the Lombok.core.AnnotationProcessor in the maven-compiler-plugin <configuration>
<annotationProcessors>
<annotationProcessor>lombok.core.AnnotationProcessorr</annotationProcessor>
</annotationProcessors>
However maven says it can't find this class. Is there some setting or parameter to get maven to build with the Lombok annotations? I have looked at the delombok tool, but I don't really care about seeing the generated sources -- I just need the annotations applied at compile time, and my interpretation of the docs is that lombok'd code should be able to compile from maven without issues.
I do have some strong caveats:
1) I am trying to compile under the java 8 early access jdk (jdk1.8.0 b102 and b104) so not sure if that is screwing up the maven annotation discovery process.
2) I am fairly new to maven so might be overlooking something pretty obvious.
Any insight appreciated. TIA.
- chooks