无法解析 'com.atlassian.jira.rest.client.internal.jersey.JerseyJiraRestClientFactory'
Can not resolve 'com.atlassian.jira.rest.client.internal.jersey.JerseyJiraRestClientFactory'
我尝试从此页面 https://ecosystem.atlassian.net/wiki/display/JRJC/Tutorial 学习有关使用 JIRA REST Java 客户端库的课程。但是我的IDE(Eclipse)找不到一个class'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>
还需要添加什么模块来解决错误?它隐藏了 class?
抱歉我的英语不好。
本教程与 Jira REST Client 2.0 不兼容。有必要看Migrating from JRJC 1.x to 2.x
我尝试从此页面 https://ecosystem.atlassian.net/wiki/display/JRJC/Tutorial 学习有关使用 JIRA REST Java 客户端库的课程。但是我的IDE(Eclipse)找不到一个class'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>
还需要添加什么模块来解决错误?它隐藏了 class?
抱歉我的英语不好。
本教程与 Jira REST Client 2.0 不兼容。有必要看Migrating from JRJC 1.x to 2.x