I am facing really weird issue with Lombok and Jackson. Following of piece of code on which I am working.
@Getter
@Setter
@NoArgsConstructor
@XmlRootElement
public class Order{
//@JsonIgnore
@Getter(onMethod = @__(@JsonIgnore))
private boolean userPresent;
}
So what I want , this dto supposed to serialized as Json then this userPresent attribute should not come as response attribute. I though @JsonIgnore will work for me. But I think it as some issue with Lombok as per https://stackoverflow.com/a/57119494/2111677 article. Then I changed the approach to use OnMethod.
Now , on eclipse compiling perfectly fine but when I am trying to compile using mvn then it gives me following error.
Could someone help me fix when its not working with maven.
