HBASE-16340 exclude Xerces iplementation jars from coming in transitively. Signed-off-by: Esteban Gutierrez <este...@apache.org> Signed-off-by: stack <st...@apache.org>
Conflicts: hbase-spark/pom.xml Conflicts: pom.xml Project: http://git-wip-us.apache.org/repos/asf/hbase/repo Commit: http://git-wip-us.apache.org/repos/asf/hbase/commit/a7e6860f Tree: http://git-wip-us.apache.org/repos/asf/hbase/tree/a7e6860f Diff: http://git-wip-us.apache.org/repos/asf/hbase/diff/a7e6860f Branch: refs/heads/0.98 Commit: a7e6860f217ac3fcda396332957d7420ad93050c Parents: c8da394 Author: Sean Busbey <bus...@apache.org> Authored: Tue Aug 2 11:36:51 2016 -0500 Committer: Andrew Purtell <apurt...@apache.org> Committed: Thu Sep 1 14:47:19 2016 -0700 ---------------------------------------------------------------------- pom.xml | 36 +++++++++++++++++++++++++++++++++--- 1 file changed, 33 insertions(+), 3 deletions(-) ---------------------------------------------------------------------- http://git-wip-us.apache.org/repos/asf/hbase/blob/a7e6860f/pom.xml ---------------------------------------------------------------------- diff --git a/pom.xml b/pom.xml index 9f4a332..9c2ae06 100644 --- a/pom.xml +++ b/pom.xml @@ -813,7 +813,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> @@ -839,6 +839,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> @@ -1927,7 +1933,11 @@ <groupId>stax</groupId> <artifactId>stax-api</artifactId> </exclusion> - </exclusions> + <exclusion> + <groupId>xerces</groupId> + <artifactId>xercesImpl</artifactId> + </exclusion> + </exclusions> <version>${hadoop-two.version}</version> </dependency> <dependency> @@ -1948,7 +1958,11 @@ <groupId>stax</groupId> <artifactId>stax-api</artifactId> </exclusion> - </exclusions> + <exclusion> + <groupId>xerces</groupId> + <artifactId>xercesImpl</artifactId> + </exclusion> + </exclusions> </dependency> <dependency> <groupId>org.apache.hadoop</groupId> @@ -2006,11 +2020,16 @@ <groupId>com.google.code.findbugs</groupId> <artifactId>jsr305</artifactId> </exclusion> + <exclusion> + <groupId>xerces</groupId> + <artifactId>xercesImpl</artifactId> + </exclusion> </exclusions> </dependency> </dependencies> </dependencyManagement> </profile> + <!-- profile for building against Hadoop 3.0.0. Activate using: mvn -Dhadoop.profile=3.0 @@ -2039,9 +2058,20 @@ <artifactId>hadoop-minicluster</artifactId> <version>${hadoop.version}</version> <scope>compile</scope> + <exclusions> + <exclusion> + <groupId>com.google.code.findbugs</groupId> + <artifactId>jsr305</artifactId> + </exclusion> + <exclusion> + <groupId>xerces</groupId> + <artifactId>xercesImpl</artifactId> + </exclusion> + </exclusions> </dependency> </dependencies> </profile> + <!-- profiles for the tests See as well the properties of the project for the values when no profile is active. -->