[ https://issues.apache.org/jira/browse/RAT-246?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16358346#comment-16358346 ]
Philipp Ottlinger commented on RAT-246: --------------------------------------- {code} 13:48 $ mvn --version Apache Maven 3.5.2 (138edd61fd100ec658bfa2d307c43b76940a5d7d; 2017-10-18T09:58:13+02:00) Maven home: /usr/local/Cellar/maven/3.5.2/libexec Java version: 1.8.0_141, vendor: Oracle Corporation Java home: /Library/Java/JavaVirtualMachines/jdk1.8.0_141.jdk/Contents/Home/jre Default locale: de_DE, platform encoding: UTF-8 OS name: "mac os x", version: "10.13.2", arch: "x86_64", family: "mac" ✔ /tmp/maven-wagon [master|✔] 13:48 $ {code} Running in above configuration gives no build problems on branch master. Where does the problem happen?! Can you create a branch that shows the behaviour. > .gitignore in parent dir not honored > ------------------------------------ > > Key: RAT-246 > URL: https://issues.apache.org/jira/browse/RAT-246 > Project: Apache Rat > Issue Type: Bug > Affects Versions: 0.12, 0.13 > Reporter: Ilya Basin > Priority: Minor > > Due to my Eclipse plugins set, when I import a maven project, a .checkstyle > file is generated there. As I learned later, RAT 0.13-SNAPSHOT ignores > .checkstyle files, so I repeated my tests with a different filename. > If a pattern is explicitly mentioned in the .gitignore in the project folder, > RAT does not complain. However, if the pattern is only mentioned in a parent > .gitignore, the RAT check fails. > {code:java} > [il@reallin wagon-scm]$ touch .someignoredfile > [il@reallin wagon-scm]$ echo .someignoredfile >>../../.gitignore > [il@reallin wagon-scm]$ git add .someignoredfile > The following paths are ignored by one of your .gitignore files: > wagon-providers/wagon-scm/.someignoredfile > Use -f if you really want to add them. > fatal: no files added > [il@reallin wagon-scm]$ mvn apache-rat:check > [ERROR] Failed to execute goal org.apache.rat:apache-rat-plugin:0.12:check > (default-cli) on project wagon-scm: Too many files with unapproved license: 1 > See RAT report in: target/rat.txt -> [Help 1] > [il@reallin wagon-scm]$ cat target/rat.txt > Files with unapproved licenses: > .someignoredfile > [il@reallin wagon-scm]$ echo .someignoredfile >>.gitignore > [il@reallin wagon-scm]$ mvn apache-rat:check > [INFO] BUILD SUCCESS > {code} -- This message was sent by Atlassian JIRA (v7.6.3#76005)