title: How to say to Maven which dependency to use
body: <p>Right now I'm migrating legacy project from Spring 1 to bigger version (yeah I know it's 2017). The project has 1 dependency which contains a lot of spring/ibatis dependencies. One of ibatis dependency is version 2.1.6 but migrating spring requires bigger version(2.3.4) I put the new dependency in my pom but maven keeps using the old one. I know that it's not soo good to have 2 different version in the project and the main goal for me is to remove the old big dependency but right now I want to start the project with the new one without removing the old one. </p>
  
  <p>How to tell maven which dependency to use and how to ignore the other one? If this is not possible tell me how to migrate easily.</p>
  
  <p>Thank you.</p>