Skip to content

Commit 0a384a0

Browse files
authored
HDDS-14881. Exclude dependencies for test-jar (apache#9970)
1 parent 7ee78a2 commit 0a384a0

File tree

3 files changed

+128
-46
lines changed

3 files changed

+128
-46
lines changed

hadoop-ozone/httpfsgateway/pom.xml

Lines changed: 0 additions & 32 deletions
Original file line numberDiff line numberDiff line change
@@ -115,38 +115,6 @@
115115
<groupId>org.apache.curator</groupId>
116116
<artifactId>curator-framework</artifactId>
117117
<scope>runtime</scope>
118-
<!-- These were excluded as non of them is used in the HttpFS module, but all of them would be a new unnecessary
119-
dependency to the Ozone project, we would also need to update the jar-report.txt with that. -->
120-
<exclusions>
121-
<exclusion>
122-
<groupId>com.sun.mail</groupId>
123-
<artifactId>javax.mail</artifactId>
124-
</exclusion>
125-
<exclusion>
126-
<groupId>io.netty</groupId>
127-
<artifactId>*</artifactId>
128-
</exclusion>
129-
<exclusion>
130-
<groupId>jline</groupId>
131-
<artifactId>jline</artifactId>
132-
</exclusion>
133-
<exclusion>
134-
<groupId>log4j</groupId>
135-
<artifactId>log4j</artifactId>
136-
</exclusion>
137-
<exclusion>
138-
<groupId>org.apache.commons</groupId>
139-
<artifactId>commons-math</artifactId>
140-
</exclusion>
141-
<exclusion>
142-
<groupId>org.apache.yetus</groupId>
143-
<artifactId>audience-annotations</artifactId>
144-
</exclusion>
145-
<exclusion>
146-
<groupId>org.slf4j</groupId>
147-
<artifactId>slf4j-log4j12</artifactId>
148-
</exclusion>
149-
</exclusions>
150118
</dependency>
151119
<dependency>
152120
<groupId>org.apache.ozone</groupId>

hadoop-ozone/integration-test/pom.xml

Lines changed: 6 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -116,6 +116,12 @@
116116
<artifactId>commons-text</artifactId>
117117
<scope>test</scope>
118118
</dependency>
119+
<dependency>
120+
<!-- needed for MiniKMS -->
121+
<groupId>org.apache.curator</groupId>
122+
<artifactId>curator-framework</artifactId>
123+
<scope>test</scope>
124+
</dependency>
119125
<dependency>
120126
<groupId>org.apache.hadoop</groupId>
121127
<artifactId>hadoop-auth</artifactId>
@@ -235,20 +241,6 @@
235241
<groupId>org.apache.hadoop</groupId>
236242
<artifactId>hadoop-mapreduce-client-jobclient</artifactId>
237243
<scope>test</scope>
238-
<exclusions>
239-
<exclusion>
240-
<groupId>ch.qos.reload4j</groupId>
241-
<artifactId>reload4j</artifactId>
242-
</exclusion>
243-
<exclusion>
244-
<groupId>log4j</groupId>
245-
<artifactId>log4j</artifactId>
246-
</exclusion>
247-
<exclusion>
248-
<groupId>org.slf4j</groupId>
249-
<artifactId>*</artifactId>
250-
</exclusion>
251-
</exclusions>
252244
</dependency>
253245
<dependency>
254246
<groupId>org.apache.hadoop</groupId>

pom.xml

Lines changed: 122 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -743,6 +743,36 @@
743743
<groupId>org.apache.curator</groupId>
744744
<artifactId>curator-framework</artifactId>
745745
<version>${curator.version}</version>
746+
<exclusions>
747+
<exclusion>
748+
<groupId>com.sun.mail</groupId>
749+
<artifactId>javax.mail</artifactId>
750+
</exclusion>
751+
<exclusion>
752+
<groupId>io.netty</groupId>
753+
<artifactId>*</artifactId>
754+
</exclusion>
755+
<exclusion>
756+
<groupId>jline</groupId>
757+
<artifactId>jline</artifactId>
758+
</exclusion>
759+
<exclusion>
760+
<groupId>log4j</groupId>
761+
<artifactId>log4j</artifactId>
762+
</exclusion>
763+
<exclusion>
764+
<groupId>org.apache.commons</groupId>
765+
<artifactId>commons-math</artifactId>
766+
</exclusion>
767+
<exclusion>
768+
<groupId>org.apache.yetus</groupId>
769+
<artifactId>audience-annotations</artifactId>
770+
</exclusion>
771+
<exclusion>
772+
<groupId>org.slf4j</groupId>
773+
<artifactId>slf4j-log4j12</artifactId>
774+
</exclusion>
775+
</exclusions>
746776
</dependency>
747777
<dependency>
748778
<groupId>org.apache.derby</groupId>
@@ -875,11 +905,39 @@
875905
<version>${hadoop.version}</version>
876906
<type>test-jar</type>
877907
<exclusions>
908+
<exclusion>
909+
<groupId>com.github.pjfanning</groupId>
910+
<artifactId>jersey-json</artifactId>
911+
</exclusion>
912+
<exclusion>
913+
<groupId>com.google.code.findbugs</groupId>
914+
<artifactId>jsr305</artifactId>
915+
</exclusion>
916+
<exclusion>
917+
<groupId>com.sun.jersey</groupId>
918+
<artifactId>*</artifactId>
919+
</exclusion>
878920
<exclusion>
879921
<!-- depend on jcl-over-slf4j instead -->
880922
<groupId>commons-logging</groupId>
881923
<artifactId>commons-logging</artifactId>
882924
</exclusion>
925+
<exclusion>
926+
<groupId>org.apache.commons</groupId>
927+
<artifactId>commons-math3</artifactId>
928+
</exclusion>
929+
<exclusion>
930+
<groupId>org.apache.curator</groupId>
931+
<artifactId>*</artifactId>
932+
</exclusion>
933+
<exclusion>
934+
<groupId>org.apache.zookeeper</groupId>
935+
<artifactId>zookeeper</artifactId>
936+
</exclusion>
937+
<exclusion>
938+
<groupId>org.xerial.snappy</groupId>
939+
<artifactId>snappy-java</artifactId>
940+
</exclusion>
883941
</exclusions>
884942
</dependency>
885943
<dependency>
@@ -933,6 +991,24 @@
933991
<artifactId>hadoop-hdfs</artifactId>
934992
<version>${hadoop.version}</version>
935993
<type>test-jar</type>
994+
<exclusions>
995+
<exclusion>
996+
<groupId>com.sun.jersey</groupId>
997+
<artifactId>*</artifactId>
998+
</exclusion>
999+
<exclusion>
1000+
<groupId>commons-daemon</groupId>
1001+
<artifactId>commons-daemon</artifactId>
1002+
</exclusion>
1003+
<exclusion>
1004+
<groupId>io.netty</groupId>
1005+
<artifactId>*</artifactId>
1006+
</exclusion>
1007+
<exclusion>
1008+
<groupId>org.fusesource.leveldbjni</groupId>
1009+
<artifactId>leveldbjni-all</artifactId>
1010+
</exclusion>
1011+
</exclusions>
9361012
</dependency>
9371013
<dependency>
9381014
<groupId>org.apache.hadoop</groupId>
@@ -954,16 +1030,62 @@
9541030
<groupId>org.apache.hadoop</groupId>
9551031
<artifactId>hadoop-mapreduce-client-core</artifactId>
9561032
<version>${hadoop.version}</version>
1033+
<exclusions>
1034+
<exclusion>
1035+
<groupId>ch.qos.reload4j</groupId>
1036+
<artifactId>reload4j</artifactId>
1037+
</exclusion>
1038+
<exclusion>
1039+
<groupId>com.google.inject.extensions</groupId>
1040+
<artifactId>guice-servlet</artifactId>
1041+
</exclusion>
1042+
<exclusion>
1043+
<groupId>io.netty</groupId>
1044+
<artifactId>*</artifactId>
1045+
</exclusion>
1046+
<exclusion>
1047+
<groupId>log4j</groupId>
1048+
<artifactId>log4j</artifactId>
1049+
</exclusion>
1050+
<exclusion>
1051+
<groupId>org.apache.avro</groupId>
1052+
<artifactId>avro</artifactId>
1053+
</exclusion>
1054+
<exclusion>
1055+
<groupId>org.slf4j</groupId>
1056+
<artifactId>*</artifactId>
1057+
</exclusion>
1058+
</exclusions>
9571059
</dependency>
9581060
<dependency>
9591061
<groupId>org.apache.hadoop</groupId>
9601062
<artifactId>hadoop-mapreduce-client-jobclient</artifactId>
9611063
<version>${hadoop.version}</version>
1064+
<exclusions>
1065+
<exclusion>
1066+
<groupId>com.google.inject.extensions</groupId>
1067+
<artifactId>guice-servlet</artifactId>
1068+
</exclusion>
1069+
<exclusion>
1070+
<groupId>io.netty</groupId>
1071+
<artifactId>*</artifactId>
1072+
</exclusion>
1073+
<exclusion>
1074+
<groupId>org.apache.avro</groupId>
1075+
<artifactId>avro</artifactId>
1076+
</exclusion>
1077+
</exclusions>
9621078
</dependency>
9631079
<dependency>
9641080
<groupId>org.apache.hadoop</groupId>
9651081
<artifactId>hadoop-minikdc</artifactId>
9661082
<version>${hadoop.version}</version>
1083+
<exclusions>
1084+
<exclusion>
1085+
<groupId>junit</groupId>
1086+
<artifactId>junit</artifactId>
1087+
</exclusion>
1088+
</exclusions>
9671089
</dependency>
9681090
<dependency>
9691091
<groupId>org.apache.hadoop</groupId>

0 commit comments

Comments
 (0)