I have modified the execution phase and run `mvn clean compile`, then forbidden apis check works fine, but I got this build error: ``` [INFO] Scanning for classes to check... [INFO] Reading bundled API signatures: jdk-unsafe-1.8 [INFO] Reading bundled API signatures: jdk-system-out [INFO] Reading API signatures: /Users/qmm/work/github/incubator-druid/codestyle/joda-time-forbidden-apis.txt [INFO] Reading API signatures: /Users/qmm/work/github/incubator-druid/codestyle/druid-forbidden-apis.txt [INFO] Loading classes to check... [INFO] Scanning classes for violations... [ERROR] Forbidden field access: java.lang.System#out [prints to System.out; should only be used for debugging, not in production code] [ERROR] in org.apache.druid.cli.PullDependencies (PullDependencies.java:467) [ERROR] Forbidden field access: java.lang.System#out [prints to System.out; should only be used for debugging, not in production code] [ERROR] in org.apache.druid.cli.validate.DruidJsonValidator (DruidJsonValidator.java:75) [ERROR] Forbidden field access: java.lang.System#out [prints to System.out; should only be used for debugging, not in production code] [ERROR] in org.apache.druid.cli.Main (Main.java:119) [ERROR] Forbidden field access: java.lang.System#out [prints to System.out; should only be used for debugging, not in production code] [ERROR] in org.apache.druid.cli.Main (Main.java:120) [ERROR] Forbidden field access: java.lang.System#out [prints to System.out; should only be used for debugging, not in production code] [ERROR] in org.apache.druid.cli.Main (Main.java:121) [ERROR] Forbidden field access: java.lang.System#out [prints to System.out; should only be used for debugging, not in production code] [ERROR] in org.apache.druid.cli.DumpSegment (DumpSegment.java:423) [ERROR] Forbidden field access: java.lang.System#out [prints to System.out; should only be used for debugging, not in production code] [ERROR] in org.apache.druid.cli.Version (Version.java:36) [ERROR] Scanned 74 (and 588 related) class file(s) for forbidden API invocations (in 0.34s), 7 error(s). ```
There are some classes have to use `java.lang.System#out`, so I excluded these classes from forbidden apis check. [ Full content available at: https://github.com/apache/incubator-druid/pull/6371 ] This message was relayed via gitbox.apache.org for [email protected]
