You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@gora.apache.org by Dino Kečo <di...@gmail.com> on 2011/10/12 10:13:24 UTC
Maven Build is failing for gora-sql component
I have tried to build entire Gora project using maven2 building tool (mvn
clean install) and I got following error:
[INFO]
------------------------------------------------------------------------
[INFO] Building Apache Gora :: SQL
[INFO] task-segment: [clean, install]
[INFO]
------------------------------------------------------------------------
[INFO] [clean:clean {execution: default-clean}]
[INFO] Deleting C:\Users\dinok\workspace\gora\gora-sql\target
[INFO] [build-helper:add-source {execution: default}]
[INFO] Source directory:
C:\Users\dinok\workspace\gora\gora-sql\src\examples\java added.
[INFO] [remote-resources:process {execution: default}]
[INFO] [resources:resources {execution: default-resources}]
[INFO] Using 'UTF-8' encoding to copy filtered resources.
[INFO] skip non existing resourceDirectory
C:\Users\dinok\workspace\gora\gora-sql\src\main\resources
[INFO] Copying 3 resources
[INFO] [compiler:compile {execution: default-compile}]
[INFO] Compiling 15 source files to
C:\Users\dinok\workspace\gora\gora-sql\target\classes
[INFO] [resources:testResources {execution: default-testResources}]
[INFO] Using 'UTF-8' encoding to copy filtered resources.
[INFO] skip non existing resourceDirectory
C:\Users\dinok\workspace\gora\gora-sql\src\test\resources
[INFO] Copying 3 resources
[INFO] [compiler:testCompile {execution: default-testCompile}]
[INFO] Compiling 2 source files to
C:\Users\dinok\workspace\gora\gora-sql\target\test-classes
[INFO]
------------------------------------------------------------------------
[ERROR] BUILD FAILURE
[INFO]
------------------------------------------------------------------------
[INFO] Compilation failure
C:\Users\dinok\workspace\gora\gora-sql\src\test\java\org\apache\gora\sql\GoraSqlTestDriver.java:[25,22]
cannot find symbol
symbol : class GoraTestDriver
location: package org.apache.gora
C:\Users\dinok\workspace\gora\gora-sql\src\test\java\org\apache\gora\sql\GoraSqlTestDriver.java:[34,39]
cannot find symbol
symbol: class GoraTestDriver
public class GoraSqlTestDriver extends GoraTestDriver {
C:\Users\dinok\workspace\gora\gora-sql\src\test\java\org\apache\gora\sql\store\TestSqlStore.java:[29,28]
cannot find symbol
symbol : class DataStoreTestBase
location: package org.apache.gora.store
C:\Users\dinok\workspace\gora\gora-sql\src\test\java\org\apache\gora\sql\store\TestSqlStore.java:[34,34]
cannot find symbol
symbol: class DataStoreTestBase
public class TestSqlStore extends DataStoreTestBase {
C:\Users\dinok\workspace\gora\gora-sql\src\test\java\org\apache\gora\sql\GoraSqlTestDriver.java:[60,4]
cannot find symbol
symbol : variable log
location: class org.apache.gora.sql.GoraSqlTestDriver
I think problem is that maven doesn't pack classes from src/main/test folder
into JAR. In this case we extend one class which should be packed into
gora-core jar but it isn't because it is in src/main/test folder.
Any suggestions how to resolve this issue ?
Thanks,
dinok
Re: Maven Build is failing for gora-sql component
Posted by Dino Kečo <di...@gmail.com>.
Hi Andre,
Thanks for update. I hope we will get stable gora build :)
thanks,
dinok
2011/10/15 André Isaksson <an...@gmail.com>
> Hi Dino,
>
> Until GORA-43 is resolved I think you can solve your problem by adding this
> dependency to gora-sql/pom.xml:
>
> <dependency>
> <groupId>org.apache.gora</groupId>
> <artifactId>gora-core</artifactId>
> <version>${project.version}</version>
> <scope>test</scope>
> <classifier>tests</classifier>
> </dependency>
>
> The gora-core build seems to be prepared for sharing test classes between
> modules (using the maven-jar-plugin with test-jar) but the gora-sql module
> didn't depend on that artifact.
>
> /andré
>
> On Wed, Oct 12, 2011 at 3:36 PM, Mattmann, Chris A (388J) <
> chris.a.mattmann@jpl.nasa.gov> wrote:
>
> > Hi Dino,
> >
> > I fixed most of these issues in 0.1.1-incubating and created an issue to
> > forward port the poms to trunk:
> >
> > https://issues.apache.org/jira/browse/GORA-43
> >
> > Once that issue is resolved in trunk, maven builds should be working
> > fine. I'll try to get to it this week. Note, that 1.1.1 maven builds fail
> > unless
> > you pre-install the cassandra and thrift versions in your local maven
> repo.
> > You can find the jars in lib-ext within the gora-hase package. In trunk,
> > we depend on newer versions of these libs that are in Maven Central
> > and thus don't have this problem.
> >
> > Cheers,
> > Chris
> >
> > On Oct 12, 2011, at 1:13 AM, Dino Kečo wrote:
> >
> > > I have tried to build entire Gora project using maven2 building tool
> (mvn
> > > clean install) and I got following error:
> > >
> > > [INFO]
> > >
> ------------------------------------------------------------------------
> > >
> > > [INFO] Building Apache Gora :: SQL
> > >
> > > [INFO] task-segment: [clean, install]
> > >
> > > [INFO]
> > >
> ------------------------------------------------------------------------
> > >
> > > [INFO] [clean:clean {execution: default-clean}]
> > >
> > > [INFO] Deleting C:\Users\dinok\workspace\gora\gora-sql\target
> > >
> > > [INFO] [build-helper:add-source {execution: default}]
> > >
> > > [INFO] Source directory:
> > > C:\Users\dinok\workspace\gora\gora-sql\src\examples\java added.
> > >
> > > [INFO] [remote-resources:process {execution: default}]
> > >
> > > [INFO] [resources:resources {execution: default-resources}]
> > >
> > > [INFO] Using 'UTF-8' encoding to copy filtered resources.
> > >
> > > [INFO] skip non existing resourceDirectory
> > > C:\Users\dinok\workspace\gora\gora-sql\src\main\resources
> > >
> > > [INFO] Copying 3 resources
> > >
> > > [INFO] [compiler:compile {execution: default-compile}]
> > >
> > > [INFO] Compiling 15 source files to
> > > C:\Users\dinok\workspace\gora\gora-sql\target\classes
> > >
> > > [INFO] [resources:testResources {execution: default-testResources}]
> > >
> > > [INFO] Using 'UTF-8' encoding to copy filtered resources.
> > >
> > > [INFO] skip non existing resourceDirectory
> > > C:\Users\dinok\workspace\gora\gora-sql\src\test\resources
> > >
> > > [INFO] Copying 3 resources
> > >
> > > [INFO] [compiler:testCompile {execution: default-testCompile}]
> > >
> > > [INFO] Compiling 2 source files to
> > > C:\Users\dinok\workspace\gora\gora-sql\target\test-classes
> > >
> > > [INFO]
> > >
> ------------------------------------------------------------------------
> > >
> > > [ERROR] BUILD FAILURE
> > >
> > > [INFO]
> > >
> ------------------------------------------------------------------------
> > >
> > > [INFO] Compilation failure
> > >
> > >
> > >
> >
> C:\Users\dinok\workspace\gora\gora-sql\src\test\java\org\apache\gora\sql\GoraSqlTestDriver.java:[25,22]
> > > cannot find symbol
> > >
> > > symbol : class GoraTestDriver
> > >
> > > location: package org.apache.gora
> > >
> > >
> > >
> >
> C:\Users\dinok\workspace\gora\gora-sql\src\test\java\org\apache\gora\sql\GoraSqlTestDriver.java:[34,39]
> > > cannot find symbol
> > >
> > > symbol: class GoraTestDriver
> > >
> > > public class GoraSqlTestDriver extends GoraTestDriver {
> > >
> > >
> > >
> >
> C:\Users\dinok\workspace\gora\gora-sql\src\test\java\org\apache\gora\sql\store\TestSqlStore.java:[29,28]
> > > cannot find symbol
> > >
> > > symbol : class DataStoreTestBase
> > >
> > > location: package org.apache.gora.store
> > >
> > >
> > >
> >
> C:\Users\dinok\workspace\gora\gora-sql\src\test\java\org\apache\gora\sql\store\TestSqlStore.java:[34,34]
> > > cannot find symbol
> > >
> > > symbol: class DataStoreTestBase
> > >
> > > public class TestSqlStore extends DataStoreTestBase {
> > >
> > >
> > >
> >
> C:\Users\dinok\workspace\gora\gora-sql\src\test\java\org\apache\gora\sql\GoraSqlTestDriver.java:[60,4]
> > > cannot find symbol
> > >
> > > symbol : variable log
> > >
> > > location: class org.apache.gora.sql.GoraSqlTestDriver
> > >
> > >
> > > I think problem is that maven doesn't pack classes from src/main/test
> > folder
> > > into JAR. In this case we extend one class which should be packed into
> > > gora-core jar but it isn't because it is in src/main/test folder.
> > > Any suggestions how to resolve this issue ?
> > >
> > > Thanks,
> > > dinok
> >
> >
> > ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
> > Chris Mattmann, Ph.D.
> > Senior Computer Scientist
> > NASA Jet Propulsion Laboratory Pasadena, CA 91109 USA
> > Office: 171-266B, Mailstop: 171-246
> > Email: chris.a.mattmann@nasa.gov
> > WWW: http://sunset.usc.edu/~mattmann/
> > ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
> > Adjunct Assistant Professor, Computer Science Department
> > University of Southern California, Los Angeles, CA 90089 USA
> > ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
> >
> >
>
Re: Maven Build is failing for gora-sql component
Posted by André Isaksson <an...@gmail.com>.
Hi Dino,
Until GORA-43 is resolved I think you can solve your problem by adding this
dependency to gora-sql/pom.xml:
<dependency>
<groupId>org.apache.gora</groupId>
<artifactId>gora-core</artifactId>
<version>${project.version}</version>
<scope>test</scope>
<classifier>tests</classifier>
</dependency>
The gora-core build seems to be prepared for sharing test classes between
modules (using the maven-jar-plugin with test-jar) but the gora-sql module
didn't depend on that artifact.
/andré
On Wed, Oct 12, 2011 at 3:36 PM, Mattmann, Chris A (388J) <
chris.a.mattmann@jpl.nasa.gov> wrote:
> Hi Dino,
>
> I fixed most of these issues in 0.1.1-incubating and created an issue to
> forward port the poms to trunk:
>
> https://issues.apache.org/jira/browse/GORA-43
>
> Once that issue is resolved in trunk, maven builds should be working
> fine. I'll try to get to it this week. Note, that 1.1.1 maven builds fail
> unless
> you pre-install the cassandra and thrift versions in your local maven repo.
> You can find the jars in lib-ext within the gora-hase package. In trunk,
> we depend on newer versions of these libs that are in Maven Central
> and thus don't have this problem.
>
> Cheers,
> Chris
>
> On Oct 12, 2011, at 1:13 AM, Dino Kečo wrote:
>
> > I have tried to build entire Gora project using maven2 building tool (mvn
> > clean install) and I got following error:
> >
> > [INFO]
> > ------------------------------------------------------------------------
> >
> > [INFO] Building Apache Gora :: SQL
> >
> > [INFO] task-segment: [clean, install]
> >
> > [INFO]
> > ------------------------------------------------------------------------
> >
> > [INFO] [clean:clean {execution: default-clean}]
> >
> > [INFO] Deleting C:\Users\dinok\workspace\gora\gora-sql\target
> >
> > [INFO] [build-helper:add-source {execution: default}]
> >
> > [INFO] Source directory:
> > C:\Users\dinok\workspace\gora\gora-sql\src\examples\java added.
> >
> > [INFO] [remote-resources:process {execution: default}]
> >
> > [INFO] [resources:resources {execution: default-resources}]
> >
> > [INFO] Using 'UTF-8' encoding to copy filtered resources.
> >
> > [INFO] skip non existing resourceDirectory
> > C:\Users\dinok\workspace\gora\gora-sql\src\main\resources
> >
> > [INFO] Copying 3 resources
> >
> > [INFO] [compiler:compile {execution: default-compile}]
> >
> > [INFO] Compiling 15 source files to
> > C:\Users\dinok\workspace\gora\gora-sql\target\classes
> >
> > [INFO] [resources:testResources {execution: default-testResources}]
> >
> > [INFO] Using 'UTF-8' encoding to copy filtered resources.
> >
> > [INFO] skip non existing resourceDirectory
> > C:\Users\dinok\workspace\gora\gora-sql\src\test\resources
> >
> > [INFO] Copying 3 resources
> >
> > [INFO] [compiler:testCompile {execution: default-testCompile}]
> >
> > [INFO] Compiling 2 source files to
> > C:\Users\dinok\workspace\gora\gora-sql\target\test-classes
> >
> > [INFO]
> > ------------------------------------------------------------------------
> >
> > [ERROR] BUILD FAILURE
> >
> > [INFO]
> > ------------------------------------------------------------------------
> >
> > [INFO] Compilation failure
> >
> >
> >
> C:\Users\dinok\workspace\gora\gora-sql\src\test\java\org\apache\gora\sql\GoraSqlTestDriver.java:[25,22]
> > cannot find symbol
> >
> > symbol : class GoraTestDriver
> >
> > location: package org.apache.gora
> >
> >
> >
> C:\Users\dinok\workspace\gora\gora-sql\src\test\java\org\apache\gora\sql\GoraSqlTestDriver.java:[34,39]
> > cannot find symbol
> >
> > symbol: class GoraTestDriver
> >
> > public class GoraSqlTestDriver extends GoraTestDriver {
> >
> >
> >
> C:\Users\dinok\workspace\gora\gora-sql\src\test\java\org\apache\gora\sql\store\TestSqlStore.java:[29,28]
> > cannot find symbol
> >
> > symbol : class DataStoreTestBase
> >
> > location: package org.apache.gora.store
> >
> >
> >
> C:\Users\dinok\workspace\gora\gora-sql\src\test\java\org\apache\gora\sql\store\TestSqlStore.java:[34,34]
> > cannot find symbol
> >
> > symbol: class DataStoreTestBase
> >
> > public class TestSqlStore extends DataStoreTestBase {
> >
> >
> >
> C:\Users\dinok\workspace\gora\gora-sql\src\test\java\org\apache\gora\sql\GoraSqlTestDriver.java:[60,4]
> > cannot find symbol
> >
> > symbol : variable log
> >
> > location: class org.apache.gora.sql.GoraSqlTestDriver
> >
> >
> > I think problem is that maven doesn't pack classes from src/main/test
> folder
> > into JAR. In this case we extend one class which should be packed into
> > gora-core jar but it isn't because it is in src/main/test folder.
> > Any suggestions how to resolve this issue ?
> >
> > Thanks,
> > dinok
>
>
> ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
> Chris Mattmann, Ph.D.
> Senior Computer Scientist
> NASA Jet Propulsion Laboratory Pasadena, CA 91109 USA
> Office: 171-266B, Mailstop: 171-246
> Email: chris.a.mattmann@nasa.gov
> WWW: http://sunset.usc.edu/~mattmann/
> ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
> Adjunct Assistant Professor, Computer Science Department
> University of Southern California, Los Angeles, CA 90089 USA
> ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
>
>
Re: Maven Build is failing for gora-sql component
Posted by "Mattmann, Chris A (388J)" <ch...@jpl.nasa.gov>.
Hi Lewis,
Yep, I think they will. At least that's what I'm committed too.
And now worries about being impatient - you rock.
Cheers,
Chris
On Oct 12, 2011, at 11:42 AM, lewis john mcgibbney wrote:
> Hi Chris,
>
> Further to your comments, does this mean that the failing tests on the CI
> build will pass successfully when GORA-43 is resolved and committed?
> Apologies if this sounds like I am being impatient, it's just that this has
> my curiosity.
>
> Thanks
>
> On Wed, Oct 12, 2011 at 3:21 PM, Dino Kečo <di...@gmail.com> wrote:
>
>> Thanks Chris,
>>
>> I will track status of this ticket.
>>
>> Regards,
>> dinok
>>
>> On Wed, Oct 12, 2011 at 3:36 PM, Mattmann, Chris A (388J) <
>> chris.a.mattmann@jpl.nasa.gov> wrote:
>>
>>> Hi Dino,
>>>
>>> I fixed most of these issues in 0.1.1-incubating and created an issue to
>>> forward port the poms to trunk:
>>>
>>> https://issues.apache.org/jira/browse/GORA-43
>>>
>>> Once that issue is resolved in trunk, maven builds should be working
>>> fine. I'll try to get to it this week. Note, that 1.1.1 maven builds fail
>>> unless
>>> you pre-install the cassandra and thrift versions in your local maven
>> repo.
>>> You can find the jars in lib-ext within the gora-hase package. In trunk,
>>> we depend on newer versions of these libs that are in Maven Central
>>> and thus don't have this problem.
>>>
>>> Cheers,
>>> Chris
>>
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Chris Mattmann, Ph.D.
Senior Computer Scientist
NASA Jet Propulsion Laboratory Pasadena, CA 91109 USA
Office: 171-266B, Mailstop: 171-246
Email: chris.a.mattmann@nasa.gov
WWW: http://sunset.usc.edu/~mattmann/
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Adjunct Assistant Professor, Computer Science Department
University of Southern California, Los Angeles, CA 90089 USA
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Re: Maven Build is failing for gora-sql component
Posted by lewis john mcgibbney <le...@gmail.com>.
Hi Chris,
Further to your comments, does this mean that the failing tests on the CI
build will pass successfully when GORA-43 is resolved and committed?
Apologies if this sounds like I am being impatient, it's just that this has
my curiosity.
Thanks
On Wed, Oct 12, 2011 at 3:21 PM, Dino Kečo <di...@gmail.com> wrote:
> Thanks Chris,
>
> I will track status of this ticket.
>
> Regards,
> dinok
>
> On Wed, Oct 12, 2011 at 3:36 PM, Mattmann, Chris A (388J) <
> chris.a.mattmann@jpl.nasa.gov> wrote:
>
> > Hi Dino,
> >
> > I fixed most of these issues in 0.1.1-incubating and created an issue to
> > forward port the poms to trunk:
> >
> > https://issues.apache.org/jira/browse/GORA-43
> >
> > Once that issue is resolved in trunk, maven builds should be working
> > fine. I'll try to get to it this week. Note, that 1.1.1 maven builds fail
> > unless
> > you pre-install the cassandra and thrift versions in your local maven
> repo.
> > You can find the jars in lib-ext within the gora-hase package. In trunk,
> > we depend on newer versions of these libs that are in Maven Central
> > and thus don't have this problem.
> >
> > Cheers,
> > Chris
>
Re: Maven Build is failing for gora-sql component
Posted by Dino Kečo <di...@gmail.com>.
Thanks Chris,
I will track status of this ticket.
Regards,
dinok
On Wed, Oct 12, 2011 at 3:36 PM, Mattmann, Chris A (388J) <
chris.a.mattmann@jpl.nasa.gov> wrote:
> Hi Dino,
>
> I fixed most of these issues in 0.1.1-incubating and created an issue to
> forward port the poms to trunk:
>
> https://issues.apache.org/jira/browse/GORA-43
>
> Once that issue is resolved in trunk, maven builds should be working
> fine. I'll try to get to it this week. Note, that 1.1.1 maven builds fail
> unless
> you pre-install the cassandra and thrift versions in your local maven repo.
> You can find the jars in lib-ext within the gora-hase package. In trunk,
> we depend on newer versions of these libs that are in Maven Central
> and thus don't have this problem.
>
> Cheers,
> Chris
>
> On Oct 12, 2011, at 1:13 AM, Dino Kečo wrote:
>
> > I have tried to build entire Gora project using maven2 building tool (mvn
> > clean install) and I got following error:
> >
> > [INFO]
> > ------------------------------------------------------------------------
> >
> > [INFO] Building Apache Gora :: SQL
> >
> > [INFO] task-segment: [clean, install]
> >
> > [INFO]
> > ------------------------------------------------------------------------
> >
> > [INFO] [clean:clean {execution: default-clean}]
> >
> > [INFO] Deleting C:\Users\dinok\workspace\gora\gora-sql\target
> >
> > [INFO] [build-helper:add-source {execution: default}]
> >
> > [INFO] Source directory:
> > C:\Users\dinok\workspace\gora\gora-sql\src\examples\java added.
> >
> > [INFO] [remote-resources:process {execution: default}]
> >
> > [INFO] [resources:resources {execution: default-resources}]
> >
> > [INFO] Using 'UTF-8' encoding to copy filtered resources.
> >
> > [INFO] skip non existing resourceDirectory
> > C:\Users\dinok\workspace\gora\gora-sql\src\main\resources
> >
> > [INFO] Copying 3 resources
> >
> > [INFO] [compiler:compile {execution: default-compile}]
> >
> > [INFO] Compiling 15 source files to
> > C:\Users\dinok\workspace\gora\gora-sql\target\classes
> >
> > [INFO] [resources:testResources {execution: default-testResources}]
> >
> > [INFO] Using 'UTF-8' encoding to copy filtered resources.
> >
> > [INFO] skip non existing resourceDirectory
> > C:\Users\dinok\workspace\gora\gora-sql\src\test\resources
> >
> > [INFO] Copying 3 resources
> >
> > [INFO] [compiler:testCompile {execution: default-testCompile}]
> >
> > [INFO] Compiling 2 source files to
> > C:\Users\dinok\workspace\gora\gora-sql\target\test-classes
> >
> > [INFO]
> > ------------------------------------------------------------------------
> >
> > [ERROR] BUILD FAILURE
> >
> > [INFO]
> > ------------------------------------------------------------------------
> >
> > [INFO] Compilation failure
> >
> >
> >
> C:\Users\dinok\workspace\gora\gora-sql\src\test\java\org\apache\gora\sql\GoraSqlTestDriver.java:[25,22]
> > cannot find symbol
> >
> > symbol : class GoraTestDriver
> >
> > location: package org.apache.gora
> >
> >
> >
> C:\Users\dinok\workspace\gora\gora-sql\src\test\java\org\apache\gora\sql\GoraSqlTestDriver.java:[34,39]
> > cannot find symbol
> >
> > symbol: class GoraTestDriver
> >
> > public class GoraSqlTestDriver extends GoraTestDriver {
> >
> >
> >
> C:\Users\dinok\workspace\gora\gora-sql\src\test\java\org\apache\gora\sql\store\TestSqlStore.java:[29,28]
> > cannot find symbol
> >
> > symbol : class DataStoreTestBase
> >
> > location: package org.apache.gora.store
> >
> >
> >
> C:\Users\dinok\workspace\gora\gora-sql\src\test\java\org\apache\gora\sql\store\TestSqlStore.java:[34,34]
> > cannot find symbol
> >
> > symbol: class DataStoreTestBase
> >
> > public class TestSqlStore extends DataStoreTestBase {
> >
> >
> >
> C:\Users\dinok\workspace\gora\gora-sql\src\test\java\org\apache\gora\sql\GoraSqlTestDriver.java:[60,4]
> > cannot find symbol
> >
> > symbol : variable log
> >
> > location: class org.apache.gora.sql.GoraSqlTestDriver
> >
> >
> > I think problem is that maven doesn't pack classes from src/main/test
> folder
> > into JAR. In this case we extend one class which should be packed into
> > gora-core jar but it isn't because it is in src/main/test folder.
> > Any suggestions how to resolve this issue ?
> >
> > Thanks,
> > dinok
>
>
> ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
> Chris Mattmann, Ph.D.
> Senior Computer Scientist
> NASA Jet Propulsion Laboratory Pasadena, CA 91109 USA
> Office: 171-266B, Mailstop: 171-246
> Email: chris.a.mattmann@nasa.gov
> WWW: http://sunset.usc.edu/~mattmann/
> ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
> Adjunct Assistant Professor, Computer Science Department
> University of Southern California, Los Angeles, CA 90089 USA
> ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
>
>
Re: Maven Build is failing for gora-sql component
Posted by "Mattmann, Chris A (388J)" <ch...@jpl.nasa.gov>.
Hi Dino,
I fixed most of these issues in 0.1.1-incubating and created an issue to
forward port the poms to trunk:
https://issues.apache.org/jira/browse/GORA-43
Once that issue is resolved in trunk, maven builds should be working
fine. I'll try to get to it this week. Note, that 1.1.1 maven builds fail unless
you pre-install the cassandra and thrift versions in your local maven repo.
You can find the jars in lib-ext within the gora-hase package. In trunk,
we depend on newer versions of these libs that are in Maven Central
and thus don't have this problem.
Cheers,
Chris
On Oct 12, 2011, at 1:13 AM, Dino Kečo wrote:
> I have tried to build entire Gora project using maven2 building tool (mvn
> clean install) and I got following error:
>
> [INFO]
> ------------------------------------------------------------------------
>
> [INFO] Building Apache Gora :: SQL
>
> [INFO] task-segment: [clean, install]
>
> [INFO]
> ------------------------------------------------------------------------
>
> [INFO] [clean:clean {execution: default-clean}]
>
> [INFO] Deleting C:\Users\dinok\workspace\gora\gora-sql\target
>
> [INFO] [build-helper:add-source {execution: default}]
>
> [INFO] Source directory:
> C:\Users\dinok\workspace\gora\gora-sql\src\examples\java added.
>
> [INFO] [remote-resources:process {execution: default}]
>
> [INFO] [resources:resources {execution: default-resources}]
>
> [INFO] Using 'UTF-8' encoding to copy filtered resources.
>
> [INFO] skip non existing resourceDirectory
> C:\Users\dinok\workspace\gora\gora-sql\src\main\resources
>
> [INFO] Copying 3 resources
>
> [INFO] [compiler:compile {execution: default-compile}]
>
> [INFO] Compiling 15 source files to
> C:\Users\dinok\workspace\gora\gora-sql\target\classes
>
> [INFO] [resources:testResources {execution: default-testResources}]
>
> [INFO] Using 'UTF-8' encoding to copy filtered resources.
>
> [INFO] skip non existing resourceDirectory
> C:\Users\dinok\workspace\gora\gora-sql\src\test\resources
>
> [INFO] Copying 3 resources
>
> [INFO] [compiler:testCompile {execution: default-testCompile}]
>
> [INFO] Compiling 2 source files to
> C:\Users\dinok\workspace\gora\gora-sql\target\test-classes
>
> [INFO]
> ------------------------------------------------------------------------
>
> [ERROR] BUILD FAILURE
>
> [INFO]
> ------------------------------------------------------------------------
>
> [INFO] Compilation failure
>
>
> C:\Users\dinok\workspace\gora\gora-sql\src\test\java\org\apache\gora\sql\GoraSqlTestDriver.java:[25,22]
> cannot find symbol
>
> symbol : class GoraTestDriver
>
> location: package org.apache.gora
>
>
> C:\Users\dinok\workspace\gora\gora-sql\src\test\java\org\apache\gora\sql\GoraSqlTestDriver.java:[34,39]
> cannot find symbol
>
> symbol: class GoraTestDriver
>
> public class GoraSqlTestDriver extends GoraTestDriver {
>
>
> C:\Users\dinok\workspace\gora\gora-sql\src\test\java\org\apache\gora\sql\store\TestSqlStore.java:[29,28]
> cannot find symbol
>
> symbol : class DataStoreTestBase
>
> location: package org.apache.gora.store
>
>
> C:\Users\dinok\workspace\gora\gora-sql\src\test\java\org\apache\gora\sql\store\TestSqlStore.java:[34,34]
> cannot find symbol
>
> symbol: class DataStoreTestBase
>
> public class TestSqlStore extends DataStoreTestBase {
>
>
> C:\Users\dinok\workspace\gora\gora-sql\src\test\java\org\apache\gora\sql\GoraSqlTestDriver.java:[60,4]
> cannot find symbol
>
> symbol : variable log
>
> location: class org.apache.gora.sql.GoraSqlTestDriver
>
>
> I think problem is that maven doesn't pack classes from src/main/test folder
> into JAR. In this case we extend one class which should be packed into
> gora-core jar but it isn't because it is in src/main/test folder.
> Any suggestions how to resolve this issue ?
>
> Thanks,
> dinok
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Chris Mattmann, Ph.D.
Senior Computer Scientist
NASA Jet Propulsion Laboratory Pasadena, CA 91109 USA
Office: 171-266B, Mailstop: 171-246
Email: chris.a.mattmann@nasa.gov
WWW: http://sunset.usc.edu/~mattmann/
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Adjunct Assistant Professor, Computer Science Department
University of Southern California, Los Angeles, CA 90089 USA
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++