You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@kafka.apache.org by Waleed Fateem <wa...@gmail.com> on 2017/10/01 18:02:23 UTC
Can't build Kafka project
Hi everyone,
I'm quite new to Kafka from a development perspective and I'm having some
issues building the project in Eclipse.
I recall being able to do this with the Kafka 0.10.2 source code, but now
I'm having issues with the 0.11 code.
Steps done so far:
- git clone https://github.com/apache/kafka.git
Ran the following from /kafka directory:
- gradle
- ./gradlew jar
- ./gradlew eclipse
I went ahead and imported the project in Eclipse and attempted to build it,
but the 'streams' project is failing to build with the following error:
Project 'streams' is missing required library:
'/Users/waleed/git/apache/kafka/core/build/classes/java/test' streams
Any pointers would be greatly appreciated.
Thank you.
Waleed
Re: Can't build Kafka project
Posted by Ted Yu <yu...@gmail.com>.
Can you try including 'compileTestJava' in the gradlew command ?
On Sun, Oct 1, 2017 at 12:20 PM, Waleed Fateem <wa...@gmail.com>
wrote:
> Thanks Ted,
>
> But do I have to modify this manually or was this supposed to be done after
> the project is built?
>
> I'm missing the following:
>
> /kafka/core/build/classes/java/test
>
> The core project itself doesn't have any java test source code under src/
>
>
>
>
>
> On Sun, Oct 1, 2017 at 1:04 PM, Ted Yu <yu...@gmail.com> wrote:
>
> > In streams/.classpath , you should have the following lines:
> >
> > <classpathentry kind="lib"
> > path="/Users/tyu/kafka/clients/build/classes/java/test"/>
> > <classpathentry kind="lib"
> > path="/Users/tyu/kafka/core/build/classes/java/test"/>
> > <classpathentry kind="lib"
> > path="/Users/tyu/kafka/streams//build/classes/java/test"/>
> > <classpathentry kind="lib"
> > path="/Users/tyu/kafka/streams//build/classes/java/main"/>
> > <classpathentry kind="lib"
> > path="/Users/tyu/kafka/core/build/classes/scala/test"/>
> >
> > FYI
> >
> > On Sun, Oct 1, 2017 at 11:02 AM, Waleed Fateem <wa...@gmail.com>
> > wrote:
> >
> > > Hi everyone,
> > >
> > > I'm quite new to Kafka from a development perspective and I'm having
> some
> > > issues building the project in Eclipse.
> > >
> > > I recall being able to do this with the Kafka 0.10.2 source code, but
> now
> > > I'm having issues with the 0.11 code.
> > >
> > > Steps done so far:
> > >
> > > - git clone https://github.com/apache/kafka.git
> > >
> > > Ran the following from /kafka directory:
> > >
> > > - gradle
> > >
> > > - ./gradlew jar
> > >
> > > - ./gradlew eclipse
> > >
> > > I went ahead and imported the project in Eclipse and attempted to build
> > it,
> > > but the 'streams' project is failing to build with the following error:
> > >
> > >
> > > Project 'streams' is missing required library:
> > > '/Users/waleed/git/apache/kafka/core/build/classes/java/test' streams
> > >
> > > Any pointers would be greatly appreciated.
> > >
> > > Thank you.
> > >
> > > Waleed
> > >
> >
>
Re: Can't build Kafka project
Posted by Waleed Fateem <wa...@gmail.com>.
Thanks Ted,
But do I have to modify this manually or was this supposed to be done after
the project is built?
I'm missing the following:
/kafka/core/build/classes/java/test
The core project itself doesn't have any java test source code under src/
On Sun, Oct 1, 2017 at 1:04 PM, Ted Yu <yu...@gmail.com> wrote:
> In streams/.classpath , you should have the following lines:
>
> <classpathentry kind="lib"
> path="/Users/tyu/kafka/clients/build/classes/java/test"/>
> <classpathentry kind="lib"
> path="/Users/tyu/kafka/core/build/classes/java/test"/>
> <classpathentry kind="lib"
> path="/Users/tyu/kafka/streams//build/classes/java/test"/>
> <classpathentry kind="lib"
> path="/Users/tyu/kafka/streams//build/classes/java/main"/>
> <classpathentry kind="lib"
> path="/Users/tyu/kafka/core/build/classes/scala/test"/>
>
> FYI
>
> On Sun, Oct 1, 2017 at 11:02 AM, Waleed Fateem <wa...@gmail.com>
> wrote:
>
> > Hi everyone,
> >
> > I'm quite new to Kafka from a development perspective and I'm having some
> > issues building the project in Eclipse.
> >
> > I recall being able to do this with the Kafka 0.10.2 source code, but now
> > I'm having issues with the 0.11 code.
> >
> > Steps done so far:
> >
> > - git clone https://github.com/apache/kafka.git
> >
> > Ran the following from /kafka directory:
> >
> > - gradle
> >
> > - ./gradlew jar
> >
> > - ./gradlew eclipse
> >
> > I went ahead and imported the project in Eclipse and attempted to build
> it,
> > but the 'streams' project is failing to build with the following error:
> >
> >
> > Project 'streams' is missing required library:
> > '/Users/waleed/git/apache/kafka/core/build/classes/java/test' streams
> >
> > Any pointers would be greatly appreciated.
> >
> > Thank you.
> >
> > Waleed
> >
>
Re: Can't build Kafka project
Posted by Ted Yu <yu...@gmail.com>.
In streams/.classpath , you should have the following lines:
<classpathentry kind="lib"
path="/Users/tyu/kafka/clients/build/classes/java/test"/>
<classpathentry kind="lib"
path="/Users/tyu/kafka/core/build/classes/java/test"/>
<classpathentry kind="lib"
path="/Users/tyu/kafka/streams//build/classes/java/test"/>
<classpathentry kind="lib"
path="/Users/tyu/kafka/streams//build/classes/java/main"/>
<classpathentry kind="lib"
path="/Users/tyu/kafka/core/build/classes/scala/test"/>
FYI
On Sun, Oct 1, 2017 at 11:02 AM, Waleed Fateem <wa...@gmail.com>
wrote:
> Hi everyone,
>
> I'm quite new to Kafka from a development perspective and I'm having some
> issues building the project in Eclipse.
>
> I recall being able to do this with the Kafka 0.10.2 source code, but now
> I'm having issues with the 0.11 code.
>
> Steps done so far:
>
> - git clone https://github.com/apache/kafka.git
>
> Ran the following from /kafka directory:
>
> - gradle
>
> - ./gradlew jar
>
> - ./gradlew eclipse
>
> I went ahead and imported the project in Eclipse and attempted to build it,
> but the 'streams' project is failing to build with the following error:
>
>
> Project 'streams' is missing required library:
> '/Users/waleed/git/apache/kafka/core/build/classes/java/test' streams
>
> Any pointers would be greatly appreciated.
>
> Thank you.
>
> Waleed
>