title: Maven uses class from wrong Library
body: <p>i am currently working on a Maven project with alot external Libraries. Now i have following Issue...</p>
  <p><strong>Issue:</strong> I have two different Libraries(lets say <strong>Library A &amp; Library B</strong>) and both have a class(lets name the class <strong>abc.class</strong>) with the same classname but the classes dont have the same Implementation! Now one of my testclasses uses <em>abc.class</em> from <em>Library A</em>, which is the wrong class/library. This testclass should use <em>abc.class</em> from <em>Library B</em>. I cant just delete the Library A because i needed also for other testclasses.</p>
  <p><strong>My SetUp:</strong></p>
  <ul>
  <li>Maven: apache-maven-3.6.1</li>
  <li>Java: jdk11</li>
  <li>IDE: IntelliJ</li>
  </ul>
  <p><strong>My Question:</strong> Is there a way to pin diffrent Libraries for specific classes? So i could pin the <em>Library B</em> to my failing testclass, so it can use the right Library and the right implementation for the <strong>abc.class</strong>.</p>
  <p>In the best case, i would like to fix it in the POM :)<br />
  Pls let me know if its somehow possible.</p>