[ 
https://issues.apache.org/jira/browse/SLING-11530?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17578549#comment-17578549
 ] 

Konrad Windszus commented on SLING-11530:
-----------------------------------------

Using a hidden folder name (starting with ".") should be pretty safe, as this 
folder is excluded from being checked since ages: 
https://github.com/apache/sling-parent/blob/b5cc31e53b9a33c1ba43da27fb07628d9849b206/sling-parent/pom.xml#L235

> Jenkins Maven Repository Deployment due to violating rat checks in 
> multimodule build
> ------------------------------------------------------------------------------------
>
>                 Key: SLING-11530
>                 URL: https://issues.apache.org/jira/browse/SLING-11530
>             Project: Sling
>          Issue Type: Bug
>          Components: CI
>            Reporter: Konrad Windszus
>            Assignee: Konrad Windszus
>            Priority: Major
>
> Even after the fixes of SLING-11401 the following error can still be 
> experienced for multi-module builds:
> {code}
> [INFO] --- apache-rat-plugin:0.14:check (rat-check) @ 
> sling-maven-plugin.reactor ---
> [...
> [WARNING] Files with unapproved licenses:
>   local-snapshots-dir/org/apache/sling/maven-metadata.xml.sha1
>   local-snapshots-dir/org/apache/sling/maven-metadata.xml
>   local-snapshots-dir/org/apache/sling/maven-metadata.xml.md5
> ...
> [INFO] BUILD FAILURE
> [INFO] 
> ------------------------------------------------------------------------
> [INFO] Total time:  01:53 min
> [INFO] Finished at: 2022-08-11T15:53:48Z
> [INFO] 
> ------------------------------------------------------------------------
> [INFO] [jenkins-event-spy] Generated 
> /home/jenkins/jenkins-agent/workspace/odules_sling-maven-plugin_master/jdk_1.8_latest@tmp/withMavene7346aae/maven-spy-20220811-155155-4511382858674172539989.log
> [ERROR] Failed to execute goal org.apache.rat:apache-rat-plugin:0.14:check 
> (rat-check) on project sling-maven-plugin.reactor: Too many files with 
> unapproved license: 33 See RAT report in: 
> /home/jenkins/jenkins-agent/workspace/odules_sling-maven-plugin_master/jdk_1.8_latest/target/rat.txt
>  -> [Help 1]
> {code}
> (e.g. in 
> https://ci-builds.apache.org/job/Sling/job/modules/job/sling-maven-plugin/job/master/119/console).
> The reason is that the files to be deployed are staged from other modules in 
> the reactor root directory first, and only afterwards the RAT check is being 
> performed.
> As we cannot use the target file for the staged artifacts either (as being 
> cleaned after being populated) we need to rely on a directory which is 
> excluded by default from RAT checks.



--
This message was sent by Atlassian Jira
(v8.20.10#820010)

Reply via email to