The `forbiddenapis` plugin works on compiled classes. Currently, the Mojo runs 
in the `validate` lifecycle phase, there may be no classes for it to check 
forbidden apis if we have cleared all classes. To make it work, we have to run 
a compile command first, then the maven command may like this `mvn clean 
compile compile` which is not elegant. So modify the execution phase to 
`compile` may better.
I'll open a PR to do this.

[ Full content available at: 
https://github.com/apache/incubator-druid/issues/6355 ]
This message was relayed via gitbox.apache.org for [email protected]

Reply via email to