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

Claude Warren commented on RAT-526:
-----------------------------------

It seems the new maven-resources-plugin does not copy hidden (dot prefixed) 
files.  The GitIgnoreBuilderTest is looking for the .gitignore file and it is 
not copied so all the entries from it are not found, thus the test fails.

Looks like we need to add 
[{{<addDefaultExcludes>}}|https://maven.apache.org/plugins/maven-resources-plugin/testResources-mojo.html#addDefaultExcludes]false</addDefaultExcludes>
 

> Unable to update maven-resources-plugin from 3.3.1 to 3.4.0 - all tests fail
> ----------------------------------------------------------------------------
>
>                 Key: RAT-526
>                 URL: https://issues.apache.org/jira/browse/RAT-526
>             Project: Apache RAT
>          Issue Type: Bug
>    Affects Versions: 0.17
>            Reporter: Philipp Ottlinger
>            Priority: Major
>
> https://github.com/apache/creadur-rat/pull/589
> introduced an update of the maven-resources-plugin that resulted in a failure 
> of all tests.
> The release notes of the plugin do not seem to indicate that something basic 
> was changed, but all tests fail:
> {noformat}
> [ERROR] Failures:
> [ERROR]   ReportTest.integrationTest:148 RAT_335:
> Expecting empty but was: ["/.gitignore",
>     "/root.md",
>     "/dir3/dir3.log",
>     "/dir1/.gitignore",
>     "/dir1/dir1.txt",
>     "/dir2/dir2.md"]
> [ERROR]   ReportTest.integrationTest:148 RAT_362:
> Expecting empty but was: ["/.gitignore", "/foo.md", "/src.md"]
> [ERROR]   GitIgnoreBuilderTest.test_RAT_335:137
> expected: "matcherSet(or('included dir1/.gitignore', 'included .gitignore'), 
> or('excluded dir1/.gitignore', **/.gitignore, 'excluded .gitignore'))"
>  but was: "not(**/.gitignore)"
> [ERROR]   GitIgnoreBuilderTest.test_global_gitignore:175
> expected: "matcherSet(or('included dir1/.gitignore', 'included .gitignore', 
> 'included global gitignore'), or('excluded dir1/.gitignore', **/.gitignore, 
> 'excluded .gitignore', 'excluded global gitignore'))"
>  but was: "not(**/.gitignore)" 
> {noformat}



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

Reply via email to