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

Alejandro Abdelnur commented on YARN-334:
-----------------------------------------

We used to have similar issues in Oozie, we sorted this out by having the root 
POM do all the RAT reporting and all the children POM to do nothing.

In the root POM:

{code}
            <plugin>
                <groupId>org.apache.rat</groupId>
                <artifactId>apache-rat-plugin</artifactId>
                <configuration>
                    <excludeSubProjects>false</excludeSubProjects>
                    <excludes>
                        <exclude>.gitignore</exclude>
                        <exclude>**/*iml</exclude>
                        <exclude>**/target/**</exclude>
                        <exclude>**/build/**</exclude>
                        <!-- you may need to add some files deep in modules -->
                    </excludes>
                </configuration>
            </plugin>
{code}

And in all the other POMs:

{code}
            <plugin>
                 <groupId>org.apache.rat</groupId>
                 <artifactId>apache-rat-plugin</artifactId>
                 <configuration>
                     <excludeSubProjects>false</excludeSubProjects>
                     <excludes>
                         <!-- excluding all as the root POM does the full 
check-->
                         <exclude>**</exclude>
                     </excludes>
                 </configuration>
             </plugin>
{code}
                
> Maven RAT plugin is not checking all source files
> -------------------------------------------------
>
>                 Key: YARN-334
>                 URL: https://issues.apache.org/jira/browse/YARN-334
>             Project: Hadoop YARN
>          Issue Type: Bug
>    Affects Versions: 2.0.3-alpha, 0.23.5
>            Reporter: Thomas Graves
>            Assignee: Thomas Graves
>            Priority: Critical
>
> yarn side of HADOOP-9097
> Running 'mvn apache-rat:check' passes, but running RAT by hand (by 
> downloading the JAR) produces some warnings for Java files, amongst others.

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira

Reply via email to