简体   繁体   English

无法解决jira-rest-java-client依赖关系

[英]Unable to resolve jira-rest-java-client dependency

I am writing a Java service to access JIRA. 我正在编写Java服务来访问JIRA。 And I am using jira-rest-java-clien t. 我正在使用jira-rest-java-clien t。 But I am unable to resolve the error in the pom file for the jira-rest-java-client dependency. 但是我无法解决jira-rest-java-client依赖性的pom文件中的错误。

在此处输入图片说明

So I added the JAR explicitly in the build path but the error in pom file exists. 所以我在构建路径中显式添加了JAR,但pom文件中存在错误。 在此处输入图片说明

Also, my maven settings are such that it is trying to download the artifacts from my org's artifact repository but looks like it is not having any JIRA/Atlassian dependencies there. 另外,我的Maven设置使得它试图从组织的工件存储库中下载工件,但看起来那里没有任何JIRA / Atlassian依赖项。

Can someone please tell what is it I am doing wrong? 有人可以告诉我我在做什么错吗? How can I fix this? 我怎样才能解决这个问题?

Have you tried to add this dependency 您是否尝试添加此依赖项

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

after configuring the following repository? 配置以下存储库后?

<repository>
   <id>opencast-public</id>
   <url>http://repository.opencastproject.org/nexus/content/repositories/public/</url>
</repository>

Or even better, you could add the Atlassian Maven Repository to your pom.xml. 甚至更好的是,您可以将Atlassian Maven存储库添加到pom.xml中。 You can find detailed information here: https://developer.atlassian.com/display/DOCS/Atlassian+Maven+Repositories 您可以在此处找到详细信息: https : //developer.atlassian.com/display/DOCS/Atlassian+Maven+Repositories

Try this one.. 试试这个

<dependency>
        <groupId>com.atlassian.jira</groupId>
        <artifactId>jira-rest-java-client-core</artifactId>
        <version>2.0.0-m4</version>
    </dependency>
    <dependency>
        <groupId>com.atlassian.jira</groupId>
        <artifactId>jira-rest-java-client</artifactId>
        <version>2.0.0-m2</version>
    </dependency>
<dependency>
            <groupId>org.openengsb.wrapped</groupId>
            <artifactId>jira-rest-java-client-core</artifactId>
            <version>2.0.0-m32.w1</version>
</dependency> 

have you tried with this one? 你尝试过这个吗?

To resolve atlassian artifacts - add a repository to your pom (or settings.xml) 要解决Atlassian工件-将存储库添加到pom(或settings.xml)中

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

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM