如何升级Jira客户端?

时间:2014-09-16 15:45:53

标签: java jira jira-rest-api

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

1 个答案:

答案 0 :(得分:2)

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

  1. 告诉您的Maven通过在您的pom中添加以下行来搜索Atlassian公共存储库:
  2. <repositories>
      <repository>
        <id>atlassian-public</id>
        <url>https://maven.atlassian.com/content/repositories/atlassian-public/</url>
      </repository>
    </repositories>
    
    1. 添加以下依赖项:
    2. <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. 清理并构建项目并处理可能出现的任何传递依赖性问题。