# How to create and use RestClient with EHRBase SDK in my Maven project? **Category:** [Platform](https://discourse.openehr.org/c/platform-implem/7) **Created:** 2024-09-04 08:40 UTC **Views:** 134 **Replies:** 3 **URL:** https://discourse.openehr.org/t/how-to-create-and-use-restclient-with-ehrbase-sdk-in-my-maven-project/5657 --- ## Post #1 by @linforest How to create and use RestClient with EHRBase SDK in my Maven project? Specifically, how to specify the dependencies in the pom.xml? OR, should I build the SDK jar(s) locally or download them from a repo such as [jitpack.io](https://jitpack.io/#ehrbase/openEHR_SDK), then add them to my project's Build Path? For example, I want to get the following Java code working: ``` DefaultRestClient client = new DefaultRestClient( new OpenEhrClientConfig(new URI("http://localhost:8080/ehrbase/")), templateProvider); ``` **Snippet source**: [ EHRBase Documentation: 4.2.1.1.2. Client setup](https://ehrbase.readthedocs.io/en/latest/04_sdk/02_reference/01_client_module/01_client/index.html) **Similar topic**: [EHRBase questions](https://github.com/ehrbase/angular-sdk-example) Thanks in advance. --- ## Post #2 by @subigre Hello @linforest You’re referring to the old version of the documentation. The current one is available at https://docs.ehrbase.org/, but I can’t find the page you’re looking for. There is no need to use jitpack.io anymore. All artifacts are published on [Maven Central](https://mvnrepository.com/search?q=org.ehrbase.openehr), so you only have to add the client dependency into your pom.xml: ``` 2.17.0 org.ehrbase.openehr.sdk client ${ehrbase.version} ``` --- ## Post #3 by @linforest Hi, @subigre. Unfortunately, the site of the latest official documentation is not accessible for us. Thanks a lot for your help. Hello, @birger.haarbrandt. Is there any alternatives for [the latest official documentation site](https://docs.ehrbase.org/) ? When I try to access the site, my web browser always complains something like: ``` This website cannot be accessed docs.ehrbase.org has too long a response time. ``` --- ## Post #4 by @linforest @subigre Based on your suggetsion, it's found that the problem was possibly caused by the mirror in Maven settings.xml and the redundant parent tag 'dependencyManagement' for the dependencies. ``` org.ehrbase.openehr.sdk client 2.17.0 ... ``` The command 'mvn clean install' is working properly now although I still don't really master the pom setting stuff. Again, Thanks. --- **Canonical:** https://discourse.openehr.org/t/how-to-create-and-use-restclient-with-ehrbase-sdk-in-my-maven-project/5657 **Original content:** https://discourse.openehr.org/t/how-to-create-and-use-restclient-with-ehrbase-sdk-in-my-maven-project/5657