incubator-gora-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From André Isaksson <andri...@gmail.com>
Subject Re: Maven Build is failing for gora-sql component
Date Sat, 15 Oct 2011 19:34:16 GMT
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
> ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
>
>

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