Skip to content

Commit 74c4eb8

Browse files
committed
Fix failure in precommit checks for Yetus JDK8 Hadoop2 due to missing class SchemaLdifExtractor in ApacheDS 2.0.0.AM26. The issue arises from an overridden ApacheDS version incompatible with Hadoop 2. To resolve, skip LDAP tests for Hadoop 2 and apply dependency changes only for Hadoop 3.
1 parent 42524c2 commit 74c4eb8

File tree

1 file changed

+67
-60
lines changed

1 file changed

+67
-60
lines changed

hbase-http/pom.xml

Lines changed: 67 additions & 60 deletions
Original file line numberDiff line numberDiff line change
@@ -147,60 +147,6 @@
147147
<artifactId>log4j-1.2-api</artifactId>
148148
<scope>test</scope>
149149
</dependency>
150-
<dependency>
151-
<groupId>org.apache.directory.server</groupId>
152-
<artifactId>apacheds-core</artifactId>
153-
<version>${apacheds.version}</version>
154-
<scope>test</scope>
155-
<exclusions>
156-
<exclusion>
157-
<groupId>org.bouncycastle</groupId>
158-
<artifactId>bcprov-jdk15on</artifactId>
159-
</exclusion>
160-
</exclusions>
161-
</dependency>
162-
<dependency>
163-
<groupId>org.apache.directory.server</groupId>
164-
<artifactId>apacheds-protocol-ldap</artifactId>
165-
<version>${apacheds.version}</version>
166-
<scope>test</scope>
167-
<exclusions>
168-
<exclusion>
169-
<groupId>org.bouncycastle</groupId>
170-
<artifactId>bcprov-jdk15on</artifactId>
171-
</exclusion>
172-
</exclusions>
173-
</dependency>
174-
<dependency>
175-
<groupId>org.apache.directory.server</groupId>
176-
<artifactId>apacheds-ldif-partition</artifactId>
177-
<version>${apacheds.version}</version>
178-
<scope>test</scope>
179-
</dependency>
180-
<dependency>
181-
<groupId>org.apache.directory.api</groupId>
182-
<artifactId>api-ldap-codec-core</artifactId>
183-
<version>${ldap-api.version}</version>
184-
<scope>test</scope>
185-
</dependency>
186-
<dependency>
187-
<groupId>org.apache.directory.api</groupId>
188-
<artifactId>api-ldap-model</artifactId>
189-
<version>${ldap-api.version}</version>
190-
<scope>test</scope>
191-
</dependency>
192-
<dependency>
193-
<groupId>org.apache.directory.server</groupId>
194-
<artifactId>apacheds-server-integ</artifactId>
195-
<version>${apacheds.version}</version>
196-
<scope>test</scope>
197-
<exclusions>
198-
<exclusion>
199-
<groupId>log4j</groupId>
200-
<artifactId>log4j</artifactId>
201-
</exclusion>
202-
</exclusions>
203-
</dependency>
204150
</dependencies>
205151

206152
<build>
@@ -411,12 +357,6 @@
411357
<groupId>org.apache.hadoop</groupId>
412358
<artifactId>hadoop-minikdc</artifactId>
413359
<scope>test</scope>
414-
<exclusions>
415-
<exclusion>
416-
<groupId>org.apache.directory.api</groupId>
417-
<artifactId>api-all</artifactId>
418-
</exclusion>
419-
</exclusions>
420360
</dependency>
421361
<dependency>
422362
<groupId>org.apache.kerby</groupId>
@@ -445,6 +385,19 @@
445385
</execution>
446386
</executions>
447387
</plugin>
388+
<plugin>
389+
<groupId>org.apache.maven.plugins</groupId>
390+
<artifactId>maven-compiler-plugin</artifactId>
391+
<configuration>
392+
<!--
393+
Below tests fail with hadoop 2 due to test dependency versioning issues. Hence, skip LDAP tests for Hadoop 2,
394+
see HBASE-28368 for more details!
395+
-->
396+
<testExcludes>
397+
<testExclude>**/org/apache/hadoop/hbase/http/TestLdapHttpServer**</testExclude>
398+
</testExcludes>
399+
</configuration>
400+
</plugin>
448401
</plugins>
449402
</build>
450403
</profile>
@@ -493,6 +446,60 @@
493446
<artifactId>hadoop-minikdc</artifactId>
494447
<scope>test</scope>
495448
</dependency>
449+
<dependency>
450+
<groupId>org.apache.directory.server</groupId>
451+
<artifactId>apacheds-core</artifactId>
452+
<version>${apacheds.version}</version>
453+
<scope>test</scope>
454+
<exclusions>
455+
<exclusion>
456+
<groupId>org.bouncycastle</groupId>
457+
<artifactId>bcprov-jdk15on</artifactId>
458+
</exclusion>
459+
</exclusions>
460+
</dependency>
461+
<dependency>
462+
<groupId>org.apache.directory.server</groupId>
463+
<artifactId>apacheds-protocol-ldap</artifactId>
464+
<version>${apacheds.version}</version>
465+
<scope>test</scope>
466+
<exclusions>
467+
<exclusion>
468+
<groupId>org.bouncycastle</groupId>
469+
<artifactId>bcprov-jdk15on</artifactId>
470+
</exclusion>
471+
</exclusions>
472+
</dependency>
473+
<dependency>
474+
<groupId>org.apache.directory.server</groupId>
475+
<artifactId>apacheds-ldif-partition</artifactId>
476+
<version>${apacheds.version}</version>
477+
<scope>test</scope>
478+
</dependency>
479+
<dependency>
480+
<groupId>org.apache.directory.api</groupId>
481+
<artifactId>api-ldap-codec-core</artifactId>
482+
<version>${ldap-api.version}</version>
483+
<scope>test</scope>
484+
</dependency>
485+
<dependency>
486+
<groupId>org.apache.directory.api</groupId>
487+
<artifactId>api-ldap-model</artifactId>
488+
<version>${ldap-api.version}</version>
489+
<scope>test</scope>
490+
</dependency>
491+
<dependency>
492+
<groupId>org.apache.directory.server</groupId>
493+
<artifactId>apacheds-server-integ</artifactId>
494+
<version>${apacheds.version}</version>
495+
<scope>test</scope>
496+
<exclusions>
497+
<exclusion>
498+
<groupId>log4j</groupId>
499+
<artifactId>log4j</artifactId>
500+
</exclusion>
501+
</exclusions>
502+
</dependency>
496503
</dependencies>
497504
<build>
498505
<plugins>

0 commit comments

Comments
 (0)