gpt4 book ai didi

java.lang.NoSuchMethodError : javax. ws.rs.core.Application.getProperties()Ljava/util/Map; JIRA REST 客户端

转载 作者:行者123 更新时间:2023-12-02 01:36:00 24 4
gpt4 key购买 nike

当尝试使用 JIRA Rest 客户端从 JIRA 获取问题时,我收到以下错误。

java.lang.NoSuchMethodError:javax.ws.rs.core.Application.getProperties()Ljava/util/Map;

在我正在使用的pom下面。

<properties>
<jersey-2-version>2.29</jersey-2-version>
<jaxrs.version>2.0.1</jaxrs.version>
</properties>
<dependencies>
<dependency>
<groupId>org.glassfish.jersey.containers</groupId>
<artifactId>jersey-container-servlet</artifactId>
<version>${jersey-2-version}</version>
</dependency>
<dependency>
<groupId>org.glassfish.jersey.core</groupId>
<artifactId>jersey-common</artifactId>
<version>${jersey-2-version}</version>
</dependency>
<dependency>
<groupId>org.glassfish.jersey.containers</groupId>
<artifactId>jersey-container-servlet-core</artifactId>
<version>${jersey-2-version}</version>
</dependency>
<dependency>
<groupId>org.glassfish.jersey.inject</groupId>
<artifactId>jersey-hk2</artifactId>
<version>2.26</version>
</dependency>
<dependency>
<groupId>com.atlassian.jira</groupId>
<artifactId>jira-rest-java-client-api</artifactId>
<version>5.1.0</version>
</dependency>
<dependency>
<groupId>com.atlassian.jira</groupId>
<artifactId>jira-rest-java-client-core</artifactId>
<version>5.1.0</version>
</dependency>
<dependency>
<groupId>org.glassfish.jersey.media</groupId>
<artifactId>jersey-media-json-jackson</artifactId>
<version>2.20</version>
</dependency>
<dependency>
<groupId>io.atlassian.fugue</groupId>
<artifactId>fugue</artifactId>
<version>4.7.2</version>
</dependency>
<dependency>
<groupId>org.json</groupId>
<artifactId>json</artifactId>
<version>20151123</version>
</dependency>
<dependency>
<groupId>com.fasterxml.jackson.core</groupId>
<artifactId>jackson-core</artifactId>
<version>2.9.9</version>
</dependency>
</dependencies>

我正在尝试获取问题并通过 REST API 返回它。

  SearchResult searchJqlPromise =restClient.getSearchClient().searchJql("issuetype = Bug AND resolution  = Unresolved ORDER BY created DESC%2C priority DESC%2C updated DESC").claim();
entity = new GenericEntity<Iterable<Issue>>(searchJqlPromise.getIssues())
{
};

有人可以给我发布 JSon 和其他要使用的库的确切版本吗?

最佳答案

您可以尝试使用最新版本并检查吗?您可以在maven pom.xml中使用以下依赖项。

<dependency>
<groupId>com.atlassian.jira</groupId>
<artifactId>jira-rest-java-client-api</artifactId>
<version>5.1.0</version>
</dependency>
<dependency>
<groupId>com.atlassian.jira</groupId>
<artifactId>jira-rest-java-client-core</artifactId>
<version>5.1.0</version>
</dependency>

引用文献您可以引用下面 mvnrepository.com 中的链接。

https://mvnrepository.com/artifact/com.atlassian.jira/jira-rest-java-client-core/5.1.0 https://mvnrepository.com/artifact/com.atlassian.jira/jira-rest-java-client-api/5.1.0

关于java.lang.NoSuchMethodError : javax. ws.rs.core.Application.getProperties()Ljava/util/Map; JIRA REST 客户端,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/57519364/

24 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com