Я попробовал приведенный ниже код для подключения к jira с использованием unirest api, но получил исключение ниже.
HttpResponse<JsonNode> response = Unirest.get("https://apatil.atlassian.net/rest/api/2/applicationrole")
.basicAuth("email", "api key").header("Accept", "application/json").asJson();
System.out.println(response.getBody());
Получение ошибки ниже для кода выше.
Exception in thread "main" java.lang.NoClassDefFoundError: org/apache/http/client/methods/HttpUriRequest
at com.mashape.unirest.request.BaseRequest.asJson(BaseRequest.java:68)
at com.sonata.jira.integeration.JiraIntegeration.getApplicatioRole(JiraIntegeration.java:14)
at com.sonata.jira.integeration.JiraIntegeration.main(JiraIntegeration.java:21)
Caused by: java.lang.ClassNotFoundException: org.apache.http.client.methods.HttpUriRequest
at java.net.URLClassLoader.findClass(Unknown Source)
at java.lang.ClassLoader.loadClass(Unknown Source)
at sun.misc.Launcher$AppClassLoader.loadClass(Unknown Source)
at java.lang.ClassLoader.loadClass(Unknown Source)