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

最佳答案

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


通过将以下行添加到pom来告诉您的Maven搜索Atlassian公共存储库:


<repositories>
  <repository>
    <id>atlassian-public</id>
    <url>https://maven.atlassian.com/content/repositories/atlassian-public/</url>
  </repository>
</repositories>



添加以下依赖项:


<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>



清理并构建您的项目,并处理可能出现的所有传递依赖项问题。

关于java - 如何升级我的Jira客户端?,我们在Stack Overflow上找到一个类似的问题:https://stackoverflow.com/questions/25873158/

10-08 20:42