Lombok uses javaagent only for Eclipse.
You can delete "compilerArgument" parameters from pom.xml of the sample project and maven-compiler-plugin will still execute successfully.

To process annotations while building with javac/maven-compiler-plugin lombok uses class lombok.core.AnnotationProcessor, which implements javax.annotation.processing.Processor (jsr 269).
A side note: you can configure annotation processors in maven-compiler-plugin with annotationProcessors parameter - http://maven.apache.org/plugins/maven-compiler-plugin/compile-mojo.html#annotationProcessors

It does not work in aspectj-maven-plugin due to a bug in ajc:
https://bugs.eclipse.org/bugs/show_bug.cgi?id=252199

To use lombok with aspectj you should pre-process your sources with delombok goal of lombok-maven-plugin
http://awhitford.github.io/lombok.maven/lombok-maven-plugin/usage.html

In my opinion, this task should be closed as invalid because ajc does not have an option to set javaagent (we would need to fork to set it ourselves). One can set javaagent globally with MAVEN_OPTS if it is really needed.

This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira
--------------------------------------------------------------------- To unsubscribe from this list, please visit: http://xircles.codehaus.org/manage_email

Reply via email to