HBASE-22585 Ensure javax.annotation doesn't get include in shaded artifacts when built with Java 11

Signed-off-by: Sean Busbey <busbey@apache.org>
This commit is contained in:
Sakthi 2019-06-14 09:17:06 -07:00 committed by Sean Busbey
parent 79ee19b0c7
commit e14b5f0edc
2 changed files with 2 additions and 0 deletions

View File

@ -57,6 +57,7 @@
<!-- exclude J2EE modules that come in for JDK11+ (since
hadoop-3.2.0) or modules that come in for JDK8+ but
need not be included -->
<exclude>javax.annotation:javax.annotation-api</exclude>
<exclude>javax.activation:javax.activation-api</exclude>
<!--
Tell the shade plugin that in this case we want to include hadoop

View File

@ -135,6 +135,7 @@
<!-- exclude J2EE modules that come in for JDK11+ (since
hadoop-3.2.0) or modules that come in for JDK8+ but
need not be included -->
<exclude>javax.annotation:javax.annotation-api</exclude>
<exclude>javax.activation:javax.activation-api</exclude>
<!-- default to excluding Hadoop, have module that want
to include it redefine the exclude list -->