You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@nifi.apache.org by "Paul Grey (Jira)" <ji...@apache.org> on 2022/01/20 23:45:00 UTC

[jira] [Commented] (NIFI-9517) "Too many files with unapproved license" occurs when running mvn install

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

Paul Grey commented on NIFI-9517:
---------------------------------

Hi [~sunyd1224].  Just noticed this ticket today.

From time to time, modules are moved in the project to better organize it.  I think this might be the explanation for your problem.  I usually don't run "contrib-check" on my development machine, but I tried it today, and ran into the same issue.  

https://stackoverflow.com/questions/1499157/git-checkout-pull-doesnt-remove-directories

I found this resource that explains how files can be left behind on your filesystem when they are removed from the git repository.  Can you try the command in the accepted solution, and see if it helps?  (I needed the `-x` switch as well.)

https://github.com/sunyd1224/nifi/actions/runs/1618089119

The automation that runs on your github fork includes the `contrib-check` switch, so that also works to meet the guideline.
 

> "Too many files with unapproved license" occurs when running mvn install
> ------------------------------------------------------------------------
>
>                 Key: NIFI-9517
>                 URL: https://issues.apache.org/jira/browse/NIFI-9517
>             Project: Apache NiFi
>          Issue Type: Improvement
>          Components: Tools and Build
>    Affects Versions: 1.16.0
>         Environment: os: windows 10
> java version: 1.8.0_311
> maven version: 3.8.4
>            Reporter: sunyd1224
>            Priority: Major
>         Attachments: .plxarc, createdFiles.lst, inputFiles.lst, pom.properties, rat.txt
>
>
> I ran  the flowing command to execute the full suite of tests at the root nifi folder:
> {code:java}
> mvn -Pcontrib-check clean install {code}
> There was a built failure occurs with the following error message:
> {code:java}
> [INFO] ------------------------------------------------------------------------
> [INFO] BUILD FAILURE
> [INFO] ------------------------------------------------------------------------
> [INFO] Total time:  05:41 min
> [INFO] Finished at: 2021-12-24T16:20:24+08:00
> [INFO] ------------------------------------------------------------------------
> [ERROR] Failed to execute goal org.apache.rat:apache-rat-plugin:0.13:check (default) on project nifi-framework: Too many files with unapproved license: 4 See RAT report in: D:\workspace\nifi_github\nifi-nar-bundles\nifi-framework-bundle\nifi-framework\target\rat.txt -> [Help 1] {code}
> When I ran "{_}mvn clean install{_}" ,this kind of error disappeard.
> As the "{_}mvn -Pcontrib-check clean install{_}" is required to run when create a pr and I could not solve this problem so far, I create this issue to ask for help here. The related file are in the attachment.
> Tks.



--
This message was sent by Atlassian Jira
(v8.20.1#820001)