kafka-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From David Novogrodsky <david.novogrod...@gmail.com>
Subject building consumers with Kafka 0.8.1 but POM (Maven build tool) not working
Date Fri, 02 May 2014 14:32:30 GMT
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

Mime
  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message