Create
cancel
Showing results for 
Search instead for 
Did you mean: 
Sign up Log in

Next challenges

Recent achievements

  • Global
  • Personal

Recognition

  • Give kudos
  • Received
  • Given

Leaderboard

  • Global

Trophy case

Kudos (beta program)

Kudos logo

You've been invited into the Kudos (beta program) private group. Chat with others in the program, or give feedback to Atlassian.

View group

It's not the same without you

Join the community to find out what other Atlassian users are discussing, debating and creating.

Atlassian Community Hero Image Collage

How can I integrate the Jira REST Java Client library in my Maven project?

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

2 answers

Can no one help me? :(

0 votes
Kunj Shah I'm New Here Nov 23, 2020

Try with version 5.2.0 in both the dependencies. If nothing works just add the jars of these dependencies in your classpath manually.

Suggest an answer

Log in or Sign up to answer
TAGS

Community Events

Connect with like-minded Atlassian users at free events near you!

Find an event

Connect with like-minded Atlassian users at free events near you!

Unfortunately there are no Community Events near you at the moment.

Host an event

You're one step closer to meeting fellow Atlassian users at your local event. Learn more about Community Events

Events near you