0

我想从 2.0.0-m2 升级到最新版本的 Java Jira 客户端。我需要做什么?

4

1 回答 1

2

通过以下方式更新当前依赖于 Jira 客户端的项目的 pom:

  1. 通过在 pom 中添加以下行来告诉您的 Maven 搜索 Atlassian 公共存储库:
<repositories>
  <repository>
    <id>atlassian-public</id>
    <url>https://maven.atlassian.com/content/repositories/atlassian-public/</url>
  </repository>
</repositories>
  1. 添加以下依赖项:
<dependency>
  <groupId>com.atlassian.jira</groupId>
  <artifactId>jira-rest-java-client-parent</artifactId>
  <version>2.0.0-m31</version>
  <type>pom</type>
</dependency>
<dependency>
  <groupId>com.atlassian.jira</groupId>
  <artifactId>jira-rest-java-client-api</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>
  <classifier>sources</classifier>
</dependency>
<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-core</artifactId>
  <version>2.0.0-m31</version>
  <classifier>sources</classifier>
</dependency>
  1. 清理并构建您的项目并处理可能出现的任何传递依赖问题。
于 2014-09-16T15:45:52.787 回答