I made an EJB 3.0 and a client. This is the pom for my EJB:
<repositories>
<repository>
<id>Jboss</id>
<url>https://repository.jboss.org/nexus/content/repositories/releases/</url>
</repository>
</repositories>
<dependencies>
<dependency>
<groupId>javax</groupId>
<artifactId>javaee-api</artifactId>
<version>6.0</version>
<scope>provided</scope>
</dependency>
<dependency>
<groupId>org.jboss.ejb3</groupId>
<artifactId>jboss-ejb3-ext-api</artifactId>
<version>1.0.0</version>
</dependency>
<dependency>
<groupId>org.jboss.ejb3</groupId>
<artifactId>jboss-ejb3-ext-api-impl</artifactId>
<version>1.0.0</version>
</dependency>
</dependencies>
But jboss-ejb3-ext-api and it s implementation cannot be retrieved :/ eclipse is telling me :
The container Maven Dependencies references non existing library C:usrlocalm2-repositoryorgjbossejb3jboss-ejb3-ext-api1.0.0jboss-ejb3-ext-api-1.0.0.jar MyFirstMavenEjb
In my client I just added "jnp-client", and there is not problem about retrieving this one.
Any idea why I can t retrieve those 2 jars?
Thanks.
EDIT
I need this class: "org.jboss.ejb3.annotation.RemoteBinding" To use the @RemoteBinding.
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
加上以下的排他性解决了这一问题(拒绝提供治标)。
<exclusions>
<exclusion>
<groupId>gnu-getopt</groupId>
<artifactId>getopt</artifactId>
</exclusion>
<exclusion>
<groupId>apache-xerces</groupId>
<artifactId>xml-apis</artifactId>
</exclusion>
<exclusion>
<groupId>apache-xerces</groupId>
<artifactId>xercesImpl</artifactId>
</exclusion>
<exclusion>
<groupId>wutka-dtdparser</groupId>
<artifactId>dtdparser121</artifactId>
</exclusion>
<exclusion>
<groupId>sun-jaxb</groupId>
<artifactId>jaxb-api</artifactId>
</exclusion>
</exclusions>
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.