Uploaded image for project: 'Apache NiFi'
  1. Apache NiFi
  2. NIFI-659

rat-plugin needs to be configured to exclude child and parent items

    XMLWordPrintableJSON

Details

    • Task
    • Status: Resolved
    • Major
    • Resolution: Fixed
    • None
    • 0.2.0
    • Tools and Build
    • None

    Description

      Presently when doing the proper -Pcontrib-check on patches and such we can run into issues with modules that implement their own excludes above and beyond what the nifi-parent excludes. This is due to how the configuration override/merge/append mechanism works in Maven 3. What we really want it to do is 'append' to the child's list whatever was in the parents list. So for example:

                  <plugin>
                      <groupId>org.apache.rat</groupId>
                      <artifactId>apache-rat-plugin</artifactId>
                      <configuration>
                          <excludes>
                              <exclude>src/test/resources/conf/0bytes.xml</exclude>
                              <exclude>src/test/resources/conf/termination-only.xml</exclude>
                              <exclude>src/test/resources/hello.txt</exclude>
                              <exclude>src/test/resources/old-swap-file.swap</exclude>
                          </excludes>
                      </configuration>
                  </plugin>
      

      would work as we really want it to if it were

                  <plugin>
                      <groupId>org.apache.rat</groupId>
                      <artifactId>apache-rat-plugin</artifactId>
                      <configuration>
                          <excludes combine.children="append">
                              <exclude>src/test/resources/conf/0bytes.xml</exclude>
                              <exclude>src/test/resources/conf/termination-only.xml</exclude>
                              <exclude>src/test/resources/hello.txt</exclude>
                              <exclude>src/test/resources/old-swap-file.swap</exclude>
                          </excludes>
                      </configuration>
                  </plugin>
      

      Attachments

        1. NIFI-659.patch
          9 kB
          Joe Witt

        Activity

          People

            joewitt Joe Witt
            joewitt Joe Witt
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: