I included these in my pom.xml (the first two I put in our own maven repository 
for now out of the sbt build - I wasn't sure what version of zkclient is 
included with kafka - note the former is just the built kafka jar) - I have 
scala.version set to 2.9.2 which was what I got 0.7 to build with.

        <dependency>
            <groupId>com.vast.temporary</groupId>
            <artifactId>kafka</artifactId>
            <version>0.7.0-SNAPSHOT</version>
        </dependency>

        <dependency>
            <groupId>com.vast.temporary</groupId>
            <artifactId>zkclient</artifactId>
            <version>20110412-SNAPSHOT</version>
        </dependency>

        <dependency>
            <groupId>org.scala-lang</groupId>
            <artifactId>scala-library</artifactId>
            <version>${scala.version}</version>
        </dependency>

        <dependency>
            <groupId>org.apache.zookeeper</groupId>
            <artifactId>zookeeper</artifactId>
            <version>3.3.3</version>
            <exclusions>
                <exclusion>
                    <groupId>com.sun.jmx</groupId>
                    <artifactId>jmxri</artifactId>
                </exclusion>
                <exclusion>
                    <groupId>com.sun.jdmk</groupId>
                    <artifactId>jmxtools</artifactId>
                </exclusion>
                <exclusion>
                    <groupId>javax.jms</groupId>
                    <artifactId>jms</artifactId>
                </exclusion>
            </exclusions>
        </dependency>

        <dependency>
            <groupId>org.slf4j</groupId>
            <artifactId>log4j-over-slf4j</artifactId>
            <scope>runtime</scope>
        </dependency>

On Jul 17, 2012, at 1:38 PM, Joe Stein wrote:

> The latest release is 0.7.1 http://incubator.apache.org/kafka/downloads.html
> 
> once un packaged
> 
> ./sbt update
> ./sbt package
> 
> to build the kafka jar from source
> 
> On Tue, Jul 17, 2012 at 2:23 PM, Ajit Koti <ajitk...@gmail.com> wrote:
> 
>> Hello,
>> 
>> New to Kafka
>> 
>> And have an existing java project where I want to use kafka and I use maven
>> as my build tool.
>> 
>> So is there anyway , I can build kafka as maven project , or build a jar
>> out of kafka source code ..
>> 
>> 
>> Thanks
>> Ajit
>> 
> 
> 
> 
> -- 
> 
> /*
> Joe Stein
> http://www.linkedin.com/in/charmalloc
> Twitter: @allthingshadoop <http://www.twitter.com/allthingshadoop>
> */

Attachment: smime.p7s
Description: S/MIME cryptographic signature

Reply via email to