SLIDER-874 rat-check should define exclusions using pluginManagement
Project: http://git-wip-us.apache.org/repos/asf/incubator-slider/repo Commit: http://git-wip-us.apache.org/repos/asf/incubator-slider/commit/fff0e280 Tree: http://git-wip-us.apache.org/repos/asf/incubator-slider/tree/fff0e280 Diff: http://git-wip-us.apache.org/repos/asf/incubator-slider/diff/fff0e280 Branch: refs/heads/feature/SLIDER-1107_AM_config_generation Commit: fff0e2805f628669963544e571bd9693a8304537 Parents: 55193be Author: Josh Elser <els...@apache.org> Authored: Thu Jun 16 23:23:21 2016 -0400 Committer: Josh Elser <els...@apache.org> Committed: Thu Jun 16 23:23:21 2016 -0400 ---------------------------------------------------------------------- app-packages/accumulo/pom.xml | 20 +++++++++++ app-packages/pom.xml | 46 +++++++++++++------------ pom.xml | 70 ++++++++++++++++++++------------------ 3 files changed, 80 insertions(+), 56 deletions(-) ---------------------------------------------------------------------- http://git-wip-us.apache.org/repos/asf/incubator-slider/blob/fff0e280/app-packages/accumulo/pom.xml ---------------------------------------------------------------------- diff --git a/app-packages/accumulo/pom.xml b/app-packages/accumulo/pom.xml index 193245d..d366c81 100644 --- a/app-packages/accumulo/pom.xml +++ b/app-packages/accumulo/pom.xml @@ -224,6 +224,26 @@ </plugins> </build> </profile> + <profile> + <id>rat</id> + <build> + <pluginManagement> + <plugins> + <plugin> + <groupId>org.apache.rat</groupId> + <artifactId>apache-rat-plugin</artifactId> + <configuration> + <excludes> + <exclude>src/license/THIRD-PARTY.properties</exclude> + <exclude>**/*.json</exclude> + <exclude>src/test/resources/test_password_file</exclude> + </excludes> + </configuration> + </plugin> + </plugins> + </pluginManagement> + </build> + </profile> </profiles> <build> http://git-wip-us.apache.org/repos/asf/incubator-slider/blob/fff0e280/app-packages/pom.xml ---------------------------------------------------------------------- diff --git a/app-packages/pom.xml b/app-packages/pom.xml index aa9632b..65fb5cb 100644 --- a/app-packages/pom.xml +++ b/app-packages/pom.xml @@ -96,28 +96,30 @@ <id>rat</id> <!-- RAT profile --> <build> - <plugins> - <plugin> - <groupId>org.apache.rat</groupId> - <artifactId>apache-rat-plugin</artifactId> - <version>${apache-rat-plugin.version}</version> - <executions> - <execution> - <id>check-licenses</id> - <goals> - <goal>check</goal> - </goals> - </execution> - </executions> - <configuration> - <excludes> - <exclude>**/*.json</exclude> - <exclude>**/test_password_file</exclude> - <exclude>command-logger/**</exclude> - </excludes> - </configuration> - </plugin> - </plugins> + <pluginManagement> + <plugins> + <plugin> + <groupId>org.apache.rat</groupId> + <artifactId>apache-rat-plugin</artifactId> + <version>${apache-rat-plugin.version}</version> + <executions> + <execution> + <id>check-licenses</id> + <goals> + <goal>check</goal> + </goals> + </execution> + </executions> + <configuration> + <excludes> + <exclude>**/*.json</exclude> + <exclude>**/test_password_file</exclude> + <exclude>command-logger/**</exclude> + </excludes> + </configuration> + </plugin> + </plugins> + </pluginManagement> </build> </profile> </profiles> http://git-wip-us.apache.org/repos/asf/incubator-slider/blob/fff0e280/pom.xml ---------------------------------------------------------------------- diff --git a/pom.xml b/pom.xml index ddbfb82..0a6781f 100644 --- a/pom.xml +++ b/pom.xml @@ -1394,40 +1394,42 @@ <profile> <id>rat</id> <build> - <plugins> - <plugin> - <groupId>org.apache.rat</groupId> - <artifactId>apache-rat-plugin</artifactId> - <version>${apache-rat-plugin.version}</version> - <executions> - <execution> - <id>check-licenses</id> - <goals> - <goal>check</goal> - </goals> - </execution> - </executions> - <configuration> - <excludes> - <exclude>**/*.json</exclude> - <exclude>**/*.tar</exclude> - <exclude>**/THIRD-PARTY.properties</exclude> - <exclude>**/build.properties</exclude> - <exclude>**/regionservers</exclude> - <exclude>**/slaves</exclude> - <exclude>**/httpfs-signature.secret</exclude> - <exclude>**/dfs.exclude</exclude> - <exclude>**/*.iml</exclude> - <exclude>**/rat.txt</exclude> - <exclude>**/test_password_file</exclude> - <exclude>DISCLAIMER</exclude> - <exclude>app-packages/hbase/target/**</exclude> - <exclude>target/*</exclude> - <exclude>DEPENDENCIES</exclude> - </excludes> - </configuration> - </plugin> - </plugins> + <pluginManagement> + <plugins> + <plugin> + <groupId>org.apache.rat</groupId> + <artifactId>apache-rat-plugin</artifactId> + <version>${apache-rat-plugin.version}</version> + <executions> + <execution> + <id>check-licenses</id> + <goals> + <goal>check</goal> + </goals> + </execution> + </executions> + <configuration> + <excludes> + <exclude>**/*.json</exclude> + <exclude>**/*.tar</exclude> + <exclude>**/THIRD-PARTY.properties</exclude> + <exclude>**/build.properties</exclude> + <exclude>**/regionservers</exclude> + <exclude>**/slaves</exclude> + <exclude>**/httpfs-signature.secret</exclude> + <exclude>**/dfs.exclude</exclude> + <exclude>**/*.iml</exclude> + <exclude>**/rat.txt</exclude> + <exclude>**/test_password_file</exclude> + <exclude>DISCLAIMER</exclude> + <exclude>app-packages/hbase/target/**</exclude> + <exclude>target/*</exclude> + <exclude>DEPENDENCIES</exclude> + </excludes> + </configuration> + </plugin> + </plugins> + </pluginManagement> </build> </profile>