[ https://issues.apache.org/jira/browse/KAFKA-7741?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16751680#comment-16751680 ]
Colin P. McCabe edited comment on KAFKA-7741 at 1/24/19 11:13 PM: ------------------------------------------------------------------ bq. The fix is merged, so I'll update the fix versions. I still need to update the documentation with a workaround for the versions that are already released. Hi John, Thanks for working on this. The fix has been merged, so I think it's better for the JIRA to be closed. If you want to implement a different fix for some older Kafka versions, it's probably better to open a separate JIRA for that and link it here. Otherwise, it creates confusion. For example, people might want to know if this is fixed in 2.1.1 (which it is). But if they look at this JIRA and see that it is open, people will get the impression that it is not fixed. was (Author: cmccabe): bq. The fix is merged, so I'll update the fix versions. I still need to update the documentation with a workaround for the versions that are already released. bq. Hi John, Thanks for working on this. The fix has been merged, so the JIRA should properly be considered closed. If you want to implement a different fix for some older Kafka versions, please open a separate JIRA for that and link it here. Otherwise, it creates confusion. For example, people might want to know if this is fixed in 2.1.1. It is, of course. But if they look at this JIRA and see that it is open, people will get the impression that it is not fixed. > Bad dependency via SBT > ---------------------- > > Key: KAFKA-7741 > URL: https://issues.apache.org/jira/browse/KAFKA-7741 > Project: Kafka > Issue Type: Bug > Components: streams > Affects Versions: 2.0.0, 2.0.1, 2.1.0 > Environment: Windows 10 professional, IntelliJ IDEA 2017.1 > Reporter: sacha barber > Assignee: John Roesler > Priority: Major > Fix For: 2.2.0, 2.1.1, 2.0.2 > > > I am using the Kafka-Streams-Scala 2.1.0 JAR. > And if I create a new Scala project using SBT with these dependencies > {code} > name := "ScalaKafkaStreamsDemo" > version := "1.0" > scalaVersion := "2.12.1" > libraryDependencies += "org.apache.kafka" %% "kafka" % "2.0.0" > libraryDependencies += "org.apache.kafka" % "kafka-clients" % "2.0.0" > libraryDependencies += "org.apache.kafka" % "kafka-streams" % "2.0.0" > libraryDependencies += "org.apache.kafka" %% "kafka-streams-scala" % "2.0.0" > //TEST > libraryDependencies += "org.scalatest" %% "scalatest" % "3.0.5" % Test > libraryDependencies += "org.apache.kafka" % "kafka-streams-test-utils" % > "2.0.0" % Test > {code} > I get this error > > {code} > SBT 'ScalaKafkaStreamsDemo' project refresh failed > Error:Error while importing SBT project:<br/>...<br/><pre>[info] Resolving > jline#jline;2.14.1 ... > [warn] [FAILED ] > javax.ws.rs#javax.ws.rs-api;2.1.1!javax.ws.rs-api.${packaging.type}: (0ms) > [warn] ==== local: tried > [warn] > C:\Users\sacha\.ivy2\local\javax.ws.rs\javax.ws.rs-api\2.1.1\${packaging.type}s\javax.ws.rs-api.${packaging.type} > [warn] ==== public: tried > [warn] > https://repo1.maven.org/maven2/javax/ws/rs/javax.ws.rs-api/2.1.1/javax.ws.rs-api-2.1.1.${packaging.type} > [info] downloading > https://repo1.maven.org/maven2/org/apache/kafka/kafka-streams-test-utils/2.1.0/kafka-streams-test-utils-2.1.0.jar > ... > [info] [SUCCESSFUL ] > org.apache.kafka#kafka-streams-test-utils;2.1.0!kafka-streams-test-utils.jar > (344ms) > [warn] :::::::::::::::::::::::::::::::::::::::::::::: > [warn] :: FAILED DOWNLOADS :: > [warn] :: ^ see resolution messages for details ^ :: > [warn] :::::::::::::::::::::::::::::::::::::::::::::: > [warn] :: javax.ws.rs#javax.ws.rs-api;2.1.1!javax.ws.rs-api.${packaging.type} > [warn] :::::::::::::::::::::::::::::::::::::::::::::: > [trace] Stack trace suppressed: run 'last *:ssExtractDependencies' for the > full output. > [trace] Stack trace suppressed: run 'last *:update' for the full output. > [error] (*:ssExtractDependencies) sbt.ResolveException: download failed: > javax.ws.rs#javax.ws.rs-api;2.1.1!javax.ws.rs-api.${packaging.type} > [error] (*:update) sbt.ResolveException: download failed: > javax.ws.rs#javax.ws.rs-api;2.1.1!javax.ws.rs-api.${packaging.type} > [error] Total time: 8 s, completed 16-Dec-2018 19:27:21 > Java HotSpot(TM) 64-Bit Server VM warning: ignoring option MaxPermSize=384M; > support was removed in 8.0</pre><br/>See complete log in <a > href="file:/C:/Users/sacha/.IdeaIC2017.1/system/log/sbt.last.log">file:/C:/Users/sacha/.IdeaIC2017.1/system/log/sbt.last.log</a> > {code} > This seems to be a common issue with bad dependency from Kafka to > javax.ws.rs-api. > if I drop the Kafka version down to 2.0.0 and add this line to my SBT file > this error goes away > {code} > libraryDependencies += "javax.ws.rs" % "javax.ws.rs-api" % "2.1" > artifacts(Artifact("javax.ws.rs-api", "jar", "jar"))` > {code} > > However I would like to work with 2.1.0 version. > > -- This message was sent by Atlassian JIRA (v7.6.3#76005)