Skip to content

Commit aacc9da

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 39c68df commit aacc9da

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
@@ -160,60 +160,6 @@
160160
<artifactId>log4j-1.2-api</artifactId>
161161
<scope>test</scope>
162162
</dependency>
163-
<dependency>
164-
<groupId>org.apache.directory.server</groupId>
165-
<artifactId>apacheds-core</artifactId>
166-
<version>${apacheds.version}</version>
167-
<scope>test</scope>
168-
<exclusions>
169-
<exclusion>
170-
<groupId>org.bouncycastle</groupId>
171-
<artifactId>bcprov-jdk15on</artifactId>
172-
</exclusion>
173-
</exclusions>
174-
</dependency>
175-
<dependency>
176-
<groupId>org.apache.directory.server</groupId>
177-
<artifactId>apacheds-protocol-ldap</artifactId>
178-
<version>${apacheds.version}</version>
179-
<scope>test</scope>
180-
<exclusions>
181-
<exclusion>
182-
<groupId>org.bouncycastle</groupId>
183-
<artifactId>bcprov-jdk15on</artifactId>
184-
</exclusion>
185-
</exclusions>
186-
</dependency>
187-
<dependency>
188-
<groupId>org.apache.directory.server</groupId>
189-
<artifactId>apacheds-ldif-partition</artifactId>
190-
<version>${apacheds.version}</version>
191-
<scope>test</scope>
192-
</dependency>
193-
<dependency>
194-
<groupId>org.apache.directory.api</groupId>
195-
<artifactId>api-ldap-codec-core</artifactId>
196-
<version>${ldap-api.version}</version>
197-
<scope>test</scope>
198-
</dependency>
199-
<dependency>
200-
<groupId>org.apache.directory.api</groupId>
201-
<artifactId>api-ldap-model</artifactId>
202-
<version>${ldap-api.version}</version>
203-
<scope>test</scope>
204-
</dependency>
205-
<dependency>
206-
<groupId>org.apache.directory.server</groupId>
207-
<artifactId>apacheds-server-integ</artifactId>
208-
<version>${apacheds.version}</version>
209-
<scope>test</scope>
210-
<exclusions>
211-
<exclusion>
212-
<groupId>log4j</groupId>
213-
<artifactId>log4j</artifactId>
214-
</exclusion>
215-
</exclusions>
216-
</dependency>
217163
</dependencies>
218164

219165
<build>
@@ -424,12 +370,6 @@
424370
<groupId>org.apache.hadoop</groupId>
425371
<artifactId>hadoop-minikdc</artifactId>
426372
<scope>test</scope>
427-
<exclusions>
428-
<exclusion>
429-
<groupId>org.apache.directory.api</groupId>
430-
<artifactId>api-all</artifactId>
431-
</exclusion>
432-
</exclusions>
433373
</dependency>
434374
<dependency>
435375
<groupId>org.apache.kerby</groupId>
@@ -458,6 +398,19 @@
458398
</execution>
459399
</executions>
460400
</plugin>
401+
<plugin>
402+
<groupId>org.apache.maven.plugins</groupId>
403+
<artifactId>maven-compiler-plugin</artifactId>
404+
<configuration>
405+
<!--
406+
Below tests fail with hadoop 2 due to test dependency versioning issues. Hence, skip LDAP tests for Hadoop 2,
407+
see HBASE-28368 for more details!
408+
-->
409+
<testExcludes>
410+
<testExclude>**/org/apache/hadoop/hbase/http/TestLdapHttpServer**</testExclude>
411+
</testExcludes>
412+
</configuration>
413+
</plugin>
461414
</plugins>
462415
</build>
463416
</profile>
@@ -506,6 +459,60 @@
506459
<artifactId>hadoop-minikdc</artifactId>
507460
<scope>test</scope>
508461
</dependency>
462+
<dependency>
463+
<groupId>org.apache.directory.server</groupId>
464+
<artifactId>apacheds-core</artifactId>
465+
<version>${apacheds.version}</version>
466+
<scope>test</scope>
467+
<exclusions>
468+
<exclusion>
469+
<groupId>org.bouncycastle</groupId>
470+
<artifactId>bcprov-jdk15on</artifactId>
471+
</exclusion>
472+
</exclusions>
473+
</dependency>
474+
<dependency>
475+
<groupId>org.apache.directory.server</groupId>
476+
<artifactId>apacheds-protocol-ldap</artifactId>
477+
<version>${apacheds.version}</version>
478+
<scope>test</scope>
479+
<exclusions>
480+
<exclusion>
481+
<groupId>org.bouncycastle</groupId>
482+
<artifactId>bcprov-jdk15on</artifactId>
483+
</exclusion>
484+
</exclusions>
485+
</dependency>
486+
<dependency>
487+
<groupId>org.apache.directory.server</groupId>
488+
<artifactId>apacheds-ldif-partition</artifactId>
489+
<version>${apacheds.version}</version>
490+
<scope>test</scope>
491+
</dependency>
492+
<dependency>
493+
<groupId>org.apache.directory.api</groupId>
494+
<artifactId>api-ldap-codec-core</artifactId>
495+
<version>${ldap-api.version}</version>
496+
<scope>test</scope>
497+
</dependency>
498+
<dependency>
499+
<groupId>org.apache.directory.api</groupId>
500+
<artifactId>api-ldap-model</artifactId>
501+
<version>${ldap-api.version}</version>
502+
<scope>test</scope>
503+
</dependency>
504+
<dependency>
505+
<groupId>org.apache.directory.server</groupId>
506+
<artifactId>apacheds-server-integ</artifactId>
507+
<version>${apacheds.version}</version>
508+
<scope>test</scope>
509+
<exclusions>
510+
<exclusion>
511+
<groupId>log4j</groupId>
512+
<artifactId>log4j</artifactId>
513+
</exclusion>
514+
</exclusions>
515+
</dependency>
509516
</dependencies>
510517
<build>
511518
<plugins>

0 commit comments

Comments
 (0)