In my application we have bouncy castle dependency is used. I want this dependency to be excluded from the pom.xml file.
Even after removing this dependency from the pom file, it is still appearing in the .m2 repository folder.
While deploying there are two different versions of bcprov ( bcprov-jdk14 and bcprov-jdk15on) dependencies.
I need to exclude both bcprov-jdk14 and bcprov-jdk15on from the pom.xml file.
<dependency>
<groupId>bouncycastle</groupId>
<artifactId>bcprov-jdk14</artifactId>
<version>140</version>
</dependency>
I also tried looking on this link
https://stackoverflow.com/questions/9975167/maven-transitive-dependency-issue but it did not worked for me.
I ran the mvc dependency:tree command and this is the link on the tree output
https://github.com/Wens1/books/blob/main/mavendependencies.txt
Please help how to exclude these dependencies.