Required Banks for RestEasy Client

I need to provide a REST java client that should contain all the necessary banks in one set. I chose RestEasy as the REST framework since the server application is running on JBoss.

Almost all the examples that I have found so far use either the application container environment where these libs are provided, and therefore only Java EE APIs are required during compilation or assembly with Maven, and therefore dependencies are resolved automatically, which may be a good idea and current the standard way to do this, but for reasons related to the project, I need banks in the lib folder and they can be included during assembly and in the executable jar.

So my question is which banks are needed to create a simple client that can do something like this:

ResteasyClient client = new ResteasyClientBuilder().build();
ResteasyWebTarget target = client.target(myURL).queryParam("param",
                "value");
Builder builder = target.request(MediaType.APPLICATION_JSON).header("user", "abc");
Invocation invocation = builder.buildGet();
MyResponseObject response = invocation.invoke(MyResponseObject .class);
+4
source share
2 answers

The easiest way is to use Maven . The reason I say this is because the artifact is the main artifact resteasy-client, but this artifact has dependencies on other artifacts. If I create a new Maven project, add only this dependency

<dependency>
    <groupId>org.jboss.resteasy</groupId>
    <artifactId>resteasy-client</artifactId>
    <version>3.0.9.Final</version>
</dependency>

The project will involve all these artifacts.

enter image description here

Maven, restaasy . , , , , , , , .. , . , . , lib.

, , , , JSON- Java-, resteasy-jackson2-provider. , , ,

enter image description here

, . , JAXB ( XML JSON) - jackson-module-jaxb-annotations, JAXB, resteasy-jaxb-provider, . , , jackson2-provider. , jaxb-prodiver,

enter image description here

,

+11

maven , dependency:tree, . , RestEasy, .

+2

All Articles