title: can't add maven dependency - apache poi
body: <p>I created this maven project in Eclipse on my mac. The following two artifacts are in my pom. No problem on MAC.</p>
  
  <pre><code>&lt;dependency&gt;
      &lt;groupId&gt;org.apache.poi&lt;/groupId&gt;
      &lt;artifactId&gt;poi&lt;/artifactId&gt;
      &lt;version&gt;3.14&lt;/version&gt;
  &lt;/dependency&gt;
  &lt;dependency&gt;
      &lt;groupId&gt;org.apache.poi&lt;/groupId&gt;
      &lt;artifactId&gt;poi-ooxml&lt;/artifactId&gt;
      &lt;version&gt;3.14&lt;/version&gt;
  &lt;/dependency&gt;
  </code></pre>
  
  <p>However when I recently moved the code to Eclipse on my PC I got this weird error "Missing artifact org.apache.poi:poi:jar:3.14". And it points to both the dependency block and the first line of pom (see screenshot) <a href="https://i.stack.imgur.com/ztuUP.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/ztuUP.png" alt="enter image description here"></a>. Updated project many times and it did not help. </p>
  
  <p>I have set up two repositories, one public and one institutional.</p>
  
  <pre><code>  &lt;repositories&gt;
      &lt;repository&gt;
          &lt;id&gt;JBoss repository&lt;/id&gt;
          &lt;url&gt;http://repository.jboss.org/nexus/content/groups/public/&lt;/url&gt;
      &lt;/repository&gt;
      &lt;repository&gt;
          &lt;snapshots&gt;
              &lt;enabled&gt;false&lt;/enabled&gt;
          &lt;/snapshots&gt;
          &lt;id&gt;central&lt;/id&gt;
          &lt;name&gt;repo&lt;/name&gt;
          &lt;url&gt;http://risdevtool01p.mdanderson.edu:8081/artifactory/repo&lt;/url&gt;
      &lt;/repository&gt;
    &lt;/repositories&gt;
  </code></pre>
  
  <p>When I do "mvn clean install -U", it looks like it is trying to download poi and poi-ooxml from two different repositories.</p>
  
  <pre><code>Downloading:http://repository.jboss.org/nexus/content/groups/public/org/apache/poi/poi-ooxml-schemas/3.14/poi-ooxml-schemas-3.14.jar
  Downloading: http://repository.jboss.org/nexus/content/groups/public/org/apache/poi/poi/3.14/poi-3.14.jar
  Downloading: http://risdevtool01p.mdanderson.edu:8081/artifactory/repo/org/apache/poi/poi/3.14/poi-3.14.jar
  Downloading: http://risdevtool01p.mdanderson.edu:8081/artifactory/repo/org/apache/poi/poi-ooxml-schemas/3.14/poi-ooxml-schemas-3.14.jar
  </code></pre>