原因:java.lang.classnotfoundexception:org.springframework.kafka.core.producerfactory$listener

g52tjvyc  于 2021-07-06  发布在  Java
关注(0)|答案(2)|浏览(804)

这是有线的,我的spring启动应用程序在spring-kafka依赖项下运行良好。对于prometheus的应用程序监控,一旦我添加了springbootstarter执行器依赖项,我的应用程序就会异常崩溃。
如果我删除了springbootstarter执行器依赖应用程序的工作良好。似乎SpringKafka有一些兼容性问题与Spring启动启动器驱动器。执行机构无法收集/发布Kafka指标。请建议如何使用actuator&prometheus进行springboot应用程序监控
编辑
在根据兼容性矩阵更新了spring-kafka和kafka客户机依赖关系之后,我开始在我的junits中发现embeddedkafkabroker服务器启动异常。方法org.apache.kafka.common.security.jaasutils.iszksecurityenabled()似乎已在kafka客户端中删除/更新,该客户端正在从sprint kafka测试的embeddedkafkabroker类调用。异常堆栈跟踪更新如下。还提供了mvn依赖树。
如果根据spring建议的兼容性包含依赖项,那么spring-kafka测试和kafka客户端不同步的原因是什么。请建议解决此错误。
pom.xml(已编辑)

  1. <properties>
  2. <spring-boot.version>2.3.0.RELEASE</spring-boot.version>
  3. <spring.version>5.2.6.RELEASE</spring.version>
  4. <springkafka.version>2.5.1.RELEASE</springkafka.version>
  5. <kafkaclient.version>2.5.0</kafkaclient.version>
  6. </properties>
  7. <dependencies>
  8. <dependency>
  9. <groupId>org.springframework.boot</groupId>
  10. <artifactId>spring-boot-starter</artifactId>
  11. <version>${spring-boot.version}</version>
  12. </dependency>
  13. <dependency>
  14. <groupId>org.springframework</groupId>
  15. <artifactId>spring-tx</artifactId>
  16. <version>${spring.version}</version>
  17. </dependency>
  18. <dependency>
  19. <groupId>org.springframework.boot</groupId>
  20. <artifactId>spring-boot-starter-actuator</artifactId>
  21. <version>${spring-boot.version}</version>
  22. </dependency>
  23. <dependency>
  24. <groupId>io.micrometer</groupId>
  25. <artifactId>micrometer-registry-prometheus</artifactId>
  26. <version>1.5.3</version>
  27. </dependency>
  28. </dependencies>

异常堆栈跟踪(已编辑)

  1. [ERROR]:::[]:[]:[]:[]:[Fatal error during KafkaServer startup. Prepare to shutdown]
  2. java.lang.NoSuchMethodError: org.apache.kafka.common.security.JaasUtils.isZkSecurityEnabled()Z
  3. at kafka.server.KafkaServer.initZkClient(KafkaServer.scala:384)
  4. at kafka.server.KafkaServer.startup(KafkaServer.scala:207)
  5. at kafka.utils.TestUtils$.createServer(TestUtils.scala:159)
  6. at kafka.utils.TestUtils$.createServer(TestUtils.scala:150)
  7. at kafka.utils.TestUtils.createServer(TestUtils.scala)
  8. at org.springframework.kafka.test.EmbeddedKafkaBroker.afterPropertiesSet(EmbeddedKafkaBroker.java:309)
  9. at org.springframework.kafka.test.rule.EmbeddedKafkaRule.before(EmbeddedKafkaRule.java:113)
  10. at org.junit.rules.ExternalResource$1.evaluate(ExternalResource.java:50)
  11. at org.junit.rules.RunRules.evaluate(RunRules.java:20)
  12. at org.junit.runners.ParentRunner$3.evaluate(ParentRunner.java:306)
  13. at org.junit.runners.ParentRunner.run(ParentRunner.java:413)
  14. at org.springframework.test.context.junit4.SpringJUnit4ClassRunner.run(SpringJUnit4ClassRunner.java:190)
  15. at org.apache.maven.surefire.junit4.JUnit4Provider.execute(JUnit4Provider.java:252)
  16. at org.apache.maven.surefire.junit4.JUnit4Provider.executeTestSet(JUnit4Provider.java:141)
  17. at org.apache.maven.surefire.junit4.JUnit4Provider.invoke(JUnit4Provider.java:112)
  18. at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
  19. at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
  20. at java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
  21. at java.base/java.lang.reflect.Method.invoke(Method.java:566)
  22. at org.apache.maven.surefire.util.ReflectionUtils.invokeMethodWithArray(ReflectionUtils.java:189)
  23. at org.apache.maven.surefire.booter.ProviderFactory$ProviderProxy.invoke(ProviderFactory.java:165)
  24. at org.apache.maven.surefire.booter.ProviderFactory.invokeProvider(ProviderFactory.java:85)
  25. at org.apache.maven.surefire.booter.ForkedBooter.runSuitesInProcess(ForkedBooter.java:115)
  26. at org.apache.maven.surefire.booter.ForkedBooter.main(ForkedBooter.java:75)

mvn d公司ependency:tree

  1. [INFO] +- org.springframework.boot:spring-boot-starter:jar:2.3.0.RELEASE:compile
  2. [INFO] | +- org.springframework.boot:spring-boot:jar:2.3.0.RELEASE:compile
  3. [INFO] | +- org.springframework.boot:spring-boot-autoconfigure:jar:2.3.0.RELEASE:compile
  4. [INFO] | +- org.springframework.boot:spring-boot-starter-logging:jar:2.3.0.RELEASE:compile
  5. [INFO] | | +- ch.qos.logback:logback-classic:jar:1.2.3:compile
  6. [INFO] | | | \- ch.qos.logback:logback-core:jar:1.2.3:compile
  7. [INFO] | | +- org.apache.logging.log4j:log4j-to-slf4j:jar:2.13.2:compile
  8. [INFO] | | \- org.slf4j:jul-to-slf4j:jar:1.7.30:compile
  9. [INFO] | +- jakarta.annotation:jakarta.annotation-api:jar:1.3.5:compile
  10. [INFO] | +- org.springframework:spring-core:jar:5.2.6.RELEASE:compile
  11. [INFO] | | \- org.springframework:spring-jcl:jar:5.2.6.RELEASE:compile
  12. [INFO] | \- org.yaml:snakeyaml:jar:1.26:compile
  13. [INFO] +- org.springframework.boot:spring-boot-starter-data-redis:jar:2.3.0.RELEASE:compile
  14. [INFO] | +- org.springframework.data:spring-data-redis:jar:2.3.0.RELEASE:compile
  15. [INFO] | | +- org.springframework.data:spring-data-keyvalue:jar:2.3.0.RELEASE:compile
  16. [INFO] | | +- org.springframework:spring-oxm:jar:5.2.6.RELEASE:compile
  17. [INFO] | | \- org.springframework:spring-aop:jar:5.2.6.RELEASE:compile
  18. [INFO] | \- io.lettuce:lettuce-core:jar:5.3.0.RELEASE:compile
  19. [INFO] | \- io.projectreactor:reactor-core:jar:3.3.5.RELEASE:compile
  20. [INFO] | \- org.reactivestreams:reactive-streams:jar:1.0.3:compile
  21. [INFO] +- com.fasterxml.jackson.datatype:jackson-datatype-jsr310:jar:2.11.3:compile
  22. [INFO] | \- com.fasterxml.jackson.core:jackson-annotations:jar:2.11.3:compile
  23. [INFO] +- org.springframework.boot:spring-boot-starter-quartz:jar:2.3.0.RELEASE:compile
  24. [INFO] | +- org.springframework:spring-context-support:jar:5.2.6.RELEASE:compile
  25. [INFO] | \- org.quartz-scheduler:quartz:jar:2.3.2:compile
  26. [INFO] | \- com.mchange:mchange-commons-java:jar:0.2.15:compile
  27. [INFO] +- com.google.guava:guava:jar:19.0:compile
  28. [INFO] +- io.netty:netty-handler-proxy:jar:4.1.46.Final:compile
  29. [INFO] | +- io.netty:netty-common:jar:4.1.46.Final:compile
  30. [INFO] | +- io.netty:netty-buffer:jar:4.1.46.Final:compile
  31. [INFO] | +- io.netty:netty-transport:jar:4.1.46.Final:compile
  32. [INFO] | +- io.netty:netty-codec:jar:4.1.46.Final:compile
  33. [INFO] | +- io.netty:netty-codec-socks:jar:4.1.46.Final:compile
  34. [INFO] | \- io.netty:netty-codec-http:jar:4.1.46.Final:compile
  35. [INFO] +- io.netty:netty-codec-http2:jar:4.1.46.Final:compile
  36. [INFO] | \- io.netty:netty-handler:jar:4.1.46.Final:compile
  37. [INFO] +- com.bmc.aif:aif-core-grpc-library:jar:1.0.00-SNAPSHOT:compile
  38. [INFO] | +- io.grpc:grpc-netty:jar:1.6.1:compile
  39. [INFO] | +- io.grpc:grpc-core:jar:1.6.1:compile
  40. [INFO] | +- io.grpc:grpc-context:jar:1.6.1:compile
  41. [INFO] | +- com.google.errorprone:error_prone_annotations:jar:2.0.19:compile
  42. [INFO] | +- com.google.code.findbugs:jsr305:jar:3.0.0:compile
  43. [INFO] | +- com.google.instrumentation:instrumentation-api:jar:0.4.3:compile
  44. [INFO] | +- io.opencensus:opencensus-api:jar:0.5.1:compile
  45. [INFO] | +- io.netty:netty-resolver:jar:4.1.46.Final:compile
  46. [INFO] | +- io.grpc:grpc-protobuf:jar:1.6.1:compile
  47. [INFO] | +- com.google.protobuf:protobuf-java:jar:3.3.1:compile
  48. [INFO] | +- com.google.protobuf:protobuf-java-util:jar:3.3.1:compile
  49. [INFO] | +- com.google.api.grpc:proto-google-common-protos:jar:0.1.9:compile
  50. [INFO] | | \- com.google.api:api-common:jar:1.0.0-rc1:compile
  51. [INFO] | | \- com.google.auto.value:auto-value:jar:1.1:compile
  52. [INFO] | +- io.grpc:grpc-protobuf-lite:jar:1.6.1:compile
  53. [INFO] | | \- com.google.protobuf:protobuf-lite:jar:3.0.1:compile
  54. [INFO] | +- io.grpc:grpc-stub:jar:1.6.1:compile
  55. [INFO] | \- javax.annotation:javax.annotation-api:jar:1.2:compile
  56. [INFO] +- com.bmc.aif:kafka-messaging-library:jar:1.0.00-SNAPSHOT:compile
  57. [INFO] | +- org.eclipse.collections:eclipse-collections:jar:10.2.0:compile
  58. [INFO] | \- org.eclipse.collections:eclipse-collections-api:jar:10.2.0:compile
  59. [INFO] +- com.bmc.aif:aif-job-manager-grpc-library:jar:1.0.00-SNAPSHOT:compile
  60. [INFO] +- org.springframework.boot:spring-boot-starter-test:jar:2.3.0.RELEASE:test
  61. [INFO] | +- org.springframework.boot:spring-boot-test:jar:2.3.0.RELEASE:test
  62. [INFO] | +- org.springframework.boot:spring-boot-test-autoconfigure:jar:2.3.0.RELEASE:test
  63. [INFO] | +- com.jayway.jsonpath:json-path:jar:2.4.0:test
  64. [INFO] | | \- net.minidev:json-smart:jar:2.3:test
  65. [INFO] | | \- net.minidev:accessors-smart:jar:1.2:test
  66. [INFO] | | \- org.ow2.asm:asm:jar:5.0.4:test
  67. [INFO] | +- jakarta.xml.bind:jakarta.xml.bind-api:jar:2.3.3:test
  68. [INFO] | | \- jakarta.activation:jakarta.activation-api:jar:1.2.2:test
  69. [INFO] | +- org.assertj:assertj-core:jar:3.16.1:test
  70. [INFO] | +- org.hamcrest:hamcrest:jar:2.2:test
  71. [INFO] | +- org.junit.jupiter:junit-jupiter:jar:5.6.2:test
  72. [INFO] | | +- org.junit.jupiter:junit-jupiter-params:jar:5.6.2:test
  73. [INFO] | | \- org.junit.jupiter:junit-jupiter-engine:jar:5.6.2:test
  74. [INFO] | +- org.junit.vintage:junit-vintage-engine:jar:5.6.2:test
  75. [INFO] | | +- org.apiguardian:apiguardian-api:jar:1.1.0:test
  76. [INFO] | | +- org.junit.platform:junit-platform-engine:jar:1.6.2:test
  77. [INFO] | | \- junit:junit:jar:4.13:test
  78. [INFO] | +- org.mockito:mockito-core:jar:3.3.3:test
  79. [INFO] | | +- net.bytebuddy:byte-buddy-agent:jar:1.10.5:test
  80. [INFO] | | \- org.objenesis:objenesis:jar:2.6:test
  81. [INFO] | +- org.mockito:mockito-junit-jupiter:jar:3.3.3:test
  82. [INFO] | +- org.skyscreamer:jsonassert:jar:1.5.0:test
  83. [INFO] | | \- com.vaadin.external.google:android-json:jar:0.0.20131108.vaadin1:test
  84. [INFO] | +- org.springframework:spring-test:jar:5.2.6.RELEASE:test
  85. [INFO] | \- org.xmlunit:xmlunit-core:jar:2.7.0:test
  86. [INFO] +- org.projectlombok:lombok:jar:1.16.22:provided
  87. [INFO] +- com.h2database:h2:jar:1.4.200:test
  88. [INFO] +- com.fasterxml.jackson.core:jackson-databind:jar:2.11.0:compile
  89. [INFO] +- com.fasterxml.jackson.dataformat:jackson-dataformat-yaml:jar:2.11.0:runtime
  90. [INFO] +- com.fasterxml.jackson.core:jackson-core:jar:2.11.0:compile
  91. [INFO] +- org.springframework:spring-tx:jar:5.2.6.RELEASE:compile
  92. [INFO] | \- org.springframework:spring-beans:jar:5.2.6.RELEASE:compile
  93. [INFO] +- org.springframework.boot:spring-boot-starter-data-jdbc:jar:2.3.0.RELEASE:runtime
  94. [INFO] | +- org.springframework.boot:spring-boot-starter-jdbc:jar:2.3.0.RELEASE:compile
  95. [INFO] | | +- com.zaxxer:HikariCP:jar:3.4.5:compile
  96. [INFO] | | \- org.springframework:spring-jdbc:jar:5.2.6.RELEASE:compile
  97. [INFO] | \- org.springframework.data:spring-data-jdbc:jar:2.0.0.RELEASE:runtime
  98. [INFO] | +- org.springframework.data:spring-data-relational:jar:2.0.0.RELEASE:runtime
  99. [INFO] | \- org.springframework.data:spring-data-commons:jar:2.3.0.RELEASE:compile
  100. [INFO] +- org.postgresql:postgresql:jar:42.2.14:runtime
  101. [INFO] +- javax.xml.bind:jaxb-api:jar:2.2.6:runtime
  102. [INFO] +- org.slf4j:slf4j-api:jar:1.7.30:compile
  103. [INFO] +- net.bytebuddy:byte-buddy:jar:1.10.9:runtime
  104. [INFO] +- com.github.everit-org.json-schema:org.everit.json.schema:jar:1.12.1:compile
  105. [INFO] | +- commons-validator:commons-validator:jar:1.6:compile
  106. [INFO] | | +- commons-digester:commons-digester:jar:1.8.1:compile
  107. [INFO] | | +- commons-logging:commons-logging:jar:1.2:compile
  108. [INFO] | | \- commons-collections:commons-collections:jar:3.2.2:compile
  109. [INFO] | +- com.damnhandy:handy-uri-templates:jar:2.1.8:compile
  110. [INFO] | | \- joda-time:joda-time:jar:2.10.2:compile
  111. [INFO] | \- com.google.re2j:re2j:jar:1.3:compile
  112. [INFO] +- com.bmc.truesight.saas:tspod-library:jar:1.0.00-SNAPSHOT:compile
  113. [INFO] +- com.bmc.ade.core:service-pre-deployment-library:jar:1.0.00-SNAPSHOT:runtime
  114. [INFO] | +- com.bmc.truesight.saas.thirdparty:jackson-databind:jar:2.10.0:compile
  115. [INFO] | +- com.bmc.truesight.saas.thirdparty:jopt-simple:jar:5.0.3:compile
  116. [INFO] | +- com.bmc.truesight.saas.thirdparty:zkclient:jar:0.10:compile
  117. [INFO] | +- com.yammer.metrics:metrics-core:jar:2.2.0:compile
  118. [INFO] | +- org.apache.zookeeper:zookeeper-jute:jar:3.5.6:compile
  119. [INFO] | | \- org.apache.yetus:audience-annotations:jar:0.5.0:compile
  120. [INFO] | +- com.bmc.truesight.saas.thirdparty:jackson-dataformat-yaml:jar:2.10.0:compile
  121. [INFO] | +- org.scala-lang:scala-library:jar:2.12.10:compile
  122. [INFO] | +- com.bmc.truesight.saas.thirdparty:curator-recipes:jar:2.9.0:compile
  123. [INFO] | +- com.bmc.truesight.saas.thirdparty:curator-framework:jar:2.9.0:compile
  124. [INFO] | +- com.bmc.truesight.saas.thirdparty:curator-client:jar:2.9.0:compile
  125. [INFO] | +- org.apache.kafka:kafka_2.12:jar:2.4.1:compile
  126. [INFO] | | +- com.fasterxml.jackson.module:jackson-module-scala_2.12:jar:2.10.0:compile
  127. [INFO] | | | \- com.fasterxml.jackson.module:jackson-module-paranamer:jar:2.10.0:compile
  128. [INFO] | | | \- com.thoughtworks.paranamer:paranamer:jar:2.8:compile
  129. [INFO] | | +- com.fasterxml.jackson.dataformat:jackson-dataformat-csv:jar:2.10.0:compile
  130. [INFO] | | +- com.fasterxml.jackson.datatype:jackson-datatype-jdk8:jar:2.10.0:compile
  131. [INFO] | | +- net.sf.jopt-simple:jopt-simple:jar:5.0.4:compile
  132. [INFO] | | +- org.scala-lang.modules:scala-collection-compat_2.12:jar:2.1.2:compile
  133. [INFO] | | +- org.scala-lang.modules:scala-java8-compat_2.12:jar:0.9.0:compile
  134. [INFO] | | +- com.typesafe.scala-logging:scala-logging_2.12:jar:3.9.2:compile
  135. [INFO] | | \- commons-cli:commons-cli:jar:1.4:compile
  136. [INFO] | +- com.bmc.truesight.saas.thirdparty:zookeeper:jar:3.5.6:compile
  137. [INFO] | +- org.apache.kafka:kafka-streams:jar:2.4.1:runtime
  138. [INFO] | | +- org.apache.kafka:connect-json:jar:2.4.1:runtime
  139. [INFO] | | | \- org.apache.kafka:connect-api:jar:2.4.1:runtime
  140. [INFO] | | \- org.rocksdb:rocksdbjni:jar:5.18.3:runtime
  141. [INFO] | +- com.bmc.truesight.saas.thirdparty:metrics-core:jar:3.2.4:runtime
  142. [INFO] | +- org.scala-lang:scala-reflect:jar:2.12.10:compile
  143. [INFO] | \- com.bmc.truesight.saas.thirdparty:scala-logging_2.12:jar:3.9.0:runtime
  144. [INFO] +- com.bmc.truesight.saas:tspod-library-implv2:jar:1.0.00-SNAPSHOT:compile
  145. [INFO] | +- org.apache.commons:commons-lang3:jar:3.4:compile
  146. [INFO] | +- com.bmc.truesight.saas.thirdparty:slf4j-api:jar:1.7.25:compile
  147. [INFO] | +- com.bmc.truesight.saas.thirdparty:logback-classic:jar:1.2.3:compile
  148. [INFO] | +- com.bmc.truesight.saas.thirdparty:logback-core:jar:1.2.3:compile
  149. [INFO] | +- com.bmc.truesight.saas.thirdparty:netty-codec-http2:jar:4.1.46.Final:compile
  150. [INFO] | +- com.bmc.truesight.saas.thirdparty:netty-common:jar:4.1.46.Final:compile
  151. [INFO] | +- com.bmc.truesight.saas.thirdparty:netty-buffer:jar:4.1.46.Final:compile
  152. [INFO] | +- com.bmc.truesight.saas.thirdparty:netty-codec:jar:4.1.46.Final:compile
  153. [INFO] | +- com.bmc.truesight.saas.thirdparty:netty-codec-http:jar:4.1.46.Final:compile
  154. [INFO] | +- com.bmc.truesight.saas.thirdparty:netty-codec-socks:jar:4.1.46.Final:compile
  155. [INFO] | +- com.bmc.truesight.saas.thirdparty:netty-handler:jar:4.1.46.Final:compile
  156. [INFO] | +- com.bmc.truesight.saas.thirdparty:netty-handler-proxy:jar:4.1.46.Final:compile
  157. [INFO] | +- com.bmc.truesight.saas.thirdparty:netty-resolver:jar:4.1.46.Final:compile
  158. [INFO] | +- com.bmc.truesight.saas.thirdparty:netty-transport:jar:4.1.46.Final:compile
  159. [INFO] | +- org.apache.zookeeper:zookeeper:jar:3.5.6:compile
  160. [INFO] | +- com.bmc.truesight.saas.thirdparty:netty-transport-native-epoll:jar:4.1.46.Final:compile
  161. [INFO] | | \- io.netty:netty-transport-native-unix-common:jar:4.1.46.Final:compile
  162. [INFO] | +- com.bmc.truesight.saas.thirdparty:netty-transport-native-unix-common:jar:4.1.46.Final:compile
  163. [INFO] | +- org.apache.logging.log4j:log4j-1.2-api:jar:2.13.0:compile
  164. [INFO] | | \- org.apache.logging.log4j:log4j-api:jar:2.13.0:compile
  165. [INFO] | +- com.bmc.truesight.saas.thirdparty:curator-x-discovery:jar:2.9.0:compile
  166. [INFO] | +- com.bmc.truesight.saas.thirdparty:grpc-core:jar:1.6.1:compile
  167. [INFO] | +- com.bmc.truesight.saas.thirdparty:jackson-mapper-asl:jar:1.9.13.redhat-2:compile
  168. [INFO] | +- org.codehaus.jackson:jackson-core-asl:jar:1.9.13:compile
  169. [INFO] | +- com.bmc.truesight.saas.thirdparty:jackson-core:jar:2.10.0:compile
  170. [INFO] | +- com.bmc.truesight.saas.thirdparty:jackson-annotations:jar:2.10.0:compile
  171. [INFO] | +- com.bmc.truesight.saas:tspod-commu-service-grpc-library:jar:1.0.00-SNAPSHOT:compile
  172. [INFO] | \- com.bmc.truesight.saas:pre-deployment-library:jar:1.0.00-SNAPSHOT:compile
  173. [INFO] | +- com.bmc.truesight.saas.thirdparty:cassandra-driver-core:jar:3.8.0:compile
  174. [INFO] | +- com.bmc.truesight.saas.thirdparty:guava:jar:19.0:compile
  175. [INFO] | +- com.bmc.truesight.saas.thirdparty:elasticsearch:jar:7.7.0:compile
  176. [INFO] | | +- org.elasticsearch:elasticsearch-core:jar:7.7.0:compile
  177. [INFO] | | +- org.elasticsearch:elasticsearch-secure-sm:jar:7.7.0:compile
  178. [INFO] | | +- org.elasticsearch:elasticsearch-x-content:jar:7.7.0:compile
  179. [INFO] | | +- org.elasticsearch:elasticsearch-geo:jar:7.7.0:compile
  180. [INFO] | | +- org.apache.lucene:lucene-core:jar:8.5.1:compile
  181. [INFO] | | +- org.apache.lucene:lucene-analyzers-common:jar:8.5.1:compile
  182. [INFO] | | +- org.apache.lucene:lucene-backward-codecs:jar:8.5.1:compile
  183. [INFO] | | +- org.apache.lucene:lucene-grouping:jar:8.5.1:compile
  184. [INFO] | | +- org.apache.lucene:lucene-highlighter:jar:8.5.1:compile
  185. [INFO] | | +- org.apache.lucene:lucene-join:jar:8.5.1:compile
  186. [INFO] | | +- org.apache.lucene:lucene-memory:jar:8.5.1:compile
  187. [INFO] | | +- org.apache.lucene:lucene-misc:jar:8.5.1:compile
  188. [INFO] | | +- org.apache.lucene:lucene-queries:jar:8.5.1:compile
  189. [INFO] | | +- org.apache.lucene:lucene-queryparser:jar:8.5.1:compile
  190. [INFO] | | +- org.apache.lucene:lucene-sandbox:jar:8.5.1:compile
  191. [INFO] | | +- org.apache.lucene:lucene-spatial-extras:jar:8.5.1:compile
  192. [INFO] | | +- org.apache.lucene:lucene-spatial3d:jar:8.5.1:compile
  193. [INFO] | | +- org.apache.lucene:lucene-suggest:jar:8.5.1:compile
  194. [INFO] | | +- org.elasticsearch:elasticsearch-cli:jar:7.7.0:compile
  195. [INFO] | | +- com.carrotsearch:hppc:jar:0.8.1:compile
  196. [INFO] | | +- com.tdunning:t-digest:jar:3.2:compile
  197. [INFO] | | \- org.elasticsearch:jna:jar:4.5.1:compile
  198. [INFO] | +- com.bmc.truesight.saas.thirdparty:elasticsearch-core:jar:7.7.0:compile
  199. [INFO] | +- com.bmc.truesight.saas.thirdparty:elasticsearch-x-content:jar:7.7.0:compile
  200. [INFO] | | +- com.fasterxml.jackson.dataformat:jackson-dataformat-smile:jar:2.10.4:compile
  201. [INFO] | | \- com.fasterxml.jackson.dataformat:jackson-dataformat-cbor:jar:2.10.4:compile
  202. [INFO] | +- com.bmc.truesight.saas.thirdparty:transport:jar:7.7.0:compile
  203. [INFO] | | +- org.elasticsearch:elasticsearch:jar:7.7.0:compile
  204. [INFO] | | +- org.elasticsearch.plugin:transport-netty4-client:jar:7.7.0:compile
  205. [INFO] | | +- org.elasticsearch.plugin:reindex-client:jar:7.7.0:compile
  206. [INFO] | | +- org.elasticsearch.plugin:lang-mustache-client:jar:7.7.0:compile
  207. [INFO] | | +- org.elasticsearch.plugin:percolator-client:jar:7.7.0:compile
  208. [INFO] | | +- org.elasticsearch.plugin:parent-join-client:jar:7.7.0:compile
  209. [INFO] | | \- org.elasticsearch.plugin:rank-eval-client:jar:7.7.0:compile
  210. [INFO] | +- com.bmc.truesight.saas.thirdparty:transport-netty4-client:jar:7.7.0:compile
  211. [INFO] | +- com.bmc.truesight.saas.thirdparty:reindex-client:jar:7.7.0:compile
  212. [INFO] | | \- org.elasticsearch:elasticsearch-ssl-config:jar:7.7.0:compile
  213. [INFO] | +- com.bmc.truesight.saas.thirdparty:parent-join-client:jar:7.7.0:compile
  214. [INFO] | +- com.bmc.truesight.saas.thirdparty:lang-mustache-client:jar:7.7.0:compile
  215. [INFO] | | \- com.github.spullara.mustache.java:compiler:jar:0.9.6:compile
  216. [INFO] | +- com.bmc.truesight.saas.thirdparty:percolator-client:jar:7.7.0:compile
  217. [INFO] | +- com.bmc.truesight.saas.thirdparty:elasticsearch-rest-high-level-client:jar:7.7.0:compile
  218. [INFO] | | +- org.elasticsearch.plugin:mapper-extras-client:jar:7.7.0:compile
  219. [INFO] | | \- org.elasticsearch.plugin:aggs-matrix-stats-client:jar:7.7.0:compile
  220. [INFO] | +- com.bmc.truesight.saas.thirdparty:rank-eval-client:jar:7.7.0:compile
  221. [INFO] | +- com.bmc.truesight.saas.thirdparty:lucene-core:jar:8.5.2:compile
  222. [INFO] | +- com.bmc.truesight.saas.thirdparty:lucene-analyzers-common:jar:8.5.2:compile
  223. [INFO] | +- com.bmc.truesight.saas.thirdparty:lucene-backward-codecs:jar:8.5.2:compile
  224. [INFO] | +- com.bmc.truesight.saas.thirdparty:lucene-grouping:jar:8.5.2:compile
  225. [INFO] | +- com.bmc.truesight.saas.thirdparty:lucene-highlighter:jar:8.5.2:compile
  226. [INFO] | +- com.bmc.truesight.saas.thirdparty:lucene-join:jar:8.5.2:compile
  227. [INFO] | +- com.bmc.truesight.saas.thirdparty:lucene-memory:jar:8.5.2:compile
  228. [INFO] | +- com.bmc.truesight.saas.thirdparty:lucene-misc:jar:8.5.2:compile
  229. [INFO] | +- com.bmc.truesight.saas.thirdparty:lucene-queries:jar:8.5.2:compile
  230. [INFO] | +- com.bmc.truesight.saas.thirdparty:lucene-queryparser:jar:8.5.2:compile
  231. [INFO] | +- com.bmc.truesight.saas.thirdparty:lucene-sandbox:jar:8.5.2:compile
  232. [INFO] | +- com.bmc.truesight.saas.thirdparty:lucene-spatial:jar:8.4.1:compile
  233. [INFO] | +- com.bmc.truesight.saas.thirdparty:lucene-spatial-extras:jar:8.5.2:compile
  234. [INFO] | | +- io.sgr:s2-geometry-library-java:jar:1.0.0:compile
  235. [INFO] | | \- org.locationtech.spatial4j:spatial4j:jar:0.7:compile
  236. [INFO] | +- com.bmc.truesight.saas.thirdparty:lucene-suggest:jar:8.5.2:compile
  237. [INFO] | +- com.bmc.truesight.saas.thirdparty:httpclient:jar:4.5.7:compile
  238. [INFO] | +- com.bmc.truesight.saas.thirdparty:httpcore:jar:4.4.11:compile
  239. [INFO] | +- com.bmc.truesight.saas.thirdparty:httpcore-nio:jar:4.4.11:compile
  240. [INFO] | +- com.bmc.truesight.saas.thirdparty:httpasyncclient:jar:4.1.4:compile
  241. [INFO] | +- com.bmc.truesight.saas.thirdparty:commons-codec:jar:1.11:compile
  242. [INFO] | +- com.bmc.truesight.saas.thirdparty:commons-logging:jar:1.1.3:compile
  243. [INFO] | +- com.bmc.truesight.saas.thirdparty:netty-all:jar:4.1.46.Final:compile
  244. [INFO] | +- com.bmc.truesight.saas.thirdparty:compiler:jar:0.9.3:compile
  245. [INFO] | +- com.bmc.truesight.saas.thirdparty:jcl-over-slf4j:jar:1.7.25:compile
  246. [INFO] | +- com.bmc.truesight.saas.thirdparty:log4j-core:jar:2.12.1:compile
  247. [INFO] | +- com.bmc.truesight.saas.thirdparty:log4j-api:jar:2.12.1:compile
  248. [INFO] | +- com.bmc.truesight.saas.thirdparty:jackson-dataformat-cbor:jar:2.10.0:compile
  249. [INFO] | +- com.bmc.truesight.saas.thirdparty:scala-parser-combinators_2.12:jar:1.1.1:compile
  250. [INFO] | +- com.bmc.truesight.saas.thirdparty:scala-library:jar:2.12.6:compile
  251. [INFO] | +- com.bmc.truesight.saas.thirdparty:cassandra-driver-mapping:jar:3.8.0:compile
  252. [INFO] | +- com.bmc.truesight.saas.thirdparty:joda-time:jar:2.10.2:compile
  253. [INFO] | +- com.bmc.truesight.saas.thirdparty:elasticsearch-cli:jar:7.7.0:compile
  254. [INFO] | +- com.bmc.truesight.saas.thirdparty:t-digest:jar:3.2:compile
  255. [INFO] | \- com.bmc.truesight.saas.thirdparty:hppc:jar:0.8.1:compile
  256. [INFO] +- commons-io:commons-io:jar:2.7:compile
  257. [INFO] +- com.bmc.truesight.saas:env-provider-library:jar:1.0.00-SNAPSHOT:compile
  258. [INFO] +- com.bmc.truesight.saas:env-provider-library-impl:jar:1.0.00-SNAPSHOT:compile
  259. [INFO] +- org.json:json:jar:20200518:compile
  260. [INFO] +- io.kubernetes:client-java:jar:8.0.0:compile
  261. [INFO] | +- io.kubernetes:client-java-api:jar:8.0.0:compile
  262. [INFO] | | +- io.sundr:builder-annotations:jar:0.21.0:compile
  263. [INFO] | | | +- io.sundr:sundr-core:jar:0.21.0:compile
  264. [INFO] | | | +- io.sundr:sundr-codegen:jar:0.21.0:compile
  265. [INFO] | | | \- io.sundr:resourcecify-annotations:jar:0.21.0:compile
  266. [INFO] | | +- io.swagger:swagger-annotations:jar:1.5.22:compile
  267. [INFO] | | +- com.squareup.okhttp3:okhttp:jar:3.14.3:compile
  268. [INFO] | | | \- com.squareup.okio:okio:jar:1.17.2:compile
  269. [INFO] | | +- com.squareup.okhttp3:logging-interceptor:jar:3.14.3:compile
  270. [INFO] | | +- io.gsonfire:gson-fire:jar:1.8.3:compile
  271. [INFO] | | \- org.joda:joda-convert:jar:1.2:compile
  272. [INFO] | +- io.kubernetes:client-java-proto:jar:8.0.0:compile
  273. [INFO] | +- commons-codec:commons-codec:jar:1.11:compile
  274. [INFO] | +- org.apache.commons:commons-compress:jar:1.19:compile
  275. [INFO] | +- org.apache.commons:commons-collections4:jar:4.1:compile
  276. [INFO] | \- org.bitbucket.b_c:jose4j:jar:0.7.0:compile
  277. [INFO] +- org.bouncycastle:bcprov-jdk15on:jar:1.66:test
  278. [INFO] +- org.springframework.boot:spring-boot-starter-data-jpa:jar:2.3.0.RELEASE:compile
  279. [INFO] | +- org.springframework.boot:spring-boot-starter-aop:jar:2.3.0.RELEASE:compile
  280. [INFO] | | \- org.aspectj:aspectjweaver:jar:1.9.5:compile
  281. [INFO] | +- jakarta.transaction:jakarta.transaction-api:jar:1.3.3:compile
  282. [INFO] | +- jakarta.persistence:jakarta.persistence-api:jar:2.2.3:compile
  283. [INFO] | +- org.hibernate:hibernate-core:jar:5.4.15.Final:compile
  284. [INFO] | | +- org.jboss.logging:jboss-logging:jar:3.3.2.Final:compile
  285. [INFO] | | +- org.javassist:javassist:jar:3.24.0-GA:compile
  286. [INFO] | | +- antlr:antlr:jar:2.7.7:compile
  287. [INFO] | | +- org.jboss:jandex:jar:2.1.3.Final:compile
  288. [INFO] | | +- com.fasterxml:classmate:jar:1.5.1:compile
  289. [INFO] | | +- org.dom4j:dom4j:jar:2.1.3:compile
  290. [INFO] | | +- org.hibernate.common:hibernate-commons-annotations:jar:5.1.0.Final:compile
  291. [INFO] | | \- org.glassfish.jaxb:jaxb-runtime:jar:2.3.1:compile
  292. [INFO] | | +- org.glassfish.jaxb:txw2:jar:2.3.1:compile
  293. [INFO] | | +- com.sun.istack:istack-commons-runtime:jar:3.0.7:compile
  294. [INFO] | | +- org.jvnet.staxex:stax-ex:jar:1.8:compile
  295. [INFO] | | \- com.sun.xml.fastinfoset:FastInfoset:jar:1.2.15:compile
  296. [INFO] | +- org.springframework.data:spring-data-jpa:jar:2.3.0.RELEASE:compile
  297. [INFO] | | \- org.springframework:spring-orm:jar:5.2.6.RELEASE:compile
  298. [INFO] | \- org.springframework:spring-aspects:jar:5.2.6.RELEASE:compile
  299. [INFO] +- org.apache.kafka:kafka-clients:jar:2.5.0:compile
  300. [INFO] | +- com.github.luben:zstd-jni:jar:1.4.4-7:compile
  301. [INFO] | +- org.lz4:lz4-java:jar:1.7.1:compile
  302. [INFO] | \- org.xerial.snappy:snappy-java:jar:1.1.7.3:compile
  303. [INFO] +-**org.springframework.kafka:spring-kafka-test:jar:2.5.1.RELEASE:test**
  304. [INFO] | +- org.springframework:spring-context:jar:5.2.6.RELEASE:compile
  305. [INFO] | | \- org.springframework:spring-expression:jar:5.2.6.RELEASE:compile
  306. [INFO] | +- org.springframework.retry:spring-retry:jar:1.2.5.RELEASE:compile
  307. [INFO] | +-**org.apache.kafka:kafka-clients:jar:test:2.5.0:test**
  308. [INFO] | +- org.apache.kafka:kafka-streams-test-utils:jar:2.5.0:test
  309. [INFO] | +- org.apache.kafka:kafka_2.12:jar:test:2.5.0:test
  310. [INFO] | \- org.junit.jupiter:junit-jupiter-api:jar:5.6.2:test
  311. [INFO] | +- org.opentest4j:opentest4j:jar:1.2.0:test
  312. [INFO] | \- org.junit.platform:junit-platform-commons:jar:1.6.2:test
  313. [INFO] +-**org.springframework.kafka:spring-kafka:jar:2.5.1.RELEASE:compile**
  314. [INFO] | \- org.springframework:spring-messaging:jar:5.2.6.RELEASE:compile
  315. [INFO] +- com.google.code.gson:gson:jar:2.8.6:compile
  316. [INFO] +- org.flywaydb:flyway-core:jar:6.5.0:compile
  317. [INFO] +- com.bmc.ade:ims-java-sdk:jar:0.0.7:compile
  318. [INFO] | +- org.slf4j:slf4j-log4j12:jar:1.7.21:compile
  319. [INFO] | | \- log4j:log4j:jar:1.2.17:compile
  320. [INFO] | +- com.auth0:java-jwt:jar:3.3.0:compile
  321. [INFO] | \- org.apache.httpcomponents:httpclient:jar:4.5.5:compile
  322. [INFO] | \- org.apache.httpcomponents:httpcore:jar:4.4.9:compile
  323. [INFO] +- org.springframework.boot:spring-boot-starter-actuator:jar:2.3.0.RELEASE:compile
  324. [INFO] | +- org.springframework.boot:spring-boot-actuator-autoconfigure:jar:2.3.0.RELEASE:compile
  325. [INFO] | | \- org.springframework.boot:spring-boot-actuator:jar:2.3.0.RELEASE:compile
  326. [INFO] | \- io.micrometer:micrometer-core:jar:1.5.1:compile
  327. [INFO] | +- org.hdrhistogram:HdrHistogram:jar:2.1.12:compile
  328. [INFO] | \- org.latencyutils:LatencyUtils:jar:2.0.3:runtime
  329. [INFO] \- io.micrometer:micrometer-registry-prometheus:jar:1.5.3:compile
  330. [INFO] \- io.prometheus:simpleclient_common:jar:0.8.1:compile
  331. [INFO] \- io.prometheus:simpleclient:jar:0.8.1:compile
bqf10yzr

bqf10yzr1#

Spring Boot2.3(目前为2.3.6)需要SpringKafka2.5(目前为2.5.8)。
通常,您不应该为引导依赖项指定版本;boot将正确引入其兼容版本。

093gszye

093gszye2#

要添加到gary的评论中,如果您仍然希望自己管理依赖项,可以参考此处的兼容性矩阵:https://spring.io/projects/spring-kafka
spring kafka 2.5.x+kafka客户端2.5.0+spring boot 2.3.x
在您的情况下,我假设springboot是主导,您将需要升级kafka客户机+springkafka。

相关问题