How to differentiate between jars of same version present in local maven repo and artifactory.
Say for example sample-1.0.jar is present in local maven repository and also the same resides in artifactory but with latest code.
I need the jar(with latest code) from artifactory during maven build.(without clearing the local repo)