You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@hbase.apache.org by lars hofhansl <lh...@yahoo.com> on 2012/11/30 01:21:28 UTC
Eclipse build broken?
The hbase-it project appears to have a bogus reference to resource in the hbase-server project.
Removing that reference fixes the build problem. Is that correct?
Enis, could you have a look at it?
-- Lars
Re: Eclipse build broken?
Posted by Nick Dimiduk <nd...@gmail.com>.
Would a symlink solve this issue cleanly? I'm not sure this solution would
work on Windows.
On Nov 30, 2012 11:42 AM, "Enis Söztutar" <en...@gmail.com> wrote:
> From hbase-it/pom.xml:
>
> <testResource>
> <!-- We depend on hbase-server test resources -->
> <directory>../hbase-server/src/test/resources</directory>
> </testResource>
>
> We need this because, hbase-site.xml for tests is under
> hbase-server/src//test. Although hbase-it depends on hbase-server test-jar
> in the test scope, maven does not include the test resources (I think we
> exclude them from test-jar). So in order to execute tests in hbase-it with
> the hbase-site.xml stored in hbase-server/src/test/resources, I did put a
> dependency there.
>
> I cannot repro this easily. If the problem does not go away with
> eclipse:clean, can you file a jira.
>
> Enis
>
> On Fri, Nov 30, 2012 at 6:12 AM, Andrew Purtell <ap...@apache.org>
> wrote:
>
> > path="/usr/src/Hadoop/hbase/hbase-server/src/test/resources"
> >
>
Re: Eclipse build broken?
Posted by Enis Söztutar <en...@gmail.com>.
>From hbase-it/pom.xml:
<testResource>
<!-- We depend on hbase-server test resources -->
<directory>../hbase-server/src/test/resources</directory>
</testResource>
We need this because, hbase-site.xml for tests is under
hbase-server/src//test. Although hbase-it depends on hbase-server test-jar
in the test scope, maven does not include the test resources (I think we
exclude them from test-jar). So in order to execute tests in hbase-it with
the hbase-site.xml stored in hbase-server/src/test/resources, I did put a
dependency there.
I cannot repro this easily. If the problem does not go away with
eclipse:clean, can you file a jira.
Enis
On Fri, Nov 30, 2012 at 6:12 AM, Andrew Purtell <ap...@apache.org> wrote:
> path="/usr/src/Hadoop/hbase/hbase-server/src/test/resources"
>
Re: Eclipse build broken?
Posted by Andrew Purtell <ap...@apache.org>.
Tried it again just now, this shows up in the .classpath file for hbase-it:
<classpathentry kind="src"
path="/usr/src/Hadoop/hbase/hbase-server/src/test/resources"
output="target/test-classes" excluding="**/*.java"/>
Everything else is relative paths, paths prefixed with M2_REPO, or project
references.
On Fri, Nov 30, 2012 at 8:42 PM, Andrew Purtell <ap...@apache.org> wrote:
> I saw this last week too, same issue in my eclipse environment after
> regenerating via mvn eclipse:eclipse to account for the new modules.
>
>
> On Friday, November 30, 2012, lars hofhansl wrote:
>
>> The reference in my Eclipse looks like this (in the hbase-it module):
>>
>> /home/lars/dev/hbase-trunk/hbase-server/src/test/resources
>>
>>
>> Which is strange on two accounts:
>> 1. Why is this an absolute path?
>> 2. Why does it point to a resource in the hbase-server module?
>>
>> I'll try eclipse:clean and see what happens.
>>
>> -- Lars
>>
>>
>> ----- Original Message -----
>> From: Enis Söztutar <en...@gmail.com>
>> To: "dev@hbase.apache.org" <de...@hbase.apache.org>
>> Cc: lars hofhansl <lh...@yahoo.com>
>> Sent: Thursday, November 29, 2012 6:06 PM
>> Subject: Re: Eclipse build broken?
>>
>> I've done:
>>
>> git pull origin trunk
>> mvn clean install -DskipTests
>> Eclipse -> import maven project
>>
>> Did not get any problems.
>>
>> Recent issues committed into hbase-it are:
>> HBASE-7225 and HBASE-7200
>>
>> Lars, what is the offending reference?
>>
>>
>> On Thu, Nov 29, 2012 at 5:51 PM, Enis Söztutar <en...@gmail.com>
>> wrote:
>>
>> > Let me get a fresh checkout and see
>> >
>> >
>> > On Thu, Nov 29, 2012 at 5:29 PM, Nick Dimiduk <nd...@gmail.com>
>> wrote:
>> >
>> >> I pulled trunk yesterday and set up eclipse - with Enis's help,
>> actually.
>> >> I
>> >> thought I was experiencing user error. A `mvn eclipse:clean` followed
>> by a
>> >> workspace refresh resolved the issues.
>> >>
>> >> -n
>> >> On Nov 29, 2012 4:22 PM, "lars hofhansl" <lh...@yahoo.com> wrote:
>> >>
>> >> > The hbase-it project appears to have a bogus reference to resource in
>> >> the
>> >> > hbase-server project.
>> >> > Removing that reference fixes the build problem. Is that correct?
>> >> >
>> >> > Enis, could you have a look at it?
>> >> >
>> >> > -- Lars
>> >> >
>> >>
>> >
>> >
>>
>>
>
> --
> Best regards,
>
> - Andy
>
> Problems worthy of attack prove their worth by hitting back. - Piet Hein
> (via Tom White)
>
>
--
Best regards,
- Andy
Problems worthy of attack prove their worth by hitting back. - Piet Hein
(via Tom White)
Re: Eclipse build broken?
Posted by Andrew Purtell <ap...@apache.org>.
I saw this last week too, same issue in my eclipse environment after
regenerating via mvn eclipse:eclipse to account for the new modules.
On Friday, November 30, 2012, lars hofhansl wrote:
> The reference in my Eclipse looks like this (in the hbase-it module):
>
> /home/lars/dev/hbase-trunk/hbase-server/src/test/resources
>
>
> Which is strange on two accounts:
> 1. Why is this an absolute path?
> 2. Why does it point to a resource in the hbase-server module?
>
> I'll try eclipse:clean and see what happens.
>
> -- Lars
>
>
> ----- Original Message -----
> From: Enis Söztutar <enis.soz@gmail.com <javascript:;>>
> To: "dev@hbase.apache.org <javascript:;>" <dev@hbase.apache.org<javascript:;>
> >
> Cc: lars hofhansl <lhofhansl@yahoo.com <javascript:;>>
> Sent: Thursday, November 29, 2012 6:06 PM
> Subject: Re: Eclipse build broken?
>
> I've done:
>
> git pull origin trunk
> mvn clean install -DskipTests
> Eclipse -> import maven project
>
> Did not get any problems.
>
> Recent issues committed into hbase-it are:
> HBASE-7225 and HBASE-7200
>
> Lars, what is the offending reference?
>
>
> On Thu, Nov 29, 2012 at 5:51 PM, Enis Söztutar <enis.soz@gmail.com<javascript:;>>
> wrote:
>
> > Let me get a fresh checkout and see
> >
> >
> > On Thu, Nov 29, 2012 at 5:29 PM, Nick Dimiduk <ndimiduk@gmail.com<javascript:;>>
> wrote:
> >
> >> I pulled trunk yesterday and set up eclipse - with Enis's help,
> actually.
> >> I
> >> thought I was experiencing user error. A `mvn eclipse:clean` followed
> by a
> >> workspace refresh resolved the issues.
> >>
> >> -n
> >> On Nov 29, 2012 4:22 PM, "lars hofhansl" <lhofhansl@yahoo.com<javascript:;>>
> wrote:
> >>
> >> > The hbase-it project appears to have a bogus reference to resource in
> >> the
> >> > hbase-server project.
> >> > Removing that reference fixes the build problem. Is that correct?
> >> >
> >> > Enis, could you have a look at it?
> >> >
> >> > -- Lars
> >> >
> >>
> >
> >
>
>
--
Best regards,
- Andy
Problems worthy of attack prove their worth by hitting back. - Piet Hein
(via Tom White)
Re: Eclipse build broken?
Posted by Sergey Shelukhin <se...@hortonworks.com>.
I recently added hbase-it to main pom, where it was previously missing, in
order to get it packaged.
The resource reference was there all along, I guess it "kicked in" now due
to the above.
On Thu, Nov 29, 2012 at 6:48 PM, lars hofhansl <lh...@yahoo.com> wrote:
> The reference in my Eclipse looks like this (in the hbase-it module):
>
> /home/lars/dev/hbase-trunk/hbase-server/src/test/resources
>
>
> Which is strange on two accounts:
> 1. Why is this an absolute path?
> 2. Why does it point to a resource in the hbase-server module?
>
> I'll try eclipse:clean and see what happens.
>
> -- Lars
>
>
> ----- Original Message -----
> From: Enis Söztutar <en...@gmail.com>
> To: "dev@hbase.apache.org" <de...@hbase.apache.org>
> Cc: lars hofhansl <lh...@yahoo.com>
> Sent: Thursday, November 29, 2012 6:06 PM
> Subject: Re: Eclipse build broken?
>
> I've done:
>
> git pull origin trunk
> mvn clean install -DskipTests
> Eclipse -> import maven project
>
> Did not get any problems.
>
> Recent issues committed into hbase-it are:
> HBASE-7225 and HBASE-7200
>
> Lars, what is the offending reference?
>
>
> On Thu, Nov 29, 2012 at 5:51 PM, Enis Söztutar <en...@gmail.com> wrote:
>
> > Let me get a fresh checkout and see
> >
> >
> > On Thu, Nov 29, 2012 at 5:29 PM, Nick Dimiduk <nd...@gmail.com>
> wrote:
> >
> >> I pulled trunk yesterday and set up eclipse - with Enis's help,
> actually.
> >> I
> >> thought I was experiencing user error. A `mvn eclipse:clean` followed
> by a
> >> workspace refresh resolved the issues.
> >>
> >> -n
> >> On Nov 29, 2012 4:22 PM, "lars hofhansl" <lh...@yahoo.com> wrote:
> >>
> >> > The hbase-it project appears to have a bogus reference to resource in
> >> the
> >> > hbase-server project.
> >> > Removing that reference fixes the build problem. Is that correct?
> >> >
> >> > Enis, could you have a look at it?
> >> >
> >> > -- Lars
> >> >
> >>
> >
> >
>
>
Re: Eclipse build broken?
Posted by lars hofhansl <lh...@yahoo.com>.
The reference in my Eclipse looks like this (in the hbase-it module):
/home/lars/dev/hbase-trunk/hbase-server/src/test/resources
Which is strange on two accounts:
1. Why is this an absolute path?
2. Why does it point to a resource in the hbase-server module?
I'll try eclipse:clean and see what happens.
-- Lars
----- Original Message -----
From: Enis Söztutar <en...@gmail.com>
To: "dev@hbase.apache.org" <de...@hbase.apache.org>
Cc: lars hofhansl <lh...@yahoo.com>
Sent: Thursday, November 29, 2012 6:06 PM
Subject: Re: Eclipse build broken?
I've done:
git pull origin trunk
mvn clean install -DskipTests
Eclipse -> import maven project
Did not get any problems.
Recent issues committed into hbase-it are:
HBASE-7225 and HBASE-7200
Lars, what is the offending reference?
On Thu, Nov 29, 2012 at 5:51 PM, Enis Söztutar <en...@gmail.com> wrote:
> Let me get a fresh checkout and see
>
>
> On Thu, Nov 29, 2012 at 5:29 PM, Nick Dimiduk <nd...@gmail.com> wrote:
>
>> I pulled trunk yesterday and set up eclipse - with Enis's help, actually.
>> I
>> thought I was experiencing user error. A `mvn eclipse:clean` followed by a
>> workspace refresh resolved the issues.
>>
>> -n
>> On Nov 29, 2012 4:22 PM, "lars hofhansl" <lh...@yahoo.com> wrote:
>>
>> > The hbase-it project appears to have a bogus reference to resource in
>> the
>> > hbase-server project.
>> > Removing that reference fixes the build problem. Is that correct?
>> >
>> > Enis, could you have a look at it?
>> >
>> > -- Lars
>> >
>>
>
>
Re: Eclipse build broken?
Posted by Enis Söztutar <en...@gmail.com>.
I've done:
git pull origin trunk
mvn clean install -DskipTests
Eclipse -> import maven project
Did not get any problems.
Recent issues committed into hbase-it are:
HBASE-7225 and HBASE-7200
Lars, what is the offending reference?
On Thu, Nov 29, 2012 at 5:51 PM, Enis Söztutar <en...@gmail.com> wrote:
> Let me get a fresh checkout and see
>
>
> On Thu, Nov 29, 2012 at 5:29 PM, Nick Dimiduk <nd...@gmail.com> wrote:
>
>> I pulled trunk yesterday and set up eclipse - with Enis's help, actually.
>> I
>> thought I was experiencing user error. A `mvn eclipse:clean` followed by a
>> workspace refresh resolved the issues.
>>
>> -n
>> On Nov 29, 2012 4:22 PM, "lars hofhansl" <lh...@yahoo.com> wrote:
>>
>> > The hbase-it project appears to have a bogus reference to resource in
>> the
>> > hbase-server project.
>> > Removing that reference fixes the build problem. Is that correct?
>> >
>> > Enis, could you have a look at it?
>> >
>> > -- Lars
>> >
>>
>
>
Re: Eclipse build broken?
Posted by Enis Söztutar <en...@gmail.com>.
Let me get a fresh checkout and see
On Thu, Nov 29, 2012 at 5:29 PM, Nick Dimiduk <nd...@gmail.com> wrote:
> I pulled trunk yesterday and set up eclipse - with Enis's help, actually. I
> thought I was experiencing user error. A `mvn eclipse:clean` followed by a
> workspace refresh resolved the issues.
>
> -n
> On Nov 29, 2012 4:22 PM, "lars hofhansl" <lh...@yahoo.com> wrote:
>
> > The hbase-it project appears to have a bogus reference to resource in the
> > hbase-server project.
> > Removing that reference fixes the build problem. Is that correct?
> >
> > Enis, could you have a look at it?
> >
> > -- Lars
> >
>
Re: Eclipse build broken?
Posted by Nick Dimiduk <nd...@gmail.com>.
I pulled trunk yesterday and set up eclipse - with Enis's help, actually. I
thought I was experiencing user error. A `mvn eclipse:clean` followed by a
workspace refresh resolved the issues.
-n
On Nov 29, 2012 4:22 PM, "lars hofhansl" <lh...@yahoo.com> wrote:
> The hbase-it project appears to have a bogus reference to resource in the
> hbase-server project.
> Removing that reference fixes the build problem. Is that correct?
>
> Enis, could you have a look at it?
>
> -- Lars
>