You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@kafka.apache.org by David Novogrodsky <da...@gmail.com> on 2014/05/02 16:32:30 UTC
building consumers with Kafka 0.8.1 but POM (Maven build tool) not working
I am creating some consumers and producers to test against some Kafka
queues. I am getting this error when I try to build or test the code using
Maven:
--
[ERROR] Failed to execute goal on project Kafka_test: Could not resolve
dependencies for project com.cat:Kafka_test:jar:1.0-SNAPSHOT: The following
artifacts could not be resolved: javax.jms:jms:jar:1.1,
com.sun.jdmk:jmxtools:jar:1.2.1, com.sun.jmx:jmxri:jar:1.2.1: Could not
transfer artifact javax.jms:jms:jar:1.1 from/to java.net (
https://maven-repository.dev.java.net/nonav/repository): No connector
available to access repository java.net (
https://maven-repository.dev.java.net/nonav/repository) of type legacy
using the available factories WagonRepositoryConnectorFactory -> [Help 1]
--
I am using this POM
<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="
http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://maven.apache.org/POM/4.0.0
http://maven.apache.org/xsd/maven-4.0.0.xsd">
<modelVersion>4.0.0</modelVersion>
<groupId>com.xxxXXXxx</groupId>
<artifactId>Kafka_test</artifactId>
<version>1.0-SNAPSHOT</version>
<packaging>jar</packaging>
<name>Kafka_test</name>
<url>http://maven.apache.org</url>
<properties>
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
</properties>
<dependencies>
<dependency>
<groupId>org.apache.kafka</groupId>
<artifactId>kafka_2.8.2</artifactId>
<version>0.8.1</version>
</dependency>
<dependency>
<groupId>junit</groupId>
<artifactId>junit</artifactId>
<version>4.11</version>
<scope>test</scope>
</dependency>
</dependencies>
</project>
David Novogrodsky
david.novogrodsky@gmail.com
http://www.linkedin.com/in/davidnovogrodsky