aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorKonstantin Boudnik <cos@apache.org>2015-07-31 00:42:05 +0300
committerOlaf Flebbe <of@oflebbe.de>2015-08-03 21:06:05 +0200
commita80cb3aa37e371861b8b0d5150358669725c2dd9 (patch)
treed6fcc54715e3633f874940d487df4e6c9324d857
parentdb0c8e3c85df18988f594c8f65308a28c059ebe0 (diff)
downloadbigtop-odpi-a80cb3aa37e371861b8b0d5150358669725c2dd9.tar.gz
BIGTOP-1947. Fix RAT plugin configuration to be able to RAT-validate all published artifacts
Signed-off-by: Olaf Flebbe <of@oflebbe.de>
-rw-r--r--bigtop-tests/test-artifacts/crunch/pom.xml15
-rw-r--r--bigtop-tests/test-artifacts/datafu/pom.xml15
-rw-r--r--bigtop-tests/test-artifacts/flume/pom.xml15
-rw-r--r--bigtop-tests/test-artifacts/hadoop/pom.xml19
-rw-r--r--bigtop-tests/test-artifacts/hbase/pom.xml15
-rw-r--r--bigtop-tests/test-artifacts/hcatalog/pom.xml16
-rw-r--r--bigtop-tests/test-artifacts/httpfs/pom.xml14
-rw-r--r--bigtop-tests/test-artifacts/package/pom.xml9
-rw-r--r--bigtop-tests/test-artifacts/sqoop/pom.xml16
-rw-r--r--pom.xml18
10 files changed, 151 insertions, 1 deletions
diff --git a/bigtop-tests/test-artifacts/crunch/pom.xml b/bigtop-tests/test-artifacts/crunch/pom.xml
index 922cf91c..7ac5d457 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.1.0-SNAPSHOT</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>
diff --git a/bigtop-tests/test-artifacts/datafu/pom.xml b/bigtop-tests/test-artifacts/datafu/pom.xml
index 4a150c6b..785fa545 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>
diff --git a/bigtop-tests/test-artifacts/flume/pom.xml b/bigtop-tests/test-artifacts/flume/pom.xml
index 1c1f270e..f98db35a 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>
diff --git a/bigtop-tests/test-artifacts/hadoop/pom.xml b/bigtop-tests/test-artifacts/hadoop/pom.xml
index 8c366e8c..604ef82f 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>
diff --git a/bigtop-tests/test-artifacts/hbase/pom.xml b/bigtop-tests/test-artifacts/hbase/pom.xml
index 5b762900..e3c5805c 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>
diff --git a/bigtop-tests/test-artifacts/hcatalog/pom.xml b/bigtop-tests/test-artifacts/hcatalog/pom.xml
index e5b86295..5f9000f8 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.1.0-SNAPSHOT</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>
diff --git a/bigtop-tests/test-artifacts/httpfs/pom.xml b/bigtop-tests/test-artifacts/httpfs/pom.xml
index 53d4d2e9..7a79e127 100644
--- a/bigtop-tests/test-artifacts/httpfs/pom.xml
+++ b/bigtop-tests/test-artifacts/httpfs/pom.xml
@@ -32,4 +32,18 @@
<version>1.1.0-SNAPSHOT</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>
diff --git a/bigtop-tests/test-artifacts/package/pom.xml b/bigtop-tests/test-artifacts/package/pom.xml
index ed8c1b7b..0886f3ab 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>
diff --git a/bigtop-tests/test-artifacts/sqoop/pom.xml b/bigtop-tests/test-artifacts/sqoop/pom.xml
index 8ec3d87f..d8a977c6 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>
diff --git a/pom.xml b/pom.xml
index c0c22fe5..368a90cb 100644
--- a/pom.xml
+++ b/pom.xml
@@ -299,11 +299,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>
@@ -311,13 +325,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