[
https://issues.apache.org/jira/browse/NIFI-13785?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
Lehel Boér resolved NIFI-13785.
-------------------------------
Resolution: Not A Problem
The issue cannot be reproduced, successfully compile the dist and the github
version as well.
> Improve RAT plugin configuration on NiFi-API to exclude binaries from license
> checks
> ------------------------------------------------------------------------------------
>
> Key: NIFI-13785
> URL: https://issues.apache.org/jira/browse/NIFI-13785
> Project: Apache NiFi
> Issue Type: Improvement
> Reporter: Lehel Boér
> Assignee: Lehel Boér
> Priority: Minor
>
> Currently, the Apache RAT plugin is running on binary files during the
> project build, which is not necessary and causes the build to fail due to the
> lack of license headers in those files. Binaries such as {{{}.jar{}}},
> {{{}.class{}}}, and {{.sha1}} files should not be subject to RAT checks since
> they do not contain or require license headers.
> The configuration includes:
> {code:java}
> <useIdeaDefaultExcludes>true</useIdeaDefaultExcludes>{code}
> This setting makes the plugin to use IntelliJ IDEA’s default excludes, but it
> only applies to project-specific files like {{{}*.iml*{}}}{*}, {{{}.ipr{}}},
> {{.iws}}{*}, and the *{{.idea}}* directory. However, this does not exclude
> binaries, resulting in false positives when RAT scans binary files such as:
> * {{.jar}} files
> * {{.class}} files
> * {{.sha1}} and {{.md5}} checksums
> * metadata files like {{_remote.repositories}}
> To improve the build process and avoid unnecessary failures, we should
> enhance the configuration by explicitly excluding binaries and other
> non-source files from the RAT checks.
>
> *Proposed solution:*
> Update the RAT plugin configuration with an exclude snippet similar to this.
> {code:java}
> <excludes>
> <exclude>**/*.jar</exclude>
> <exclude>**/*.class/exclude>
> <exclude>**/*.sha1</exclude>
> <exclude>**/*.md5</exclude>
> <exclude>**/_remote.repositories</exclude>
> </excludes>{code}
--
This message was sent by Atlassian Jira
(v8.20.10#820010)