title: Cannot retrieve dependency from Jboss repository
body: <p>I made an EJB 3.0 and a client.
  This is the pom for my EJB:</p>
  
  <pre><code>  &lt;repositories&gt;
      &lt;repository&gt;
        &lt;id&gt;Jboss&lt;/id&gt;
        &lt;url&gt;https://repository.jboss.org/nexus/content/repositories/releases/&lt;/url&gt;
      &lt;/repository&gt;
    &lt;/repositories&gt;
    &lt;dependencies&gt;
      &lt;dependency&gt;
        &lt;groupId&gt;javax&lt;/groupId&gt;
        &lt;artifactId&gt;javaee-api&lt;/artifactId&gt;
        &lt;version&gt;6.0&lt;/version&gt;
        &lt;scope&gt;provided&lt;/scope&gt;
      &lt;/dependency&gt;
      &lt;dependency&gt;
        &lt;groupId&gt;org.jboss.ejb3&lt;/groupId&gt;
        &lt;artifactId&gt;jboss-ejb3-ext-api&lt;/artifactId&gt;
        &lt;version&gt;1.0.0&lt;/version&gt;
      &lt;/dependency&gt;
      &lt;dependency&gt;
        &lt;groupId&gt;org.jboss.ejb3&lt;/groupId&gt;
        &lt;artifactId&gt;jboss-ejb3-ext-api-impl&lt;/artifactId&gt;
        &lt;version&gt;1.0.0&lt;/version&gt;
      &lt;/dependency&gt;
    &lt;/dependencies&gt;
  </code></pre>
  
  <p>But jboss-ejb3-ext-api and it's implementation cannot be retrieved :/
  eclipse is telling me :</p>
  
  <blockquote>
    <p>The container 'Maven Dependencies' references non existing library
    'C:\usr\local\m2-repository\org\jboss\ejb3\jboss-ejb3-ext-api\1.0.0\jboss-ejb3-ext-api-1.0.0.jar' MyFirstMavenEjb</p>
  </blockquote>
  
  <p>In my client I just added "jnp-client", and there is not problem about retrieving this one.<br>
  Any idea why I can't retrieve those 2 jars?<br>
  Thanks.</p>
  
  <p>EDIT<br>
  I need this class: "org.jboss.ejb3.annotation.RemoteBinding" To use the @RemoteBinding.</p>
  
  <p>Edit 2 : solution
  after doing some "mvn clean install" in cmd I saw that maven was trying to download some transitie dependency..... 
  FROM THE OLD JBOSS REPO. since it was denied acces it just stopped before downloading the final .jar</p>
  
  <p><img src="https://i.stack.imgur.com/1wnG4.png" alt="forbidden acces to old repo"></p>
  
  <p>Adding the following exlusions solved the problem (the jar wich acces is being denied)</p>
  
  <pre><code>&lt;exclusions&gt;
  &lt;exclusion&gt;
  &lt;groupId&gt;gnu-getopt&lt;/groupId&gt;
  &lt;artifactId&gt;getopt&lt;/artifactId&gt;
  &lt;/exclusion&gt;
  &lt;exclusion&gt;
  &lt;groupId&gt;apache-xerces&lt;/groupId&gt;
  &lt;artifactId&gt;xml-apis&lt;/artifactId&gt;
  &lt;/exclusion&gt;
  &lt;exclusion&gt;
  &lt;groupId&gt;apache-xerces&lt;/groupId&gt;
  &lt;artifactId&gt;xercesImpl&lt;/artifactId&gt;
  &lt;/exclusion&gt;
  &lt;exclusion&gt;
  &lt;groupId&gt;wutka-dtdparser&lt;/groupId&gt;
  &lt;artifactId&gt;dtdparser121&lt;/artifactId&gt;
  &lt;/exclusion&gt;
  &lt;exclusion&gt;
  &lt;groupId&gt;sun-jaxb&lt;/groupId&gt;
  &lt;artifactId&gt;jaxb-api&lt;/artifactId&gt;
  &lt;/exclusion&gt;
  &lt;/exclusions&gt;
  </code></pre>
  
  <p>However isn't there a better solution?
  I'm guessing that it's trying to get stuff from the old repo because this jar is not used anymore and a new one must be popular.</p>