无法解决' com.atlassian.jira.rest.client.internal.jersey.JerseyJiraRestClientFactory'

时间:2015-07-31 12:04:08

标签: java maven jira-rest-java-api

我尝试从此页面https://ecosystem.atlassian.net/wiki/display/JRJC/Tutorial学习有关使用JIRA REST Java客户端库的课程。但是我的IDE(Eclipse)找不到类&com; atlassian.jira.rest.client.internal.jersey.JerseyJiraRestClientFactory'。

我的pom.xml文件:

<?xml version="1.0" encoding="UTF-8"?><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 http://maven.apache.org/xsd/maven-4.0.0.xsd">
<modelVersion>4.0.0</modelVersion>

<groupId>ru.trust.jira</groupId>
<artifactId>example</artifactId>
<version>1.0-SNAPSHOT</version>

<repositories>
    <repository>
        <id>atlassian-public</id>
        <url>https://m2proxy.atlassian.com/repository/public</url>
        <snapshots>
            <enabled>true</enabled>
            <updatePolicy>daily</updatePolicy>
            <checksumPolicy>warn</checksumPolicy>
        </snapshots>
        <releases>
            <enabled>true</enabled>
            <checksumPolicy>warn</checksumPolicy>
        </releases>
    </repository>
</repositories>

<parent>
    <groupId>com.atlassian.jira</groupId>
    <artifactId>jira-rest-java-client-parent</artifactId>
    <version>2.0.0-m19</version>
</parent>

<pluginRepositories>
    <pluginRepository>
        <id>atlassian-public</id>
        <url>https://m2proxy.atlassian.com/repository/public</url>
        <releases>
            <enabled>true</enabled>
            <checksumPolicy>warn</checksumPolicy>
        </releases>
        <snapshots>
            <checksumPolicy>warn</checksumPolicy>
        </snapshots>
    </pluginRepository>
</pluginRepositories>

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

还需要添加模块来解决错误吗?它藏在哪个阶段?

抱歉我的英语不好。

1 个答案:

答案 0 :(得分:2)

本教程与Jira REST Client 2.0不兼容。有必要查看Migrating from JRJC 1.x to 2.x