ICEpdf Core has duplicate classes

maven
bug
mavendependency
#1

Hello,

I am using ICEpdf for my plugin, but mvn validate will complain about duplicate classes in org.bouncycastle.bcprov-jdk15on and org.bouncycastle.bcprov-ext-jdk15on.

According to this topic, only bcprov-jdk15on should be sufficient.

Manually removing bcprov-ext-jdk15on from the icepdf-core POM solved the issue for me and did not cause any problems so far.

Can somebody please look into this?

Thank you!

Edit: If somebody has has this problem, you need to exclude the duplicate classes in both core and viewer:

<dependency>
	<groupId>org.icepdf.os</groupId>
	<artifactId>icepdf-core</artifactId>
	<version>6.2.2</version>
	<exclusions>
		<exclusion>
			<groupId>org.bouncycastle</groupId>
			<artifactId>bcprov-ext-jdk15on</artifactId>
		</exclusion>
	</exclusions>
</dependency>
<dependency>
	<groupId>org.icepdf.os</groupId>
	<artifactId>icepdf-viewer</artifactId>
	<version>6.2.2</version>
	<exclusions>
		<exclusion>
			<groupId>org.bouncycastle</groupId>
			<artifactId>bcprov-ext-jdk15on</artifactId>
		</exclusion>
	</exclusions>
</dependency>
0 Likes