Skip to content

Commit a246750

Browse files
committed
client: exclude jdk15on BouncyCastle artifacts from the shaded jar
The client shade config only excluded the jdk18on BouncyCastle artifacts, which are shipped as separate jars in the management server lib folder. If a stale or transitive dependency pulls in bcprov/bcpkix/bctls-jdk15on, the old classes are bundled into the fat jar and can shadow bcprov-jdk18on depending on the classpath order of lib/*, failing with NoSuchFieldError (e.g. xmss_SHAKE128_512ph) when the root CA module starts.
1 parent 1325b34 commit a246750

1 file changed

Lines changed: 4 additions & 0 deletions

File tree

‎client/pom.xml‎

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -979,6 +979,10 @@
979979
<exclude>org.bouncycastle:bcprov-jdk18on</exclude>
980980
<exclude>org.bouncycastle:bcpkix-jdk18on</exclude>
981981
<exclude>org.bouncycastle:bctls-jdk18on</exclude>
982+
<exclude>org.bouncycastle:bcprov-jdk15on</exclude>
983+
<exclude>org.bouncycastle:bcpkix-jdk15on</exclude>
984+
<exclude>org.bouncycastle:bctls-jdk15on</exclude>
985+
<exclude>org.bouncycastle:bcutil-jdk15on</exclude>
982986
<exclude>com.mysql:mysql-connector-j</exclude>
983987
<exclude>org.apache.cloudstack:cloud-plugin-storage-volume-storpool</exclude>
984988
<exclude>org.apache.cloudstack:cloud-plugin-storage-volume-linstor</exclude>

0 commit comments

Comments
 (0)