You are viewing a plain text version of this content. The canonical link for it is here.
Posted to jira@kafka.apache.org by "Randall Hauch (JIRA)" <ji...@apache.org> on 2018/06/10 16:24:00 UTC
[jira] [Comment Edited] (KAFKA-7031) Kafka Connect API module
depends on Jersey
[ https://issues.apache.org/jira/browse/KAFKA-7031?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16507425#comment-16507425 ]
Randall Hauch edited comment on KAFKA-7031 at 6/10/18 4:23 PM:
---------------------------------------------------------------
The KIP-285 changes appear to be bringing in {{javax.ws.rs.core.Configurable}}, but rather than just bringing in the WS-RS API library (e.g., {{javax.ws.rs:javax.ws.rs-api:jar:2.1:compile}}) it is bringing in all of Jersey.
We either need to include only the API JAR(s) that is / are necessary, or we need to re-evaluate whether the Connect API should expose that.
was (Author: rhauch):
The KIP-285 changes appear to be bringing in {{javax.ws.rs.core.Configurable}}, but rather than just bringing in the JAX-RS API library (e.g., {{javax.ws.rs:javax.ws.rs-api:jar:2.1:compile}}) it is bringing in all of Jersey.
> Kafka Connect API module depends on Jersey
> ------------------------------------------
>
> Key: KAFKA-7031
> URL: https://issues.apache.org/jira/browse/KAFKA-7031
> Project: Kafka
> Issue Type: Bug
> Components: KafkaConnect
> Affects Versions: 2.0.0
> Reporter: Randall Hauch
> Assignee: Magesh kumar Nandakumar
> Priority: Blocker
> Fix For: 2.0.0
>
>
> The Kafka Connect API module for 2.0.0 brings in Jersey dependencies. When I run {{mvn dependency:tree}} on a project that depends only on the snapshot version of {{org.apache.kafka:kafka-connect-api}}, the following are shown:
> {noformat}
> [INFO] +- org.apache.kafka:connect-api:jar:2.0.0-SNAPSHOT:compile
> [INFO] | +- org.slf4j:slf4j-api:jar:1.7.25:compile
> [INFO] | \- org.glassfish.jersey.containers:jersey-container-servlet:jar:2.27:compile
> [INFO] | +- org.glassfish.jersey.containers:jersey-container-servlet-core:jar:2.27:compile
> [INFO] | | \- org.glassfish.hk2.external:javax.inject:jar:2.5.0-b42:compile
> [INFO] | +- org.glassfish.jersey.core:jersey-common:jar:2.27:compile
> [INFO] | | +- javax.annotation:javax.annotation-api:jar:1.2:compile
> [INFO] | | \- org.glassfish.hk2:osgi-resource-locator:jar:1.0.1:compile
> [INFO] | +- org.glassfish.jersey.core:jersey-server:jar:2.27:compile
> [INFO] | | +- org.glassfish.jersey.core:jersey-client:jar:2.27:compile
> [INFO] | | +- org.glassfish.jersey.media:jersey-media-jaxb:jar:2.27:compile
> [INFO] | | \- javax.validation:validation-api:jar:1.1.0.Final:compile
> [INFO] | \- javax.ws.rs:javax.ws.rs-api:jar:2.1:compile
> ...
> {noformat}
> This may have been an unintended side effect of the [KIP-285|https://cwiki.apache.org/confluence/display/KAFKA/KIP-285%3A+Connect+Rest+Extension+Plugin] effort, which added the REST extension for Connect.
--
This message was sent by Atlassian JIRA
(v7.6.3#76005)