jackrabbit-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Jukka Zitting <jukka.zitt...@gmail.com>
Subject Build failures because of "Too many unapproved licenses"
Date Wed, 01 Jul 2009 13:06:27 GMT
Hi,

If you're seeing a build failure with a "Too many unapproved licenses"
error message, then you're hitting the RAT license header checks that
I recently enabled for all builds.

There are two potential causes for this error:

a) You've added new files without the correct license headers. Add the
license headers if appropriate, or add a RAT exclude rule for the
files.

b) There are some extra uncommitted files (log files, IDE project
files, patches, etc.) in your checkout that RAT is incorrectly looking
at. Move the files outside the checkout or inside the ./target
directory, or add a RAT exclude rule for them.

The RAT exclude rules are specified in the POM under the
apache-rat-plugin configuration entry. See below for an example from
jackrabbit-core:

      <plugin>
        <groupId>org.apache.rat</groupId>
        <artifactId>apache-rat-plugin</artifactId>
        <configuration>
          <excludes>
            <exclude>src/main/javadoc/**/*.uxf</exclude>
            <exclude>src/test/repository/**</exclude>
            <exclude>src/test/resources/**/*.txt</exclude>
            <exclude>src/test/resources/**/*.cnd</exclude>
            <exclude>repository/**</exclude>
            <exclude>*.log</exclude>
          </excludes>
        </configuration>
      </plugin>

BR,

Jukka Zitting

Mime
View raw message