title: Maven dependency bcprov issue
body: <p>I have bouncy castle dependency used in my application and I want this dependency to be excluded in the pom.xml file. Even after removing this dependency from the pom file, it is still appearing in the m2 repository folder. My application is a Spring-MVC 5 framework and running on Tomcat version 9. While deploying there are two different versions of &quot;bcprov&quot;. I need to exclude both bcprov-jdk14 and bcprov-jdk15on from the pom.xml file.</p>
  <p>Below is the dependency in the pom file.</p>
  <pre><code>&lt;dependency&gt;
  &lt;groupId&gt;bouncycastle&lt;/groupId&gt;
  &lt;artifactId&gt;bcprov-jdk14&lt;/artifactId&gt;
  &lt;version&gt;140&lt;/version&gt;
  &lt;/dependency&gt; 
  </code></pre>
  <p>I also tried another link for the exclusion but it did not work - <a href="https://stackoverflow.com/questions/9975167/maven-transitive-dependency-issue">Maven Transitive Dependency issue</a></p>
  <p>Please help how to exclude the above dependencies.</p>