HBASE-16340 exclude Xerces iplementation jars from coming in transitively. Signed-off-by: Esteban Gutierrez <este...@apache.org>
Project: http://git-wip-us.apache.org/repos/asf/hbase/repo Commit: http://git-wip-us.apache.org/repos/asf/hbase/commit/c59f7648 Tree: http://git-wip-us.apache.org/repos/asf/hbase/tree/c59f7648 Diff: http://git-wip-us.apache.org/repos/asf/hbase/diff/c59f7648 Branch: refs/heads/hbase-12439 Commit: c59f76485e2fbb86124847c4b31a06dc53d393b8 Parents: 60b79e2 Author: Sean Busbey <bus...@apache.org> Authored: Tue Aug 2 11:36:51 2016 -0500 Committer: Sean Busbey <bus...@apache.org> Committed: Fri Aug 5 10:16:29 2016 -0500 ---------------------------------------------------------------------- hbase-spark/pom.xml | 4 ++++ pom.xml | 24 +++++++++++++++++++++++- 2 files changed, 27 insertions(+), 1 deletion(-) ---------------------------------------------------------------------- http://git-wip-us.apache.org/repos/asf/hbase/blob/c59f7648/hbase-spark/pom.xml ---------------------------------------------------------------------- diff --git a/hbase-spark/pom.xml b/hbase-spark/pom.xml index 842ff21..aa03854 100644 --- a/hbase-spark/pom.xml +++ b/hbase-spark/pom.xml @@ -272,6 +272,10 @@ <groupId>io.netty</groupId> <artifactId>netty</artifactId> </exclusion> + <exclusion> + <groupId>xerces</groupId> + <artifactId>xercesImpl</artifactId> + </exclusion> </exclusions> </dependency> http://git-wip-us.apache.org/repos/asf/hbase/blob/c59f7648/pom.xml ---------------------------------------------------------------------- diff --git a/pom.xml b/pom.xml index c4f1b05..71b77bb 100644 --- a/pom.xml +++ b/pom.xml @@ -933,7 +933,7 @@ <!-- version set by parent --> <executions> <execution> - <id>min-maven-and-java</id> + <id>min-maven-min-java-banned-xerces</id> <goals> <goal>enforce</goal> </goals> @@ -959,6 +959,12 @@ See the reference guide on building for more information: http://hbase.apache.org/book.html#build </message> </requireJavaVersion> + <bannedDependencies> + <excludes> + <exclude>xerces:xercesImpl</exclude> + </excludes> + <message>We avoid adding our own Xerces jars to the classpath, see HBASE-16340.</message> + </bannedDependencies> </rules> </configuration> </execution> @@ -2176,6 +2182,10 @@ <groupId>stax</groupId> <artifactId>stax-api</artifactId> </exclusion> + <exclusion> + <groupId>xerces</groupId> + <artifactId>xercesImpl</artifactId> + </exclusion> </exclusions> <version>${hadoop-two.version}</version> </dependency> @@ -2202,6 +2212,10 @@ <groupId>stax</groupId> <artifactId>stax-api</artifactId> </exclusion> + <exclusion> + <groupId>xerces</groupId> + <artifactId>xercesImpl</artifactId> + </exclusion> </exclusions> </dependency> <dependency> @@ -2362,6 +2376,10 @@ <groupId>stax</groupId> <artifactId>stax-api</artifactId> </exclusion> + <exclusion> + <groupId>xerces</groupId> + <artifactId>xercesImpl</artifactId> + </exclusion> </exclusions> <version>${hadoop-three.version}</version> </dependency> @@ -2384,6 +2402,10 @@ <groupId>stax</groupId> <artifactId>stax-api</artifactId> </exclusion> + <exclusion> + <groupId>xerces</groupId> + <artifactId>xercesImpl</artifactId> + </exclusion> </exclusions> </dependency> <dependency>