java - JRJC 抛出 NoClassDefFound 异常

标签 java maven pom.xml jira-rest-api jira-rest-java-api

我正在尝试在我的项目中使用 Jira Rest Java 客户端。但无法连接到我安装的 jira。使用以下代码片段时:

JiraRestClientFactory factory = new AsynchronousJiraRestClientFactory();
 JiraRestClient restClient =factory.createWithBasicHttpAuthentication(serverURI, "praveen",
 "Jira@123");

我遇到如下错误:

Exception in thread "main" java.lang.NoClassDefFoundError: org/apache/http/nio/NHttpMessageParserFactory
at org.apache.http.impl.nio.conn.PoolingClientAsyncConnectionManager.createClientAsyncConnectionFactory(PoolingClientAsyncConnectionManager.java:96)
at org.apache.http.impl.nio.conn.PoolingClientAsyncConnectionManager.<init>(PoolingClientAsyncConnectionManager.java:72)
at com.atlassian.httpclient.apache.httpcomponents.DefaultHttpClient$2.<init>(DefaultHttpClient.java:117)
at com.atlassian.httpclient.apache.httpcomponents.DefaultHttpClient.<init>(DefaultHttpClient.java:115)
at com.atlassian.jira.rest.client.internal.async.AsynchronousHttpClientFactory.createClient(AsynchronousHttpClientFactory.java:53)
at com.atlassian.jira.rest.client.internal.async.AsynchronousJiraRestClientFactory.create(AsynchronousJiraRestClientFactory.java:35)
at com.atlassian.jira.rest.client.internal.async.AsynchronousJiraRestClientFactory.createWithBasicHttpAuthentication(AsynchronousJiraRestClientFactory.java:42)
at com.praveen.jira.JiraPoc.main(JiraPoc.java:77)

我在 pom.xml 中使用 JRJC 作为具有以下标记的依赖项:

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

我有什么遗漏的吗? 我的客户端使用类与 jira 的示例位于同一行:

https://bitbucket.org/atlassian/jrjc-example/src/54673b037ab77997c22950ff00489de1752f0353/src/main/java/com/atlassian/jira/rest/client/example/Main.java?at=master&fileviewer=file-view-default

请帮我解决这个问题,我被困了很长时间。如果可能,请提供工作示例。 根据要求编辑:

C:\Users\praveen.joshi\git\dashboard\jira-poc>mvn dependency:tree -Dverbose
[INFO] Scanning for projects...
[WARNING]
[WARNING] Some problems were encountered while building the effective model for com.bolt.dashboard:jira-poc:jar:0.0.1-SNAPSHOT
[WARNING] 'parent.relativePath' of POM com.bolt.dashboard:jira-poc:0.0.1-SNAPSHOT (C:\Users\praveen.joshi\git\dashboard\jira-poc\pom.xml) points at com.bolt.dashboard:jenkins-collector instead of org.springframework.boot:spring-boot-starter-parent, please verify your project structure @ line 9, column 10
[WARNING]
[WARNING] It is highly recommended to fix these problems because they threaten the stability of your build.
[WARNING]
[WARNING] For this reason, future Maven versions might no longer support building such malformed projects.
[WARNING] Using Maven 2 dependency tree to get verbose output, which may be inconsistent with actual Maven 3 resolution
[INFO] com.praveen.dashboard:jira-poc:jar:0.0.1-SNAPSHOT
[INFO] +- com.praveen.dashboard:core:jar:0.0.1-SNAPSHOT:compile
[INFO] |  +- org.springframework:spring-test:jar:4.2.5.RELEASE:compile (version managed from 4.1.7.RELEASE)
[INFO] |  |  \- (org.springframework:spring-core:jar:4.2.5.RELEASE:compile - version managed from 4.1.7.RELEASE; omitted for duplicate)
[INFO] |  +- org.springframework.data:spring-data-mongodb:jar:1.8.4.RELEASE:compile (version managed from 1.8.0.RELEASE)
[INFO] |  |  +- org.springframework:spring-tx:jar:4.2.5.RELEASE:compile (version managed from 4.1.9.RELEASE)
[INFO] |  |  |  +- (org.springframework:spring-beans:jar:4.2.5.RELEASE:compile - version managed from 4.1.9.RELEASE; omitted for duplicate)
[INFO] |  |  |  \- (org.springframework:spring-core:jar:4.2.5.RELEASE:compile - omitted for duplicate)
[INFO] |  |  +- (org.springframework:spring-context:jar:4.2.5.RELEASE:compile - version managed from 4.1.9.RELEASE; omitted for duplicate)
[INFO] |  |  +- (org.springframework:spring-beans:jar:4.2.5.RELEASE:compile - version managed from 4.1.9.RELEASE; omitted for duplicate)
[INFO] |  |  +- (org.springframework:spring-core:jar:4.2.5.RELEASE:compile - version managed from 4.1.9.RELEASE; omitted for duplicate)
[INFO] |  |  +- org.springframework:spring-expression:jar:4.2.5.RELEASE:compile
[INFO] |  |  |  \- (org.springframework:spring-core:jar:4.2.5.RELEASE:compile - version managed from 4.1.9.RELEASE; omitted for duplicate)
[INFO] |  |  +- org.springframework.data:spring-data-commons:jar:1.11.4.RELEASE:compile
[INFO] |  |  |  +- (org.springframework:spring-core:jar:4.2.5.RELEASE:compile - version managed from 4.1.9.RELEASE; omitted for duplicate)
[INFO] |  |  |  +- (org.springframework:spring-beans:jar:4.2.5.RELEASE:compile - version managed from 4.1.9.RELEASE; omitted for duplicate)
[INFO] |  |  |  +- (org.slf4j:slf4j-api:jar:1.7.16:compile - version managed from 1.7.13; omitted for duplicate)
[INFO] |  |  |  \- (org.slf4j:jcl-over-slf4j:jar:1.7.16:runtime - version managed from 1.7.13; omitted for duplicate)
[INFO] |  |  +- (org.mongodb:mongo-java-driver:jar:2.13.3:compile - version managed from 2.10.0; omitted for duplicate)
[INFO] |  |  +- org.slf4j:slf4j-api:jar:1.7.16:compile
[INFO] |  |  \- (org.slf4j:jcl-over-slf4j:jar:1.7.16:compile - version managed from 1.7.13; scope updated from runtime; omitted for duplicate)
[INFO] |  +- org.springframework:spring-core:jar:4.2.5.RELEASE:compile
[INFO] |  +- org.springframework:spring-context-support:jar:4.2.5.RELEASE:compile (version managed from 4.1.7.RELEASE)
[INFO] |  |  +- (org.springframework:spring-beans:jar:4.2.5.RELEASE:compile - version managed from 4.1.9.RELEASE; omitted for duplicate)
[INFO] |  |  +- (org.springframework:spring-context:jar:4.2.5.RELEASE:compile - version managed from 4.1.9.RELEASE; omitted for duplicate)
[INFO] |  |  \- (org.springframework:spring-core:jar:4.2.5.RELEASE:compile - version managed from 4.1.7.RELEASE; omitted for duplicate)
[INFO] |  +- org.quartz-scheduler:quartz:jar:2.2.1:compile
[INFO] |  |  +- c3p0:c3p0:jar:0.9.1.1:compile
[INFO] |  |  \- (org.slf4j:slf4j-api:jar:1.7.16:compile - version managed from 1.6.6; omitted for duplicate)
[INFO] |  +- com.mysema.querydsl:querydsl-jpa:jar:3.6.0:compile
[INFO] |  |  +- com.mysema.querydsl:querydsl-core:jar:3.6.0:compile
[INFO] |  |  |  +- (com.google.guava:guava:jar:18.0:compile - omitted for conflict with 10.0.1)
[INFO] |  |  |  +- (com.google.code.findbugs:jsr305:jar:1.3.9:compile - omitted for duplicate)
[INFO] |  |  |  +- com.mysema.commons:mysema-commons-lang:jar:0.2.4:compile
[INFO] |  |  |  \- com.infradna.tool:bridge-method-annotation:jar:1.13:compile
[INFO] |  |  \- (org.slf4j:slf4j-api:jar:1.7.16:compile - version managed from 1.6.1; omitted for duplicate)
[INFO] |  +- com.mysema.querydsl:querydsl-apt:jar:3.6.0:compile
[INFO] |  |  \- com.mysema.querydsl:querydsl-codegen:jar:3.6.0:compile
[INFO] |  |     +- (com.mysema.querydsl:querydsl-core:jar:3.6.0:compile - omitted for duplicate)
[INFO] |  |     +- com.mysema.codegen:codegen:jar:0.6.5:compile
[INFO] |  |     |  +- (com.google.guava:guava:jar:18.0:compile - omitted for duplicate)
[INFO] |  |     |  \- org.eclipse.jdt.core.compiler:ecj:jar:4.3.1:compile
[INFO] |  |     \- javax.inject:javax.inject:jar:1:compile
[INFO] |  +- com.mysema.querydsl:querydsl-mongodb:jar:3.6.0:compile
[INFO] |  |  +- (org.mongodb:mongo-java-driver:jar:2.13.3:compile - version managed from 2.10.0; omitted for duplicate)
[INFO] |  |  +- (com.mysema.querydsl:querydsl-core:jar:3.6.0:compile - omitted for duplicate)
[INFO] |  |  \- (org.slf4j:slf4j-api:jar:1.7.16:compile - version managed from 1.6.1; omitted for duplicate)
[INFO] |  \- (com.googlecode.json-simple:json-simple:jar:1.1.1:compile - omitted for duplicate)
[INFO] +- org.springframework.boot:spring-boot-starter-data-mongodb:jar:1.3.3.RELEASE:compile
[INFO] |  +- org.springframework.boot:spring-boot-starter:jar:1.3.3.RELEASE:compile
[INFO] |  |  +- org.springframework.boot:spring-boot:jar:1.3.3.RELEASE:compile
[INFO] |  |  |  +- (org.springframework:spring-core:jar:4.2.5.RELEASE:compile - version managed from 4.1.7.RELEASE; omitted for duplicate)
[INFO] |  |  |  \- (org.springframework:spring-context:jar:4.2.5.RELEASE:compile - version managed from 4.1.9.RELEASE; omitted for duplicate)
[INFO] |  |  +- org.springframework.boot:spring-boot-autoconfigure:jar:1.3.3.RELEASE:compile
[INFO] |  |  |  \- (org.springframework.boot:spring-boot:jar:1.3.3.RELEASE:compile - omitted for duplicate)
[INFO] |  |  +- org.springframework.boot:spring-boot-starter-logging:jar:1.3.3.RELEASE:compile
[INFO] |  |  |  +- ch.qos.logback:logback-classic:jar:1.1.5:compile
[INFO] |  |  |  |  +- ch.qos.logback:logback-core:jar:1.1.5:compile
[INFO] |  |  |  |  \- (org.slf4j:slf4j-api:jar:1.7.16:compile - version managed from 1.6.1; omitted for duplicate)
[INFO] |  |  |  +- org.slf4j:jcl-over-slf4j:jar:1.7.16:compile
[INFO] |  |  |  |  \- (org.slf4j:slf4j-api:jar:1.7.16:compile - version managed from 1.6.1; omitted for duplicate)
[INFO] |  |  |  +- org.slf4j:jul-to-slf4j:jar:1.7.16:compile
[INFO] |  |  |  |  \- (org.slf4j:slf4j-api:jar:1.7.16:compile - version managed from 1.6.1; omitted for duplicate)
[INFO] |  |  |  \- org.slf4j:log4j-over-slf4j:jar:1.7.16:compile
[INFO] |  |  |     \- (org.slf4j:slf4j-api:jar:1.7.16:compile - version managed from 1.6.1; omitted for duplicate)
[INFO] |  |  +- (org.springframework:spring-core:jar:4.2.5.RELEASE:compile - version managed from 4.1.7.RELEASE; omitted for duplicate)
[INFO] |  |  \- org.yaml:snakeyaml:jar:1.16:runtime
[INFO] |  +- org.mongodb:mongo-java-driver:jar:2.13.3:compile
[INFO] |  \- (org.springframework.data:spring-data-mongodb:jar:1.8.4.RELEASE:compile - version managed from 1.8.0.RELEASE; omitted for duplicate)
[INFO] +- org.springframework.boot:spring-boot-starter-test:jar:1.3.3.RELEASE:test
[INFO] |  +- (junit:junit:jar:4.12:compile - version managed from 4.10; scope updated from test; omitted for duplicate)
[INFO] |  +- org.mockito:mockito-core:jar:1.10.19:test
[INFO] |  |  +- (org.hamcrest:hamcrest-core:jar:1.3:compile - version managed from 1.1; scope updated from test; omitted for duplicate)
[INFO] |  |  \- org.objenesis:objenesis:jar:2.1:test
[INFO] |  +- (org.hamcrest:hamcrest-core:jar:1.3:compile - version managed from 1.1; scope updated from test; omitted for duplicate)
[INFO] |  +- org.hamcrest:hamcrest-library:jar:1.3:test
[INFO] |  |  \- (org.hamcrest:hamcrest-core:jar:1.3:compile - version managed from 1.1; scope updated from test; omitted for duplicate)
[INFO] |  +- (org.springframework:spring-core:jar:4.2.5.RELEASE:test - version managed from 4.1.7.RELEASE; omitted for duplicate)
[INFO] |  \- (org.springframework:spring-test:jar:4.2.5.RELEASE:test - version managed from 4.1.7.RELEASE; omitted for duplicate)
[INFO] +- org.springframework:spring-web:jar:4.2.5.RELEASE:compile
[INFO] |  +- org.springframework:spring-aop:jar:4.2.5.RELEASE:compile
[INFO] |  |  +- aopalliance:aopalliance:jar:1.0:compile
[INFO] |  |  +- (org.springframework:spring-beans:jar:4.2.5.RELEASE:compile - version managed from 4.1.9.RELEASE; omitted for duplicate)
[INFO] |  |  \- (org.springframework:spring-core:jar:4.2.5.RELEASE:compile - version managed from 4.1.7.RELEASE; omitted for duplicate)
[INFO] |  +- org.springframework:spring-beans:jar:4.2.5.RELEASE:compile
[INFO] |  |  \- (org.springframework:spring-core:jar:4.2.5.RELEASE:compile - version managed from 4.1.7.RELEASE; omitted for duplicate)
[INFO] |  +- org.springframework:spring-context:jar:4.2.5.RELEASE:compile
[INFO] |  |  +- (org.springframework:spring-aop:jar:4.2.5.RELEASE:compile - omitted for duplicate)
[INFO] |  |  +- (org.springframework:spring-beans:jar:4.2.5.RELEASE:compile - version managed from 4.1.9.RELEASE; omitted for duplicate)
[INFO] |  |  +- (org.springframework:spring-core:jar:4.2.5.RELEASE:compile - version managed from 4.1.7.RELEASE; omitted for duplicate)
[INFO] |  |  \- (org.springframework:spring-expression:jar:4.2.5.RELEASE:compile - version managed from 4.1.9.RELEASE; omitted for duplicate)
[INFO] |  \- (org.springframework:spring-core:jar:4.2.5.RELEASE:compile - version managed from 4.1.7.RELEASE; omitted for duplicate)
[INFO] +- com.googlecode.json-simple:json-simple:jar:1.1.1:compile
[INFO] |  \- junit:junit:jar:4.12:compile (version managed from 4.10)
[INFO] |     \- org.hamcrest:hamcrest-core:jar:1.3:compile (version managed from 1.1)
[INFO] +- org.apache.commons:commons-lang3:jar:3.3.2:compile
[INFO] +- org.apache.httpcomponents:httpclient:jar:4.2.1-atlassian-2:compile
[INFO] |  +- org.apache.httpcomponents:httpcore:jar:4.4.4:compile (version managed from 4.2.1)
[INFO] |  \- commons-codec:commons-codec:jar:1.6:compile
[INFO] +- com.atlassian.jira:jira-rest-java-client-core:jar:3.0.0:compile
[INFO] |  +- (com.atlassian.jira:jira-rest-java-client-api:jar:3.0.0:compile - omitted for conflict with 2.0.0)
[INFO] |  +- com.sun.jersey:jersey-client:jar:1.5:compile
[INFO] |  |  \- com.sun.jersey:jersey-core:jar:1.5:compile
[INFO] |  +- com.sun.jersey:jersey-json:jar:1.5:compile
[INFO] |  |  +- (com.sun.jersey:jersey-core:jar:1.5:compile - omitted for duplicate)
[INFO] |  |  +- org.codehaus.jettison:jettison:jar:1.1:compile
[INFO] |  |  +- com.sun.xml.bind:jaxb-impl:jar:2.2.3:compile
[INFO] |  |  |  \- javax.xml.bind:jaxb-api:jar:2.2.2:compile
[INFO] |  |  |     +- javax.xml.stream:stax-api:jar:1.0-2:compile
[INFO] |  |  |     \- javax.activation:activation:jar:1.1:compile
[INFO] |  |  +- org.codehaus.jackson:jackson-core-asl:jar:1.5.5:compile
[INFO] |  |  +- org.codehaus.jackson:jackson-mapper-asl:jar:1.5.5:compile
[INFO] |  |  |  \- (org.codehaus.jackson:jackson-core-asl:jar:1.5.5:compile - omitted for duplicate)
[INFO] |  |  +- org.codehaus.jackson:jackson-jaxrs:jar:1.5.5:compile
[INFO] |  |  |  +- (org.codehaus.jackson:jackson-core-asl:jar:1.5.5:compile - omitted for duplicate)
[INFO] |  |  |  \- (org.codehaus.jackson:jackson-mapper-asl:jar:1.5.5:compile - omitted for duplicate)
[INFO] |  |  \- org.codehaus.jackson:jackson-xc:jar:1.5.5:compile
[INFO] |  |     +- (org.codehaus.jackson:jackson-core-asl:jar:1.5.5:compile - omitted for duplicate)
[INFO] |  |     \- (org.codehaus.jackson:jackson-mapper-asl:jar:1.5.5:compile - omitted for duplicate)
[INFO] |  +- joda-time:joda-time:jar:2.8.2:compile
[INFO] |  +- com.atlassian.httpclient:atlassian-httpclient-apache-httpcomponents:jar:0.13.2:compile
[INFO] |  |  +- (com.atlassian.httpclient:atlassian-httpclient-api:jar:0.13.2:compile - omitted for duplicate)
[INFO] |  |  +- com.atlassian.sal:sal-api:jar:2.7.0:compile
[INFO] |  |  +- com.atlassian.event:atlassian-event:jar:2.2.0:compile
[INFO] |  |  |  +- (com.atlassian.util.concurrent:atlassian-util-concurrent:jar:0.0.12:compile - omitted for conflict with 2.4.0-M9)
[INFO] |  |  |  +- (com.google.guava:guava:jar:10.0.1:compile - omitted for duplicate)
[INFO] |  |  |  +- (commons-lang:commons-lang:jar:2.4:compile - omitted for conflict with 2.5)
[INFO] |  |  |  \- (org.slf4j:slf4j-api:jar:1.7.16:compile - version managed from 1.5.8; omitted for duplicate)
[INFO] |  |  +- (org.slf4j:slf4j-api:jar:1.7.16:compile - version managed from 1.6.4; omitted for duplicate)
[INFO] |  |  +- org.apache.httpcomponents:httpasyncclient-cache:jar:4.0-beta3-atlassian-1:compile
[INFO] |  |  |  +- (org.apache.httpcomponents:httpasyncclient:jar:4.0-beta3-atlassian-1:compile - omitted for duplicate)
[INFO] |  |  |  \- (org.apache.httpcomponents:httpclient-cache:jar:4.2.1-atlassian-2:compile - omitted for duplicate)
[INFO] |  |  +- org.apache.httpcomponents:httpclient-cache:jar:4.2.1-atlassian-2:compile
[INFO] |  |  |  +- (org.apache.httpcomponents:httpclient:jar:4.2.1-atlassian-2:compile - omitted for duplicate)
[INFO] |  |  |  \- (commons-logging:commons-logging:jar:1.1.1:compile - omitted for duplicate)
[INFO] |  |  +- org.apache.httpcomponents:httpasyncclient:jar:4.0-beta3-atlassian-1:compile
[INFO] |  |  |  \- (org.apache.httpcomponents:httpclient:jar:4.2.1-atlassian-2:compile - omitted for duplicate)
[INFO] |  |  +- (org.apache.httpcomponents:httpcore:jar:4.4.4:compile - version managed from 4.2.2; omitted for duplicate)
[INFO] |  |  +- org.apache.httpcomponents:httpcore-nio:jar:4.2.2:compile
[INFO] |  |  |  \- (org.apache.httpcomponents:httpcore:jar:4.4.4:compile - version managed from 4.2.2; omitted for duplicate)
[INFO] |  |  +- (org.springframework:spring-context:jar:4.2.5.RELEASE:compile - version managed from 2.5.6; omitted for duplicate)
[INFO] |  |  \- (org.apache.httpcomponents:httpmime:jar:4.2.1-atlassian-2:compile - version managed from 4.1.2; omitted for duplicate)
[INFO] |  +- com.atlassian.util.concurrent:atlassian-util-concurrent:jar:2.4.0-M9:compile
[INFO] |  +- org.apache.httpcomponents:httpmime:jar:4.2.1-atlassian-2:compile
[INFO] |  \- com.google.guava:guava:jar:10.0.1:compile
[INFO] |     \- com.google.code.findbugs:jsr305:jar:1.3.9:compile
[INFO] +- com.atlassian.jira:jira-rest-java-client-api:jar:2.0.0:compile
[INFO] |  +- (com.atlassian.util.concurrent:atlassian-util-concurrent:jar:2.4.0-M9:compile - omitted for duplicate)
[INFO] |  +- com.atlassian.httpclient:atlassian-httpclient-api:jar:0.13.2:compile
[INFO] |  |  +- com.atlassian.httpclient:atlassian-httpclient-spi:jar:0.13.2:compile
[INFO] |  |  +- (com.google.guava:guava:jar:10.0.1:compile - omitted for duplicate)
[INFO] |  |  \- (com.atlassian.util.concurrent:atlassian-util-concurrent:jar:2.4.0:compile - omitted for conflict with 2.4.0-M9)
[INFO] |  +- (joda-time:joda-time:jar:2.8.2:compile - version managed from 1.6; omitted for duplicate)
[INFO] |  \- (com.google.guava:guava:jar:10.0.1:compile - omitted for duplicate)
[INFO] \- net.rcarz:jira-client:jar:0.5:compile
[INFO]    +- (org.apache.httpcomponents:httpclient:jar:4.2.1-atlassian-2:compile - version managed from 4.2.5; omitted for duplicate)
[INFO]    +- (org.apache.httpcomponents:httpmime:jar:4.2.1-atlassian-2:compile - version managed from 4.2.5; omitted for duplicate)
[INFO]    +- net.sf.json-lib:json-lib:jar:jdk15:2.4:compile
[INFO]    |  +- commons-beanutils:commons-beanutils:jar:1.9.2:compile (version managed from 1.8.0)
[INFO]    |  |  \- (commons-collections:commons-collections:jar:3.2.2:compile - version managed from 3.2.1; omitted for duplicate)
[INFO]    |  +- commons-collections:commons-collections:jar:3.2.2:compile
[INFO]    |  +- commons-lang:commons-lang:jar:2.5:compile
[INFO]    |  +- commons-logging:commons-logging:jar:1.1.1:compile
[INFO]    |  \- net.sf.ezmorph:ezmorph:jar:1.0.6:compile
[INFO]    |     \- (commons-lang:commons-lang:jar:2.3:compile - omitted for conflict with 2.5)
[INFO]    +- (joda-time:joda-time:jar:2.8.2:compile - version managed from 2.3; omitted for duplicate)
[INFO]    +- (junit:junit:jar:4.12:compile - version managed from 4.8.2; omitted for duplicate)
[INFO]    +- org.mockito:mockito-all:jar:1.9.0:compile
[INFO]    \- commons-httpclient:commons-httpclient:jar:3.1:compile
[INFO]       +- (commons-logging:commons-logging:jar:1.0.4:compile - omitted for conflict with 1.1.1)
[INFO]       \- (commons-codec:commons-codec:jar:1.2:compile - omitted for conflict with 1.6)
[INFO] ------------------------------------------------------------------------
[INFO] BUILD SUCCESS
[INFO] ------------------------------------------------------------------------
[INFO] Total time: 03:40 min
[INFO] Finished at: 2016-04-27T16:19:12+05:30
[INFO] Final Memory: 20M/98M
[INFO] ------------------------------------------------------------------------

C:\Users\praveen.joshi\git\dashboard\jira-poc>

最佳答案

我在依赖树中发现了几个问题。第一的。 org.apache.httpcomponents:httpcore:jar:4.4.4:compile - 从 4.2.2 开始管理的版本版本管理自表示 httpcore 应该有 4.2.2 版本,但有人改变了它。这可能是问题的根源。 您是否将 httpcore 版本更改为 4.4.4? 其次。您已添加 com.atlassian.jira:jira-rest-java-client-api 依赖于 2.0.0 版本,但 com.atlassian.jira:jira-rest-java -client-core3.0.0 版本一起使用。我觉得你 可以从 pom.xml 中删除 com.atlassian.jira:jira-rest-java-client-api 依赖项或将其升级到 3.0.0。另请注意,您引用的示例项目使用 2.0.0-m25 版本的 jira-rest-java-client-corejira-rest-java-客户端API

关于java - JRJC 抛出 NoClassDefFound 异常,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/36864240/

相关文章:

java - 在android中通过soap ws在mysql数据库中插入微调器值

java - 解决 Windows 上的 com.apple 导入错误

java - 项目制作jar文件后出错

java - Maven 属性文件插件在写入时替换属性文件的全部内容

java - 找不到 com.google.cloud.bigtable.hbase1_x.BigtableConnection 的合适构造函数

java - 在 pom.xml 中添加 json 依赖项出现错误

java - 如何使 Jersey 客户端以 http ://ppp. com/yy?zz,aa,bb 格式调用 url

java - 如何读取文件夹中的任何 CSV 文件并将其合并到一个 CSV 文件中

eclipse - java.lang.IllegalArgumentException : already added: Lorg/hamcrest/BaseDescription; Conversion to Dalvik format failed with error 1

xml - Saxon 找不到函数 : current-group