BIGTOP-1947. Fix RAT plugin configuration to be able to RAT-validate all published artifacts
Signed-off-by: Olaf Flebbe <[email protected]> Project: http://git-wip-us.apache.org/repos/asf/bigtop/repo Commit: http://git-wip-us.apache.org/repos/asf/bigtop/commit/08ab107f Tree: http://git-wip-us.apache.org/repos/asf/bigtop/tree/08ab107f Diff: http://git-wip-us.apache.org/repos/asf/bigtop/diff/08ab107f Branch: refs/heads/branch-1.0 Commit: 08ab107f2373aa51392eaeca07a853cd0b7cc920 Parents: b1d96db Author: Konstantin Boudnik <[email protected]> Authored: Fri Jul 31 00:42:05 2015 +0300 Committer: Konstantin Boudnik <[email protected]> Committed: Fri Aug 7 13:24:43 2015 -0700 ---------------------------------------------------------------------- bigtop-tests/test-artifacts/crunch/pom.xml | 15 +++++++++++++++ bigtop-tests/test-artifacts/datafu/pom.xml | 15 +++++++++++++++ bigtop-tests/test-artifacts/flume/pom.xml | 15 +++++++++++++++ bigtop-tests/test-artifacts/hadoop/pom.xml | 19 +++++++++++++++++++ bigtop-tests/test-artifacts/hbase/pom.xml | 15 +++++++++++++++ bigtop-tests/test-artifacts/hcatalog/pom.xml | 16 ++++++++++++++++ bigtop-tests/test-artifacts/httpfs/pom.xml | 14 ++++++++++++++ bigtop-tests/test-artifacts/package/pom.xml | 9 +++++++++ bigtop-tests/test-artifacts/sqoop/pom.xml | 16 ++++++++++++++++ pom.xml | 18 +++++++++++++++++- 10 files changed, 151 insertions(+), 1 deletion(-) ---------------------------------------------------------------------- http://git-wip-us.apache.org/repos/asf/bigtop/blob/08ab107f/bigtop-tests/test-artifacts/crunch/pom.xml ---------------------------------------------------------------------- diff --git a/bigtop-tests/test-artifacts/crunch/pom.xml b/bigtop-tests/test-artifacts/crunch/pom.xml index 24ac710..3d3dee4 100644 --- a/bigtop-tests/test-artifacts/crunch/pom.xml +++ b/bigtop-tests/test-artifacts/crunch/pom.xml @@ -29,4 +29,19 @@ <artifactId>crunch-smoke</artifactId> <version>1.0.0</version> <name>crunchsmoke</name> + + <build> + <plugins> + <plugin> + <groupId>org.apache.rat</groupId> + <artifactId>apache-rat-plugin</artifactId> + <configuration> + <excludes> + <exclude>**/resources/crunch-examples/**</exclude> + </excludes> + </configuration> + </plugin> + </plugins> + </build> + </project> http://git-wip-us.apache.org/repos/asf/bigtop/blob/08ab107f/bigtop-tests/test-artifacts/datafu/pom.xml ---------------------------------------------------------------------- diff --git a/bigtop-tests/test-artifacts/datafu/pom.xml b/bigtop-tests/test-artifacts/datafu/pom.xml index 0faa8dc..e461359 100644 --- a/bigtop-tests/test-artifacts/datafu/pom.xml +++ b/bigtop-tests/test-artifacts/datafu/pom.xml @@ -61,4 +61,19 @@ <version>6.3</version> </dependency> </dependencies> + + <build> + <plugins> + <plugin> + <groupId>org.apache.rat</groupId> + <artifactId>apache-rat-plugin</artifactId> + <configuration> + <excludes> + <exclude>**/resources/datafu/**/*.pig</exclude> + </excludes> + </configuration> + </plugin> + </plugins> + </build> + </project> http://git-wip-us.apache.org/repos/asf/bigtop/blob/08ab107f/bigtop-tests/test-artifacts/flume/pom.xml ---------------------------------------------------------------------- diff --git a/bigtop-tests/test-artifacts/flume/pom.xml b/bigtop-tests/test-artifacts/flume/pom.xml index b59b54d..6c0b2d0 100644 --- a/bigtop-tests/test-artifacts/flume/pom.xml +++ b/bigtop-tests/test-artifacts/flume/pom.xml @@ -36,4 +36,19 @@ <artifactId>hadoop-common</artifactId> </dependency> </dependencies> + + <build> + <plugins> + <plugin> + <groupId>org.apache.rat</groupId> + <artifactId>apache-rat-plugin</artifactId> + <configuration> + <excludes> + <exclude>**/resources/events.txt</exclude> + </excludes> + </configuration> + </plugin> + </plugins> + </build> + </project> http://git-wip-us.apache.org/repos/asf/bigtop/blob/08ab107f/bigtop-tests/test-artifacts/hadoop/pom.xml ---------------------------------------------------------------------- diff --git a/bigtop-tests/test-artifacts/hadoop/pom.xml b/bigtop-tests/test-artifacts/hadoop/pom.xml index 2c4b426..7fc74b8 100644 --- a/bigtop-tests/test-artifacts/hadoop/pom.xml +++ b/bigtop-tests/test-artifacts/hadoop/pom.xml @@ -52,4 +52,23 @@ </dependency> </dependencies> + <build> + <plugins> + <plugin> + <groupId>org.apache.rat</groupId> + <artifactId>apache-rat-plugin</artifactId> + <configuration> + <excludes> + <exclude>**/clitest_data/**</exclude> + <exclude>**/ints/file*.txt</exclude> + <exclude>**/text/file*.txt</exclude> + <exclude>**/resources/input.txt</exclude> + <exclude>**/resources/examples/text/*.txt</exclude> + <exclude>**/resources/part-00001.snappy</exclude> + </excludes> + </configuration> + </plugin> + </plugins> + </build> + </project> http://git-wip-us.apache.org/repos/asf/bigtop/blob/08ab107f/bigtop-tests/test-artifacts/hbase/pom.xml ---------------------------------------------------------------------- diff --git a/bigtop-tests/test-artifacts/hbase/pom.xml b/bigtop-tests/test-artifacts/hbase/pom.xml index 17666f4..fe7df52 100644 --- a/bigtop-tests/test-artifacts/hbase/pom.xml +++ b/bigtop-tests/test-artifacts/hbase/pom.xml @@ -58,4 +58,19 @@ <type>test-jar</type> </dependency> </dependencies> + + <build> + <plugins> + <plugin> + <groupId>org.apache.rat</groupId> + <artifactId>apache-rat-plugin</artifactId> + <configuration> + <excludes> + <exclude>**/resources/movies.*</exclude> + </excludes> + </configuration> + </plugin> + </plugins> + </build> + </project> http://git-wip-us.apache.org/repos/asf/bigtop/blob/08ab107f/bigtop-tests/test-artifacts/hcatalog/pom.xml ---------------------------------------------------------------------- diff --git a/bigtop-tests/test-artifacts/hcatalog/pom.xml b/bigtop-tests/test-artifacts/hcatalog/pom.xml index 38143f7..2dd0001 100644 --- a/bigtop-tests/test-artifacts/hcatalog/pom.xml +++ b/bigtop-tests/test-artifacts/hcatalog/pom.xml @@ -29,4 +29,20 @@ <artifactId>hcatalog-smoke</artifactId> <version>1.0.0</version> <name>hcatalogsmoke</name> + + <build> + <plugins> + <plugin> + <groupId>org.apache.rat</groupId> + <artifactId>apache-rat-plugin</artifactId> + <configuration> + <excludes> + <exclude>**/resources/data/*</exclude> + <exclude>**/resources/*.expected</exclude> + </excludes> + </configuration> + </plugin> + </plugins> + </build> + </project> http://git-wip-us.apache.org/repos/asf/bigtop/blob/08ab107f/bigtop-tests/test-artifacts/httpfs/pom.xml ---------------------------------------------------------------------- diff --git a/bigtop-tests/test-artifacts/httpfs/pom.xml b/bigtop-tests/test-artifacts/httpfs/pom.xml index 02db680..81f271a 100644 --- a/bigtop-tests/test-artifacts/httpfs/pom.xml +++ b/bigtop-tests/test-artifacts/httpfs/pom.xml @@ -32,4 +32,18 @@ <version>1.0.0</version> <name>httpfssmokes</name> + <build> + <plugins> + <plugin> + <groupId>org.apache.rat</groupId> + <artifactId>apache-rat-plugin</artifactId> + <configuration> + <excludes> + <exclude>**/resources/text-files/helloworld.txt</exclude> + </excludes> + </configuration> + </plugin> + </plugins> + </build> + </project> http://git-wip-us.apache.org/repos/asf/bigtop/blob/08ab107f/bigtop-tests/test-artifacts/package/pom.xml ---------------------------------------------------------------------- diff --git a/bigtop-tests/test-artifacts/package/pom.xml b/bigtop-tests/test-artifacts/package/pom.xml index 66bf940..e768ae7 100644 --- a/bigtop-tests/test-artifacts/package/pom.xml +++ b/bigtop-tests/test-artifacts/package/pom.xml @@ -50,6 +50,15 @@ <build> <plugins> + <plugin> + <groupId>org.apache.rat</groupId> + <artifactId>apache-rat-plugin</artifactId> + <configuration> + <excludes> + <exclude>**/main/resources/**/*.xml</exclude> + </excludes> + </configuration> + </plugin> <plugin> <groupId>org.codehaus.groovy.maven</groupId> <artifactId>gmaven-plugin</artifactId> http://git-wip-us.apache.org/repos/asf/bigtop/blob/08ab107f/bigtop-tests/test-artifacts/sqoop/pom.xml ---------------------------------------------------------------------- diff --git a/bigtop-tests/test-artifacts/sqoop/pom.xml b/bigtop-tests/test-artifacts/sqoop/pom.xml index 7c8d276..e02ece0 100644 --- a/bigtop-tests/test-artifacts/sqoop/pom.xml +++ b/bigtop-tests/test-artifacts/sqoop/pom.xml @@ -40,4 +40,20 @@ </dependency> </dependencies> + <build> + <plugins> + <plugin> + <groupId>org.apache.rat</groupId> + <artifactId>apache-rat-plugin</artifactId> + <configuration> + <excludes> + <exclude>**/resources/**/*.hxt</exclude> + <exclude>**/resources/**/*.txt</exclude> + <exclude>**/resources/**/*.out</exclude> + </excludes> + </configuration> + </plugin> + </plugins> + </build> + </project> http://git-wip-us.apache.org/repos/asf/bigtop/blob/08ab107f/pom.xml ---------------------------------------------------------------------- diff --git a/pom.xml b/pom.xml index abc4978..3290f35 100644 --- a/pom.xml +++ b/pom.xml @@ -298,11 +298,25 @@ <exclude>**/.gitignore</exclude> <!-- Test data with rigid structure and/or binary --> <exclude>bigtop-tests/test-artifacts/**/resources/**</exclude> + <exclude>bigtop-tests/smoke-tests/tachyon/datafile</exclude> + <exclude>bigtop-tests/smoke-tests/hive/passwd.ql</exclude> + <exclude>bigtop-tests/smoke-tests/kite/sandwiches.csv</exclude> + <exclude>**/target/**</exclude> + <exclude>**/build/**</exclude> + <exclude>**/.gradle/**</exclude> + <exclude>**/*.iml</exclude> + <exclude>.gradle</exclude> + <exclude>buildSrc/build/**</exclude> + <exclude>bigtop-bigpetstore/bigpetstore-data-generator/**/input_data/**</exclude> + <exclude>bigtop-deploy/puppet/**/*.yaml</exclude> + <exclude>bigtop-deploy/puppet/config/*/id_hdfsuser*</exclude> <!-- Debian package files that have a rigid structure (* matches package name) --> <exclude>bigtop-packages/src/deb/*/*.dirs</exclude> <exclude>bigtop-packages/src/deb/*/dirs</exclude> <exclude>bigtop-packages/src/deb/*/*.install</exclude> <exclude>bigtop-packages/src/deb/*/*.include</exclude> + <exclude>bigtop-packages/src/deb/**/include-binaries</exclude> + <exclude>bigtop-packages/src/deb/**/format</exclude> <exclude>bigtop-packages/src/deb/*/*.manpages</exclude> <exclude>bigtop-packages/src/deb/*/*.docs</exclude> <exclude>bigtop-packages/src/deb/*/docs</exclude> @@ -310,13 +324,15 @@ <exclude>bigtop-packages/src/deb/*/source/format</exclude> <exclude>bigtop-packages/src/deb/*/*.lintian-overrides</exclude> <exclude>bigtop-packages/src/deb/*/shlibs.local</exclude> + <exclude>bigtop-packages/src/**/*.diff</exclude> + <exclude>bigtop-packages/src/common/*/*.json</exclude> + <exclude>bigtop-packages/src/common/**/*.default</exclude> <exclude>bigtop-repos/apt/distributions</exclude> <!-- Miscelaneous individual files --> <exclude>src/site/resources/bigtop.rdf</exclude> <exclude>src/site/resources/images/bigtop-logo.ai</exclude> <!--Excluding a file with FreeBSD Documentation License--> <exclude>src/site/resources/css/freebsd_docbook.css</exclude> - <exclude>bigtop-packages/src/common/*/*.json</exclude> <exclude>test/MANIFEST.txt</exclude> <exclude> bigtop-deploy/puppet/modules/hadoop/templates/taskcontroller.cfg
