@leventov If there are compiled classes, forbidden-apis checks will work. 
That's the only reason. We can see in the CI `strict compilation`, the maven 
build command is `mvn clean -Pstrict -pl '!benchmarks' compile test-compile -B 
--fail-at-end`, `test-compile` is run after `compile`. So when maven run 
`test-compile` there are compiled classes for the forbidden-apis check plugin 
to work. And it just checks the source code classes not include test code 
classes because the test code classes have not been generated(before this pr, 
the `testCheck` Mojo runs in the `validate` phase, if change to `test-compile` 
phase, test code classes would also be checked). 

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

Reply via email to