Skip to content

Commit b3f5759

Browse files
authored
Include bcutil-jdk18on.jar into the dependencies. (#127)
When use Instance Principal Auth to run functional test(nosql-drvier 5.4.15), got java.lang.NoClassDefFoundError: org/bouncycastle/asn1/oiw/OIWObjectIdentifiers error, and the nosql-drvier 5.4.15 uses bouncycastle 1.78. Bouncycastle has changed the packaging since 1.78, the org/bouncycastle/asn1/*.class are moved to bcutil-jdk18on.jar, so need include bcutil-jdk18on.jar into the dependencies of nosql driver. In driver/pom.xml, all the dependencies of bcprov-jdk18on and bcpkix-jdk18on are explicitly excluded, and the bcutil-jdk18on is dependency for test scope only. The bcutil-jdk18on and bcprov-jdk18on are only dependencies of bcpkix-jdk18on, and no dependency for bcprov-jdk18on. So to fix it, simply remove the dependency exclusions of bcpkix-jdk18on and bcprov-jdk18on, and also remove dependency of bcutil-jdk18on for test, then the bcutil-jdk18on will be included into dependencies.
1 parent a9c7f51 commit b3f5759

File tree

1 file changed

+0
-22
lines changed

1 file changed

+0
-22
lines changed

driver/pom.xml

Lines changed: 0 additions & 22 deletions
Original file line numberDiff line numberDiff line change
@@ -192,24 +192,12 @@
192192
<groupId>org.bouncycastle</groupId>
193193
<artifactId>bcprov-jdk18on</artifactId>
194194
<version>${bouncy.version}</version>
195-
<exclusions>
196-
<exclusion>
197-
<groupId>*</groupId>
198-
<artifactId>*</artifactId>
199-
</exclusion>
200-
</exclusions>
201195
</dependency>
202196

203197
<dependency>
204198
<groupId>org.bouncycastle</groupId>
205199
<artifactId>bcpkix-jdk18on</artifactId>
206200
<version>${bouncy.version}</version>
207-
<exclusions>
208-
<exclusion>
209-
<groupId>*</groupId>
210-
<artifactId>*</artifactId>
211-
</exclusion>
212-
</exclusions>
213201
</dependency>
214202

215203
<!-- test -->
@@ -220,16 +208,6 @@
220208
<scope>test</scope>
221209
</dependency>
222210

223-
<!-- IAM unit tests only - Bouncycastle has changed
224-
the packaging since 1.69, classes needed by test
225-
has been moved to bcutil-jdk18on.
226-
-->
227-
<dependency>
228-
<groupId>org.bouncycastle</groupId>
229-
<artifactId>bcutil-jdk18on</artifactId>
230-
<version>${bouncy.version}</version>
231-
<scope>test</scope>
232-
</dependency>
233211
</dependencies>
234212

235213
<build>

0 commit comments

Comments
 (0)