title: is there a way to override version of 'provided' maven dependency?
body: <p>I have a maven project. When I deploy it - the environment (where I deploy it) adds a jar (of dep A) with version 1 to the classpath. Also, I have this dep A with ver 1 in project's pom with provided mvn scope. But I need to use dep A with ver 2 - is there any way to specify this in my pom and force the project to use classes from ver 2 (but not 1)?</p>
  <p>As far as I understand I cannot exclude provided jar, so if I just add dep A with ver 2 to pom there will be 2 jars in classpath (ver1,ver2) and dep conflict.</p>
  <p>Java 8, mvn 3.5</p>