I am attempting to generate JavaDoc for a project that leverage lombok and having problems for a situation where I am annotations on the generated setters and getters.
Code:
public class Car {
@Getter(onMethod = @__(@Sensitive))
@Setter(onMethod = @__(@Sensitive))
@Sensitive
@ToString.Exclude
@Transient
protected transient String instanceKeyId;
And, I am running:
mvn javadoc:attach-javadocs
When I do that, I get this error:
[ERROR] Exit code: 1 - Car.java:26: error: cannot find symbol
[ERROR] @Getter(onMethod = @__(@Sensitive))
I am on Java 11 - my projects do build and run. I have the latest version of the javadoc plugin, am I missing something else here?
It sounds like I need to heed the advice here 1 and setup delombok and then do javadoc on that which seems a bit extraneous. Is that the required workflow here, or is there another way to do this?