druid icon indicating copy to clipboard operation
druid copied to clipboard

It seems the forbidden apis check do not work

Open QiuMM opened this issue 8 years ago • 1 comments

The build log:

Classes directory does not exist, forbidden apis check skipped

QiuMM avatar Sep 20 '18 17:09 QiuMM

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.

QiuMM avatar Sep 23 '18 19:09 QiuMM