You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@hbase.apache.org by bu...@apache.org on 2018/06/15 16:36:36 UTC
[1/2] hbase git commit: HBASE-20681 Explicitly include hamcrest in
binary tarball
Repository: hbase
Updated Branches:
refs/heads/branch-2 b68746c0b -> 4e9f5e8d6
refs/heads/branch-2.0 cb2dfd117 -> 6a3aa80d8
HBASE-20681 Explicitly include hamcrest in binary tarball
HBase ITs require junit which requires hamcrest. Hadoop recently
stopped including hamcrest in their installation (and thus our inherited
classpath), which means that we need to ship it.
Signed-off-by: Sean Busbey <bu...@apache.org>
Project: http://git-wip-us.apache.org/repos/asf/hbase/repo
Commit: http://git-wip-us.apache.org/repos/asf/hbase/commit/4e9f5e8d
Tree: http://git-wip-us.apache.org/repos/asf/hbase/tree/4e9f5e8d
Diff: http://git-wip-us.apache.org/repos/asf/hbase/diff/4e9f5e8d
Branch: refs/heads/branch-2
Commit: 4e9f5e8d641626c792d6c4edeb3ac8ca2d5af534
Parents: b68746c
Author: Josh Elser <el...@apache.org>
Authored: Mon Jun 4 19:19:52 2018 -0400
Committer: Sean Busbey <bu...@apache.org>
Committed: Fri Jun 15 11:12:57 2018 -0500
----------------------------------------------------------------------
hbase-assembly/pom.xml | 8 ++++++++
hbase-resource-bundle/src/main/resources/META-INF/LICENSE.vm | 8 +++++---
.../src/main/resources/supplemental-models.xml | 1 -
hbase-shaded/pom.xml | 2 --
4 files changed, 13 insertions(+), 6 deletions(-)
----------------------------------------------------------------------
http://git-wip-us.apache.org/repos/asf/hbase/blob/4e9f5e8d/hbase-assembly/pom.xml
----------------------------------------------------------------------
diff --git a/hbase-assembly/pom.xml b/hbase-assembly/pom.xml
index eb69d60..36a9afc 100644
--- a/hbase-assembly/pom.xml
+++ b/hbase-assembly/pom.xml
@@ -179,6 +179,14 @@
<artifactId>hbase-it</artifactId>
<type>test-jar</type>
</dependency>
+ <!-- Hamcrest is required by hbase-it (via junit), but as long as we're grabbing the hbase-it test-jar,
+ maven dependency resolution won't pick it up for us. -->
+ <dependency>
+ <groupId>org.hamcrest</groupId>
+ <artifactId>hamcrest-core</artifactId>
+ <!-- Overriding the scope in depMgmt -->
+ <scope>compile</scope>
+ </dependency>
<dependency>
<groupId>org.apache.hbase</groupId>
<artifactId>hbase-server</artifactId>
http://git-wip-us.apache.org/repos/asf/hbase/blob/4e9f5e8d/hbase-resource-bundle/src/main/resources/META-INF/LICENSE.vm
----------------------------------------------------------------------
diff --git a/hbase-resource-bundle/src/main/resources/META-INF/LICENSE.vm b/hbase-resource-bundle/src/main/resources/META-INF/LICENSE.vm
index 05893a6..0b1ad13 100644
--- a/hbase-resource-bundle/src/main/resources/META-INF/LICENSE.vm
+++ b/hbase-resource-bundle/src/main/resources/META-INF/LICENSE.vm
@@ -1333,12 +1333,14 @@ You can redistribute it and/or modify it under either the terms of the
#set($jruby = false)
## track hadoops
#set($hadoop = false)
-## Whitelist of licenses that it's safe to not aggregate as above.
+## Whitelist of lower-case licenses that it's safe to not aggregate as above.
## Note that this doesn't include ALv2 or the aforementioned aggregate
## license mentions.
##
## See this FAQ link for justifications: https://www.apache.org/legal/resolved.html
-#set($non_aggregate_fine = [ 'Public Domain', 'New BSD license', 'BSD license', 'BSD', 'BSD 2-Clause license', 'Mozilla Public License Version 1.1', 'Mozilla Public License Version 2.0', 'Creative Commons Attribution License, Version 2.5' ])
+##
+## NB: This list is later compared as lower-case. New entries must also be all lower-case
+#set($non_aggregate_fine = [ 'public domain', 'new bsd license', 'bsd license', 'bsd', 'bsd 2-clause license', 'mozilla public license version 1.1', 'mozilla public license version 2.0', 'creative commons attribution license, version 2.5' ])
## include LICENSE sections for anything not under ASL2.0
#foreach( ${dep} in ${projects} )
## if there are no licenses we'll fail the build later, so
@@ -1449,7 +1451,7 @@ This product includes ${dep.name} licensed under the ${dep.licenses[0].name}.
#if( $dep.licenses[0].comments && !$dep.licenses[0].comments.empty )
${dep.licenses[0].comments}
#end
-#if(!(${non_aggregate_fine.contains($dep.licenses[0].name)}))
+#if(!(${non_aggregate_fine.contains($dep.licenses[0].name.toLowerCase())}))
ERROR: Please check ^^^^^^^^^^^^ this License for acceptability here:
https://www.apache.org/legal/resolved
http://git-wip-us.apache.org/repos/asf/hbase/blob/4e9f5e8d/hbase-resource-bundle/src/main/resources/supplemental-models.xml
----------------------------------------------------------------------
diff --git a/hbase-resource-bundle/src/main/resources/supplemental-models.xml b/hbase-resource-bundle/src/main/resources/supplemental-models.xml
index 00d4ece..9897769 100644
--- a/hbase-resource-bundle/src/main/resources/supplemental-models.xml
+++ b/hbase-resource-bundle/src/main/resources/supplemental-models.xml
@@ -2783,5 +2783,4 @@ Copyright (c) 2007-2017 The JRuby project
</licenses>
</project>
</supplement>
-
</supplementalDataModels>
http://git-wip-us.apache.org/repos/asf/hbase/blob/4e9f5e8d/hbase-shaded/pom.xml
----------------------------------------------------------------------
diff --git a/hbase-shaded/pom.xml b/hbase-shaded/pom.xml
index f1db79f..70af3a6 100644
--- a/hbase-shaded/pom.xml
+++ b/hbase-shaded/pom.xml
@@ -418,8 +418,6 @@
<pattern>org.junit</pattern>
<shadedPattern>${shaded.prefix}.org.junit</shadedPattern>
</relocation>
-
-
</relocations>
<transformers>
<!-- Need to filter out some extraneous license files.
[2/2] hbase git commit: HBASE-20681 Explicitly include hamcrest in
binary tarball
Posted by bu...@apache.org.
HBASE-20681 Explicitly include hamcrest in binary tarball
HBase ITs require junit which requires hamcrest. Hadoop recently
stopped including hamcrest in their installation (and thus our inherited
classpath), which means that we need to ship it.
Signed-off-by: Sean Busbey <bu...@apache.org>
Project: http://git-wip-us.apache.org/repos/asf/hbase/repo
Commit: http://git-wip-us.apache.org/repos/asf/hbase/commit/6a3aa80d
Tree: http://git-wip-us.apache.org/repos/asf/hbase/tree/6a3aa80d
Diff: http://git-wip-us.apache.org/repos/asf/hbase/diff/6a3aa80d
Branch: refs/heads/branch-2.0
Commit: 6a3aa80d8074ce36c4841c848c6d8b3599411a13
Parents: cb2dfd1
Author: Josh Elser <el...@apache.org>
Authored: Mon Jun 4 19:19:52 2018 -0400
Committer: Sean Busbey <bu...@apache.org>
Committed: Fri Jun 15 11:21:20 2018 -0500
----------------------------------------------------------------------
hbase-assembly/pom.xml | 8 ++++++++
hbase-resource-bundle/src/main/resources/META-INF/LICENSE.vm | 8 +++++---
.../src/main/resources/supplemental-models.xml | 1 -
hbase-shaded/pom.xml | 2 --
4 files changed, 13 insertions(+), 6 deletions(-)
----------------------------------------------------------------------
http://git-wip-us.apache.org/repos/asf/hbase/blob/6a3aa80d/hbase-assembly/pom.xml
----------------------------------------------------------------------
diff --git a/hbase-assembly/pom.xml b/hbase-assembly/pom.xml
index 974a942..6c25ad9 100644
--- a/hbase-assembly/pom.xml
+++ b/hbase-assembly/pom.xml
@@ -179,6 +179,14 @@
<artifactId>hbase-it</artifactId>
<type>test-jar</type>
</dependency>
+ <!-- Hamcrest is required by hbase-it (via junit), but as long as we're grabbing the hbase-it test-jar,
+ maven dependency resolution won't pick it up for us. -->
+ <dependency>
+ <groupId>org.hamcrest</groupId>
+ <artifactId>hamcrest-core</artifactId>
+ <!-- Overriding the scope in depMgmt -->
+ <scope>compile</scope>
+ </dependency>
<dependency>
<groupId>org.apache.hbase</groupId>
<artifactId>hbase-server</artifactId>
http://git-wip-us.apache.org/repos/asf/hbase/blob/6a3aa80d/hbase-resource-bundle/src/main/resources/META-INF/LICENSE.vm
----------------------------------------------------------------------
diff --git a/hbase-resource-bundle/src/main/resources/META-INF/LICENSE.vm b/hbase-resource-bundle/src/main/resources/META-INF/LICENSE.vm
index 05893a6..0b1ad13 100644
--- a/hbase-resource-bundle/src/main/resources/META-INF/LICENSE.vm
+++ b/hbase-resource-bundle/src/main/resources/META-INF/LICENSE.vm
@@ -1333,12 +1333,14 @@ You can redistribute it and/or modify it under either the terms of the
#set($jruby = false)
## track hadoops
#set($hadoop = false)
-## Whitelist of licenses that it's safe to not aggregate as above.
+## Whitelist of lower-case licenses that it's safe to not aggregate as above.
## Note that this doesn't include ALv2 or the aforementioned aggregate
## license mentions.
##
## See this FAQ link for justifications: https://www.apache.org/legal/resolved.html
-#set($non_aggregate_fine = [ 'Public Domain', 'New BSD license', 'BSD license', 'BSD', 'BSD 2-Clause license', 'Mozilla Public License Version 1.1', 'Mozilla Public License Version 2.0', 'Creative Commons Attribution License, Version 2.5' ])
+##
+## NB: This list is later compared as lower-case. New entries must also be all lower-case
+#set($non_aggregate_fine = [ 'public domain', 'new bsd license', 'bsd license', 'bsd', 'bsd 2-clause license', 'mozilla public license version 1.1', 'mozilla public license version 2.0', 'creative commons attribution license, version 2.5' ])
## include LICENSE sections for anything not under ASL2.0
#foreach( ${dep} in ${projects} )
## if there are no licenses we'll fail the build later, so
@@ -1449,7 +1451,7 @@ This product includes ${dep.name} licensed under the ${dep.licenses[0].name}.
#if( $dep.licenses[0].comments && !$dep.licenses[0].comments.empty )
${dep.licenses[0].comments}
#end
-#if(!(${non_aggregate_fine.contains($dep.licenses[0].name)}))
+#if(!(${non_aggregate_fine.contains($dep.licenses[0].name.toLowerCase())}))
ERROR: Please check ^^^^^^^^^^^^ this License for acceptability here:
https://www.apache.org/legal/resolved
http://git-wip-us.apache.org/repos/asf/hbase/blob/6a3aa80d/hbase-resource-bundle/src/main/resources/supplemental-models.xml
----------------------------------------------------------------------
diff --git a/hbase-resource-bundle/src/main/resources/supplemental-models.xml b/hbase-resource-bundle/src/main/resources/supplemental-models.xml
index 00d4ece..9897769 100644
--- a/hbase-resource-bundle/src/main/resources/supplemental-models.xml
+++ b/hbase-resource-bundle/src/main/resources/supplemental-models.xml
@@ -2783,5 +2783,4 @@ Copyright (c) 2007-2017 The JRuby project
</licenses>
</project>
</supplement>
-
</supplementalDataModels>
http://git-wip-us.apache.org/repos/asf/hbase/blob/6a3aa80d/hbase-shaded/pom.xml
----------------------------------------------------------------------
diff --git a/hbase-shaded/pom.xml b/hbase-shaded/pom.xml
index 03b99c5..a6b7bbb 100644
--- a/hbase-shaded/pom.xml
+++ b/hbase-shaded/pom.xml
@@ -418,8 +418,6 @@
<pattern>org.junit</pattern>
<shadedPattern>${shaded.prefix}.org.junit</shadedPattern>
</relocation>
-
-
</relocations>
<transformers>
<!-- Need to filter out some extraneous license files.