ASTERIXDB-1105 - LICENSE per submodule
This is a good part of what we need to have a specific set of
dependencies per binary assembly. The main key here is using the
maven remote resources plugin, and supplemental resources to
fill in info from the POM of dependencies where it is lacking.
For things that aren't described in Maven dependencies,
like Javascript files, they are added as LICENSE fragments
that get included in binary assemblies.
Change-Id: I2a6c4fb809b6fcad578007b8f48bf8bce179cd83
Reviewed-on: https://asterix-gerrit.ics.uci.edu/520
Tested-by: Jenkins <jenkins@fulliautomatix.ics.uci.edu>
Reviewed-by: Ian Maxon <imaxon@apache.org>
diff --git a/algebricks/algebricks-common/pom.xml b/algebricks/algebricks-common/pom.xml
index 29ad3d6..2fa0da0 100644
--- a/algebricks/algebricks-common/pom.xml
+++ b/algebricks/algebricks-common/pom.xml
@@ -37,6 +37,9 @@
</license>
</licenses>
+ <properties>
+ <root.dir>${basedir}/../..</root.dir>
+ </properties>
<build>
<plugins>
diff --git a/algebricks/algebricks-compiler/pom.xml b/algebricks/algebricks-compiler/pom.xml
index e441bdd..e5dae2a 100644
--- a/algebricks/algebricks-compiler/pom.xml
+++ b/algebricks/algebricks-compiler/pom.xml
@@ -37,6 +37,9 @@
</license>
</licenses>
+ <properties>
+ <root.dir>${basedir}/../..</root.dir>
+ </properties>
<build>
<plugins>
diff --git a/algebricks/algebricks-core/pom.xml b/algebricks/algebricks-core/pom.xml
index e178484..c60116f 100644
--- a/algebricks/algebricks-core/pom.xml
+++ b/algebricks/algebricks-core/pom.xml
@@ -37,6 +37,9 @@
</license>
</licenses>
+ <properties>
+ <root.dir>${basedir}/../..</root.dir>
+ </properties>
<build>
<plugins>
diff --git a/algebricks/algebricks-data/pom.xml b/algebricks/algebricks-data/pom.xml
index 4fa07fd..fe90fa2 100644
--- a/algebricks/algebricks-data/pom.xml
+++ b/algebricks/algebricks-data/pom.xml
@@ -37,6 +37,9 @@
</license>
</licenses>
+ <properties>
+ <root.dir>${basedir}/../..</root.dir>
+ </properties>
<build>
<plugins>
diff --git a/algebricks/algebricks-examples/piglet-example/pom.xml b/algebricks/algebricks-examples/piglet-example/pom.xml
index 7e0b0eb..7229e25 100644
--- a/algebricks/algebricks-examples/piglet-example/pom.xml
+++ b/algebricks/algebricks-examples/piglet-example/pom.xml
@@ -27,6 +27,10 @@
<version>0.2.17-SNAPSHOT</version>
</parent>
+ <properties>
+ <root.dir>${basedir}/../../..</root.dir>
+ </properties>
+
<build>
<plugins>
<plugin>
diff --git a/algebricks/algebricks-examples/pom.xml b/algebricks/algebricks-examples/pom.xml
index 7ba1b5b..875179a 100644
--- a/algebricks/algebricks-examples/pom.xml
+++ b/algebricks/algebricks-examples/pom.xml
@@ -38,6 +38,9 @@
</license>
</licenses>
+ <properties>
+ <root.dir>${basedir}/../..</root.dir>
+ </properties>
<modules>
<module>piglet-example</module>
diff --git a/algebricks/algebricks-rewriter/pom.xml b/algebricks/algebricks-rewriter/pom.xml
index ed658d0..b3d9273 100644
--- a/algebricks/algebricks-rewriter/pom.xml
+++ b/algebricks/algebricks-rewriter/pom.xml
@@ -37,6 +37,9 @@
</license>
</licenses>
+ <properties>
+ <root.dir>${basedir}/../..</root.dir>
+ </properties>
<build>
<plugins>
diff --git a/algebricks/algebricks-runtime/pom.xml b/algebricks/algebricks-runtime/pom.xml
index 920a0eb..799927e 100644
--- a/algebricks/algebricks-runtime/pom.xml
+++ b/algebricks/algebricks-runtime/pom.xml
@@ -37,6 +37,9 @@
</license>
</licenses>
+ <properties>
+ <root.dir>${basedir}/../..</root.dir>
+ </properties>
<build>
<plugins>
diff --git a/algebricks/algebricks-tests/pom.xml b/algebricks/algebricks-tests/pom.xml
index 0d34303..77faf51 100644
--- a/algebricks/algebricks-tests/pom.xml
+++ b/algebricks/algebricks-tests/pom.xml
@@ -37,6 +37,9 @@
</license>
</licenses>
+ <properties>
+ <root.dir>${basedir}/../..</root.dir>
+ </properties>
<build>
<plugins>
diff --git a/algebricks/pom.xml b/algebricks/pom.xml
index b3d54d0..e498062 100644
--- a/algebricks/pom.xml
+++ b/algebricks/pom.xml
@@ -40,6 +40,23 @@
</license>
</licenses>
+ <build>
+ <plugins>
+ <plugin>
+ <groupId>org.apache.rat</groupId>
+ <artifactId>apache-rat-plugin</artifactId>
+ <version>0.11</version>
+ <configuration>
+ <skip>true</skip>
+ </configuration>
+ </plugin>
+ </plugins>
+ </build>
+
+ <properties>
+ <root.dir>${basedir}/..</root.dir>
+ </properties>
+
<modules>
<module>algebricks-compiler</module>
<module>algebricks-common</module>