title: What does it mean in Maven when it says the following artifacts could not be resolved although they are in Maven cache?
body: <p>I get the following error:</p>
  
  <p>The following artifacts could not be resolved: com.sun.jdmk:jmxtools:jar:1.2.1, com.sun.jmx:jmxri:jar:1.2.1: Failure to find com.sun.jdmk:jmxtools:jar:1.2.1 in <a href="https://artifactory.corp.adobe.com/artifactory/maven-identity-snapshot" rel="nofollow noreferrer">https://artifactory.corp.adobe.com/artifactory/maven-identity-snapshot</a> was cached in the local repository, resolution will not be reattempted until the update interval of artifactory-snapshot</p>
  
  <p>However, both jars are in the Maven cache (.m2 folder) on my machine. I mean files named: jmxri-1.2.1.jar and jmxtools-1.2.1.jar. They are respectively in the folders com/sun/jmdk/jmxtools/1.2.1/ and com/sun/jmx/jmxri/1.2.1</p>
  
  <p>EDIT: When I try the -o switch on Maven to force it to use the local jars, it says the artifact has not been downloaded before. Which is probably true since indeed the artifact is not in the repo but was copied from some other place to my Maven cache -- is it possible to force Maven to use the jars? The -o switch does not seem to force this and Maven seems to be able to detect that the artifact was not downloaded.</p>