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