Search code examples
eclipsemavenm2eclipse

Is there a reason why the Eclipse build cannot find a Maven lib


Is there a reason why eclipse can't find this lib when it is added in Maven dependency with success.

Is there an error here ?

enter image description here

This is the Maven dependency:

<dependency>
    <groupId>org.jboss.resteasy</groupId>
    <artifactId>resteasy-jackson-provider</artifactId>
    <version>2.3.1.GA</version>
</dependency>

Solution

  • The dependency mentioned is not the correct dependency since it is not the artifact of the RESTEasy JAX RS Implementation. Therefore it neither contains org.jboss.resteasy.ClientRequest nor org.jboss.resteasy.ClientResponse.

    In order to have access to the required classes, the dependency ought to be used is the following:

    <dependency>
        <groupId>org.jboss.resteasy</groupId>
        <artifactId>resteasy-jaxrs</artifactId>
        <version>${resteasy.version}</version>
    </dependency>