You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@kafka.apache.org by Satish Duggana <sa...@gmail.com> on 2016/09/13 06:13:01 UTC
Not able to download tests jar of kafka and kafka-streams from maven repo.
Hi,
Below dependency is added in one of our repos to use EmbeddedKafkaCluster
but dependency installation fails with an error mentioned later.
<dependency>
<groupId>org.apache.kafka</groupId>
<artifactId>kafka-streams</artifactId>
<version>0.10.0.0</version>
<type>test-jar</type>
<scope>test</scope>
</dependency>
This fails with an error below as
https://repository.apache.org/content/repositories/snapshots/org/apache/kafka/kafka-streams/0.10.0.0/kafka-streams-0.10.0.0-tests.jar
not available. But
https://repository.apache.org/content/repositories/snapshots/org/apache/kafka/kafka-streams/0.10.0.0/kafka-streams-0.10.0.0-test.jar
is available. You may need to fix POM to install right name which is
kafka-streams-0.10.0.0-test.jar instead of kafka-streams-0.10.0.0-tests.jar
[ERROR] Failed to execute goal on project schema-registry-avro: Could not
resolve dependencies for project
com.hortonworks.registries:schema-registry-avro:jar:0.1.0-SNAPSHOT: The
following artifacts could not be resolved:
org.apache.kafka:kafka-clients:jar:tests:0.10.0.0,
org.apache.kafka:kafka-streams:jar:tests:0.10.0.0: Could not find artifact
org.apache.kafka:kafka-clients:jar:tests:0.10.0.0 in central (
http://repo1.maven.org/maven2/) -> [Help 1]
JIRA is raised at https://issues.apache.org/jira/browse/KAFKA-4156.
Thanks,
Satish.
Re: Not able to download tests jar of kafka and kafka-streams from
maven repo.
Posted by Manikumar Reddy <ma...@gmail.com>.
adding missing classifier parameter..
<dependency>
<groupId>org.apache.kafka</groupId>
<artifactId>kafka-streams</artifactId>
<version>0.10.0.0</version>
<type>test-jar</type>
<classifier>test</classifier>
</dependency>
On Tue, Sep 13, 2016 at 12:07 PM, Manikumar Reddy <manikumar.reddy@gmail.com
> wrote:
> Hi,
>
> Kafka uses "test" as classifier (default is "tests" ) for test jars.
> We can add <classifier>test</classifier> parameter to dependency tag to
> resolve the error.
>
> <dependency>
> <groupId>org.apache.kafka</groupId>
> <artifactId>kafka-streams</artifactId>
> <version>0.10.0.0</version>
> <type>test-jar</type>
> <scope>test</scope>
> </dependency>
>
> Thanks
> Manikumar
>
> On Tue, Sep 13, 2016 at 11:43 AM, Satish Duggana <satish.duggana@gmail.com
> > wrote:
>
>> Hi,
>>
>> Below dependency is added in one of our repos to use EmbeddedKafkaCluster
>> but dependency installation fails with an error mentioned later.
>>
>> <dependency>
>> <groupId>org.apache.kafka</groupId>
>> <artifactId>kafka-streams</artifactId>
>> <version>0.10.0.0</version>
>> <type>test-jar</type>
>> <scope>test</scope>
>> </dependency>
>>
>> This fails with an error below as
>> https://repository.apache.org/content/repositories/snapshots
>> /org/apache/kafka/kafka-streams/0.10.0.0/kafka-streams-0.10.0.0-tests.jar
>> not available. But
>> https://repository.apache.org/content/repositories/snapshots
>> /org/apache/kafka/kafka-streams/0.10.0.0/kafka-streams-0.10.0.0-test.jar
>> is available. You may need to fix POM to install right name which is
>> kafka-streams-0.10.0.0-test.jar instead of kafka-streams-0.10.0.0-tests.j
>> ar
>>
>>
>> [ERROR] Failed to execute goal on project schema-registry-avro: Could not
>> resolve dependencies for project
>> com.hortonworks.registries:schema-registry-avro:jar:0.1.0-SNAPSHOT: The
>> following artifacts could not be resolved:
>> org.apache.kafka:kafka-clients:jar:tests:0.10.0.0,
>> org.apache.kafka:kafka-streams:jar:tests:0.10.0.0: Could not find
>> artifact
>> org.apache.kafka:kafka-clients:jar:tests:0.10.0.0 in central (
>> http://repo1.maven.org/maven2/) -> [Help 1]
>>
>>
>> JIRA is raised at https://issues.apache.org/jira/browse/KAFKA-4156.
>>
>> Thanks,
>> Satish.
>>
>
>
Re: Not able to download tests jar of kafka and kafka-streams from
maven repo.
Posted by Manikumar Reddy <ma...@gmail.com>.
Hi,
Kafka uses "test" as classifier (default is "tests" ) for test jars.
We can add <classifier>test</classifier> parameter to dependency tag to
resolve the error.
<dependency>
<groupId>org.apache.kafka</groupId>
<artifactId>kafka-streams</artifactId>
<version>0.10.0.0</version>
<type>test-jar</type>
<scope>test</scope>
</dependency>
Thanks
Manikumar
On Tue, Sep 13, 2016 at 11:43 AM, Satish Duggana <sa...@gmail.com>
wrote:
> Hi,
>
> Below dependency is added in one of our repos to use EmbeddedKafkaCluster
> but dependency installation fails with an error mentioned later.
>
> <dependency>
> <groupId>org.apache.kafka</groupId>
> <artifactId>kafka-streams</artifactId>
> <version>0.10.0.0</version>
> <type>test-jar</type>
> <scope>test</scope>
> </dependency>
>
> This fails with an error below as
> https://repository.apache.org/content/repositories/
> snapshots/org/apache/kafka/kafka-streams/0.10.0.0/kafka-
> streams-0.10.0.0-tests.jar
> not available. But
> https://repository.apache.org/content/repositories/
> snapshots/org/apache/kafka/kafka-streams/0.10.0.0/kafka-
> streams-0.10.0.0-test.jar
> is available. You may need to fix POM to install right name which is
> kafka-streams-0.10.0.0-test.jar instead of kafka-streams-0.10.0.0-tests.
> jar
>
>
> [ERROR] Failed to execute goal on project schema-registry-avro: Could not
> resolve dependencies for project
> com.hortonworks.registries:schema-registry-avro:jar:0.1.0-SNAPSHOT: The
> following artifacts could not be resolved:
> org.apache.kafka:kafka-clients:jar:tests:0.10.0.0,
> org.apache.kafka:kafka-streams:jar:tests:0.10.0.0: Could not find artifact
> org.apache.kafka:kafka-clients:jar:tests:0.10.0.0 in central (
> http://repo1.maven.org/maven2/) -> [Help 1]
>
>
> JIRA is raised at https://issues.apache.org/jira/browse/KAFKA-4156.
>
> Thanks,
> Satish.
>