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

Philipp Ottlinger commented on RAT-515:
---------------------------------------

Not sure if your issue has to do with 
https://issues.apache.org/jira/browse/RAT-476 as specified in the 
knownIssues-section of the homepage:
https://creadur.apache.org/rat/apache-rat/known_issues.html

> Maven plugin processes .gitignore incorrectly causing false positives
> ---------------------------------------------------------------------
>
>                 Key: RAT-515
>                 URL: https://issues.apache.org/jira/browse/RAT-515
>             Project: Apache Creadur RAT
>          Issue Type: Bug
>          Components: Client - maven
>    Affects Versions: 0.17
>            Reporter: Gary D. Gregory
>            Priority: Major
>
> The Maven plugin processes .gitignore incorrectly causing false positives.
> For example:
> {noformat}
> git clone [https://github.com/apache/commons-bsf.git]
> cd commons-bsf
> mvn -Dcommons.rat.version=0.17
> {noformat}
> Gives me:
> {noformat}
> [ERROR] Unexpected count for UNAPPROVED, limit is [0,0].  Count: 34
> [INFO] UNAPPROVED (Unapproved) is a count of unapproved licenses.
> [WARNING] *****************************************************
> Generated at: 2025-10-31T12:56:53-04:00
> Files with unapproved licenses:
>   /cachedir/packages/commons-jexl-1.1.pkc
>   /cachedir/packages/commons-jexl3-3.5.0.pkc
>   /cachedir/packages/commons-lang3-3.17.0.pkc
>   /cachedir/packages/commons-lang3-3.18.0.pkc
>   /cachedir/packages/commons-lang3-3.19.0.pkc
>   /cachedir/packages/hamcrest-core-1.3.pkc
>   /cachedir/packages/jacl-1.2.6.pkc
>   /cachedir/packages/js-1.7R2.pkc
>   /cachedir/packages/junit-jupiter-api-5.11.2.pkc
>   /cachedir/packages/junit-jupiter-api-5.11.4.pkc
>   /cachedir/packages/junit-jupiter-api-5.12.2.pkc
>   /cachedir/packages/junit-jupiter-api-5.13.1.pkc
>   /cachedir/packages/junit-jupiter-api-5.13.4.pkc
>   /cachedir/packages/junit-jupiter-engine-5.11.2.pkc
>   /cachedir/packages/junit-jupiter-engine-5.11.4.pkc
>   /cachedir/packages/junit-jupiter-engine-5.12.2.pkc
>   /cachedir/packages/junit-jupiter-engine-5.13.1.pkc
>   /cachedir/packages/junit-jupiter-engine-5.13.4.pkc
>   /cachedir/packages/junit-jupiter-params-5.11.2.pkc
>   /cachedir/packages/junit-jupiter-params-5.11.4.pkc
>   /cachedir/packages/junit-jupiter-params-5.12.2.pkc
>   /cachedir/packages/junit-jupiter-params-5.13.1.pkc
>   /cachedir/packages/junit-jupiter-params-5.13.4.pkc
>   /cachedir/packages/junit-platform-commons-1.12.2.pkc
>   /cachedir/packages/junit-platform-commons-1.13.1.pkc
>   /cachedir/packages/junit-platform-commons-1.13.4.pkc
>   /cachedir/packages/junit-platform-engine-1.11.2.pkc
>   /cachedir/packages/junit-platform-engine-1.11.4.pkc
>   /cachedir/packages/junit-platform-engine-1.12.2.pkc
>   /cachedir/packages/junit-platform-engine-1.13.1.pkc
>   /cachedir/packages/junit-platform-engine-1.13.4.pkc
>   /cachedir/packages/jython-2.1.pkc
>   /cachedir/packages/tcljava-1.2.6.pkc
>   /cachedir/packages/xalan-2.7.3.pkc
> [INFO] 
> ------------------------------------------------------------------------
> [INFO] BUILD FAILURE
> [INFO] 
> ------------------------------------------------------------------------
> {noformat}
> While {{.gitignore}} contains:
> {noformat}
> /target/
> /.settings/
> /.classpath
> /.project
> /bsf.iml
> /cachedir/
> {noformat}
> Specififcally, specifying:
> {noformat}
> /cachedir/
> {noformat}
> Is enough for git, so it should be enough for RAT, as opposed to 
> overspecifying the entry as "/cachedir/**".



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

Reply via email to