title: Maven can't find my offline dependencies / local artifacts ("not available in the local repository")?
body: <p>I'm trying to download all my depenandies and have them available offline, but when I run <code>mvn -o test</code>, it says <code>The repository system is offline but the artifact commons-io:commons-io:jar:2.4 is not available in the local repository</code>. However, I have this package in my <code>~/.m2/repository</code>! </p>
  
  <h1><code>~/.m2/settings.xml</code></h1>
  
  <pre><code>&lt;settings xmlns="http://maven.apache.org/SETTINGS/1.0.0"
    xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
    xsi:schemaLocation="http://maven.apache.org/SETTINGS/1.0.0
                        https://maven.apache.org/xsd/settings-1.0.0.xsd"&gt;
    &lt;localRepository&gt;${user.home}/.m2/repository&lt;/localRepository&gt;
    &lt;interactiveMode&gt;true&lt;/interactiveMode&gt;
    &lt;usePluginRegistry&gt;false&lt;/usePluginRegistry&gt;
    &lt;offline&gt;true&lt;/offline&gt;
  &lt;/settings&gt;
  </code></pre>
  
  <h1><code>ls ~/.m2/repository/commons-io/commons-io/2.4/</code></h1>
  
  <pre><code> _maven.repositories
   commons-io-2.4.jar
   commons-io-2.4.jar.lastUpdated
   commons-io-2.4.jar.sha1
   commons-io-2.4.pom
   commons-io-2.4.pom.sha1
  </code></pre>
  
  <h1>mvn -o test</h1>
  
  <blockquote>
    <p>[ERROR] Failed to execute goal
    com.github.temyers:cucumber-jvm-parallel-plugin:2.0.2:generateRunners
    (generateRunners) on project myproject: Execution
    generateRunners of goal
    com.github.temyers:cucumber-jvm-parallel-plugin:2.0.2:generateRunners
    failed: Plugin com.github.temyers:cucumber-jvm-parallel-plugin:2.0.2
    or one of its dependencies could not be resolved: </p>
    
    <p>The repository
    system is offline but the artifact commons-io:commons-io:jar:2.4 is
    not available in the local repository. -> [Help 1]</p>
  </blockquote>
  
  <h1>The problem</h1>
  
  <p>Basically <strong>maven says I don't have ~/.m2/repository/commons-io/commons-io/2.4/, but I <em>do</em>!</strong> </p>
  
  <p>I tried this:</p>
  
  <pre><code>find ~/.m2/repository -name _maven.repositories -exec rm -v {} \;
  </code></pre>
  
  <p>but after <strong>deleting <code>_maven.repositories</code></strong>, when I ran <code>mvn -o test</code>, <strong>the file came right back</strong>!</p>
  
  <p>I have maven <code>3.0.5</code></p>