Hi everyone,
I'm having trouble integrating the Jira REST Java client library into my Maven project. I've tried many things, but it seems to not work and I don't know what I'm doing wrong.
At first I will import the following:
package jira;
import com.atlassian.jira.rest.client.JiraRestClient;
import com.atlassian.jira.rest.client.JiraRestClientFactory;
import com.atlassian.jira.rest.client.domain.User;
import com.atlassian.jira.rest.client.internal.async.AsynchronousJiraRestClientFactory;
import com.atlassian.util.concurrent.Promise;
import java.net.URI;
public class Main
{
.....
}
But I always get the message "The import com.atlassian.jira.rest.client.JiraRestClient cannot be resolved" but I don´t know why, also the others.
My pom.xml looks like this:
<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 https://maven.apache.org/xsd/maven-4.0.0.xsd">
<modelVersion>4.0.0</modelVersion>
<groupId>de.ebcp</groupId>
<artifactId>jira</artifactId>
<version>0.0.1-SNAPSHOT</version>
<name>JRJC</name>
<repositories>
<repository>
<id>https-atlassian</id>
<url>https://maven.atlassian.com/content/repositories/atlassian-public/</url>
</repository>
</repositories>
<dependencies>
<!-- https://mvnrepository.com/artifact/com.atlassian.jira/jira-rest-java-client-core -->
<dependency>
<groupId>com.atlassian.jira</groupId>
<artifactId>jira-rest-java-client-core</artifactId>
<version>5.2.1</version>
</dependency>
<dependency>
<groupId>com.atlassian.jira</groupId>
<artifactId>jira-rest-java-client-api</artifactId>
<version>5.2.1</version>
</dependency>
</dependencies>
</project>
Does anyone know what's wrong? I'm afraid I have no idea and would be happy if someone could help me.
Thank you very much!
Best regards
Benni