Open sebastianwoinar opened 10 years ago
Same here.
Can you post the output of maven -version and java -version?
mvn -version
Apache Maven 3.1.1 (0728685237757ffbf44136acec0402957f723d9a; 2013-09-17 17:22:22+0200)
Maven home: /usr/local/Cellar/maven/3.1.1/libexec
Java version: 1.6.0_65, vendor: Apple Inc.
Java home: /System/Library/Java/JavaVirtualMachines/1.6.0.jdk/Contents/Home
Default locale: en_US, platform encoding: MacRoman
OS name: "mac os x", version: "10.9", arch: "x86_64", family: "mac"
and java -version
java version "1.7.0_05"
Java(TM) SE Runtime Environment (build 1.7.0_05-b05)
Java HotSpot(TM) 64-Bit Server VM (build 23.1-b03, mixed mode)
It seems you can get around that particular issue by specifying JAVA_HOME
as below:
JAVA_HOME=/Library/Java/JavaVirtualMachines/jdk1.7.0_45.jdk/Contents/Home mvn package
I'm getting test failures with that, which is where my expertise in the Java ecosystem runs out (it may be due to the above sidestepping of Apple's Java dist, it may not be)
The Unsupported major.minor version error should be rectified by what Greg has posted above. Note that you can specify the variable in .mavenrc file in your home folder.
If you're getting test failures after that, my guess is it's not related to this. Can you specify which tests failed and provide the log?
Here's the full log (and fairly long-winded at that)
$ mvn clean package
[INFO] Scanning for projects...
[INFO]
[INFO] ------------------------------------------------------------------------
[INFO] Building neo4j-gremlin-plugin 2.0-SNAPSHOT
[INFO] ------------------------------------------------------------------------
[INFO]
[INFO] --- maven-clean-plugin:2.4.1:clean (default-clean) @ neo4j-gremlin-plugin ---
[INFO] Deleting /Users/glsignal/git/neo4j-gremlin-plugin/target
[INFO]
[INFO] --- license-maven-plugin:3:check (check-licenses) @ neo4j-gremlin-plugin ---
[INFO] Checking licenses...
[INFO]
[INFO] --- maven-resources-plugin:2.5:resources (default-resources) @ neo4j-gremlin-plugin ---
[debug] execute contextualize
[INFO] Using 'UTF-8' encoding to copy filtered resources.
[INFO] Copying 2 resources
[INFO] skip non existing resourceDirectory /Users/glsignal/git/neo4j-gremlin-plugin/src/main/webapp
[INFO] skip non existing resourceDirectory /Users/glsignal/git/neo4j-gremlin-plugin/data
[INFO]
[INFO] --- maven-compiler-plugin:2.3.2:compile (default-compile) @ neo4j-gremlin-plugin ---
[INFO] Compiling 12 source files to /Users/glsignal/git/neo4j-gremlin-plugin/target/classes
[INFO]
[INFO] --- maven-resources-plugin:2.5:testResources (default-testResources) @ neo4j-gremlin-plugin ---
[debug] execute contextualize
[INFO] Using 'UTF-8' encoding to copy filtered resources.
[INFO] Copying 1 resource
[INFO] Copying 3 resources to META-INF
[INFO]
[INFO] --- maven-compiler-plugin:2.3.2:testCompile (default-testCompile) @ neo4j-gremlin-plugin ---
[INFO] Compiling 5 source files to /Users/glsignal/git/neo4j-gremlin-plugin/target/test-classes
[INFO]
[INFO] --- maven-surefire-plugin:2.11:test (default-test) @ neo4j-gremlin-plugin ---
[INFO] Surefire report directory: /Users/glsignal/git/neo4j-gremlin-plugin/target/surefire-reports
-------------------------------------------------------
T E S T S
-------------------------------------------------------
Running org.neo4j.server.plugin.gremlin.GremlinPluginFunctionalTest
Tests run: 27, Failures: 23, Errors: 1, Skipped: 2, Time elapsed: 8.926 sec <<< FAILURE!
Running org.neo4j.server.plugin.gremlin.GremlinPluginTest
Tests run: 1, Failures: 0, Errors: 1, Skipped: 0, Time elapsed: 0.052 sec <<< FAILURE!
Running org.neo4j.server.webadmin.console.GremlinSessionTest
Tests run: 1, Failures: 0, Errors: 1, Skipped: 0, Time elapsed: 0.07 sec <<< FAILURE!
Running org.neo4j.server.webadmin.rest.ConfigureEnabledManagementConsolesGremlinTest
resourceLoc: jar:file:/Users/glsignal/.m2/repository/org/neo4j/app/neo4j-server/2.0.0-M05/neo4j-server-2.0.0-M05-static-web.jar!/webadmin-html/
resourceLoc: jar:file:/Users/glsignal/.m2/repository/org/neo4j/app/neo4j-server/2.0.0-M05/neo4j-server-2.0.0-M05-static-web.jar!/webadmin-html/
resourceLoc: jar:file:/Users/glsignal/.m2/repository/org/neo4j/app/neo4j-server/2.0.0-M05/neo4j-server-2.0.0-M05-static-web.jar!/webadmin-html/
Tests run: 4, Failures: 2, Errors: 0, Skipped: 0, Time elapsed: 6.357 sec <<< FAILURE!
Running org.neo4j.server.webadmin.rest.GremlinConsoleServiceTest
Tests run: 3, Failures: 0, Errors: 2, Skipped: 0, Time elapsed: 0.126 sec <<< FAILURE!
Results :
Failed tests: testGremlinPostURLEncoded(org.neo4j.server.plugin.gremlin.GremlinPluginFunctionalTest): Wrong response status. response: {(..)
testIndexIteration(org.neo4j.server.plugin.gremlin.GremlinPluginFunctionalTest): Wrong response status. response: {(..)
testGremlinPostWithVariablesAsJson(org.neo4j.server.plugin.gremlin.GremlinPluginFunctionalTest): Wrong response status. response: {(..)
testGremlinImportGraph(org.neo4j.server.plugin.gremlin.GremlinPluginFunctionalTest): Wrong response status. response: {(..)
return_map(org.neo4j.server.plugin.gremlin.GremlinPluginFunctionalTest): Wrong response status. response: {(..)
emitGraph(org.neo4j.server.plugin.gremlin.GremlinPluginFunctionalTest): Wrong response status. response: {(..)
setVariables(org.neo4j.server.plugin.gremlin.GremlinPluginFunctionalTest): Wrong response status. response: {(..)
testSortResults(org.neo4j.server.plugin.gremlin.GremlinPluginFunctionalTest): Wrong response status. response: {(..)
testScriptWithPaths(org.neo4j.server.plugin.gremlin.GremlinPluginFunctionalTest): Wrong response status. response: {(..)
testLineBreaks(org.neo4j.server.plugin.gremlin.GremlinPluginFunctionalTest): Wrong response status. response: {(..)
testGremlinPostJSONWithTableResult(org.neo4j.server.plugin.gremlin.GremlinPluginFunctionalTest): Wrong response status. response: {(..)
returning_nested_pipes(org.neo4j.server.plugin.gremlin.GremlinPluginFunctionalTest): Wrong response status. response: {(..)
sendArbtiraryGroovy(org.neo4j.server.plugin.gremlin.GremlinPluginFunctionalTest): Wrong response status. response: {(..)
findGroups(org.neo4j.server.plugin.gremlin.GremlinPluginFunctionalTest): Wrong response status. response: {(..)
group_count(org.neo4j.server.plugin.gremlin.GremlinPluginFunctionalTest): Wrong response status. response: {(..)
collect_multiple_traversal_results(org.neo4j.server.plugin.gremlin.GremlinPluginFunctionalTest): Wrong response status. response: {(..)
chunking_and_offsetting_in_Gremlin(org.neo4j.server.plugin.gremlin.GremlinPluginFunctionalTest): Wrong response status. response: {(..)
returning_Neo4j_primitives(org.neo4j.server.plugin.gremlin.GremlinPluginFunctionalTest): Wrong response status. response: {(..)
returning_paths(org.neo4j.server.plugin.gremlin.GremlinPluginFunctionalTest): Wrong response status. response: {(..)
collaborative_filtering(org.neo4j.server.plugin.gremlin.GremlinPluginFunctionalTest): Wrong response status. response: {(..)
table_projections(org.neo4j.server.plugin.gremlin.GremlinPluginFunctionalTest): Wrong response status. response: {(..)
flow_algorithms_with_Gremlin(org.neo4j.server.plugin.gremlin.GremlinPluginFunctionalTest): Wrong response status. response: {(..)
script_execution_errors(org.neo4j.server.plugin.gremlin.GremlinPluginFunctionalTest): Wrong response status. response: {(..)
shouldBeAbleToEnableGremlinConsole(org.neo4j.server.webadmin.rest.ConfigureEnabledManagementConsolesGremlinTest): (..)
shouldBeAbleToExplicitlySetConsolesToEnabled(org.neo4j.server.webadmin.rest.ConfigureEnabledManagementConsolesGremlinTest): (..)
Tests in error:
modify_the_graph_while_traversing(org.neo4j.server.plugin.gremlin.GremlinPluginFunctionalTest)
org.neo4j.server.plugin.gremlin.GremlinPluginTest: org.neo4j.kernel.impl.core.NodeManager.getGraphProperties()Lorg/neo4j/kernel/impl/core/GraphProperties;
org.neo4j.server.webadmin.console.GremlinSessionTest: org.neo4j.kernel.impl.core.NodeManager.getGraphProperties()Lorg/neo4j/kernel/impl/core/GraphProperties;
retrievesTheReferenceNode(org.neo4j.server.webadmin.rest.GremlinConsoleServiceTest): org.neo4j.kernel.impl.core.NodeManager.getGraphProperties()Lorg/neo4j/kernel/impl/core/GraphProperties;
canCreateNodesInGremlinLand(org.neo4j.server.webadmin.rest.GremlinConsoleServiceTest): org.neo4j.kernel.impl.core.NodeManager.getGraphProperties()Lorg/neo4j/kernel/impl/core/GraphProperties;
Tests run: 36, Failures: 25, Errors: 5, Skipped: 2
[INFO] ------------------------------------------------------------------------
[INFO] BUILD FAILURE
[INFO] ------------------------------------------------------------------------
[INFO] Total time: 25.119s
[INFO] Finished at: Fri Dec 27 19:40:16 NZDT 2013
[INFO] Final Memory: 34M/184M
[INFO] ------------------------------------------------------------------------
[ERROR] Failed to execute goal org.apache.maven.plugins:maven-surefire-plugin:2.11:test (default-test) on project neo4j-gremlin-plugin: There are test failures.
[ERROR]
[ERROR] Please refer to /Users/glsignal/git/neo4j-gremlin-plugin/target/surefire-reports for the individual test results.
[ERROR] -> [Help 1]
[ERROR]
[ERROR] To see the full stack trace of the errors, re-run Maven with the -e switch.
[ERROR] Re-run Maven using the -X switch to enable full debug logging.
[ERROR]
[ERROR] For more information about the errors and possible solutions, please read the following articles:
[ERROR] [Help 1] http://cwiki.apache.org/confluence/display/MAVEN/MojoFailureException
I've noticed it's running against 2.0.0-M5 as well; is there a timeframe for moving this to the final release?
Blueprints does not support Neo4j 2.0 yet. I am not sure if anyone's working on that.
root@nosql1:/etc/neo4j/gremlin-plugin-master# mvn clean package
[INFO] Scanning for projects...
[INFO]
[INFO] ------------------------------------------------------------------------
[INFO] Building neo4j-gremlin-plugin 2.0-SNAPSHOT
[INFO] ------------------------------------------------------------------------
[INFO]
[INFO] --- maven-clean-plugin:2.4.1:clean (default-clean) @ neo4j-gremlin-plugin ---
[INFO] Deleting /etc/neo4j/gremlin-plugin-master/target
[INFO]
[INFO] --- license-maven-plugin:3:check (check-licenses) @ neo4j-gremlin-plugin ---
[INFO] Checking licenses...
[INFO]
[INFO] --- maven-resources-plugin:2.5:resources (default-resources) @ neo4j-gremlin-plugin ---
[debug] execute contextualize
[INFO] Using 'UTF-8' encoding to copy filtered resources.
[INFO] Copying 2 resources
[INFO] skip non existing resourceDirectory /etc/neo4j/gremlin-plugin-master/src/main/webapp
[INFO] skip non existing resourceDirectory /etc/neo4j/gremlin-plugin-master/data
[INFO]
[INFO] --- maven-compiler-plugin:2.3.2:compile (default-compile) @ neo4j-gremlin-plugin ---
[INFO] Compiling 12 source files to /etc/neo4j/gremlin-plugin-master/target/classes
[INFO]
[INFO] --- maven-resources-plugin:2.5:testResources (default-testResources) @ neo4j-gremlin-plugin ---
[debug] execute contextualize
[INFO] Using 'UTF-8' encoding to copy filtered resources.
[INFO] Copying 1 resource
[INFO] Copying 3 resources to META-INF
[INFO]
[INFO] --- maven-compiler-plugin:2.3.2:testCompile (default-testCompile) @ neo4j-gremlin-plugin ---
[INFO] Compiling 5 source files to /etc/neo4j/gremlin-plugin-master/target/test-classes
[INFO]
[INFO] --- maven-surefire-plugin:2.11:test (default-test) @ neo4j-gremlin-plugin ---
[INFO] Surefire report directory: /etc/neo4j/gremlin-plugin-master/target/surefire-reports
Running org.neo4j.server.plugin.gremlin.GremlinPluginFunctionalTest Tests run: 27, Failures: 23, Errors: 1, Skipped: 2, Time elapsed: 6.737 sec <<< FAILURE! Running org.neo4j.server.plugin.gremlin.GremlinPluginTest Tests run: 1, Failures: 0, Errors: 1, Skipped: 0, Time elapsed: 0.045 sec <<< FAILURE! Running org.neo4j.server.webadmin.rest.ConfigureEnabledManagementConsolesGremlinTest resourceLoc: jar:file:/root/.m2/repository/org/neo4j/app/neo4j-server/2.0.0-M05/neo4j-server-2.0.0-M05-static-web.jar!/webadmin-html/ resourceLoc: jar:file:/root/.m2/repository/org/neo4j/app/neo4j-server/2.0.0-M05/neo4j-server-2.0.0-M05-static-web.jar!/webadmin-html/ resourceLoc: jar:file:/root/.m2/repository/org/neo4j/app/neo4j-server/2.0.0-M05/neo4j-server-2.0.0-M05-static-web.jar!/webadmin-html/ Tests run: 4, Failures: 2, Errors: 0, Skipped: 0, Time elapsed: 4.818 sec <<< FAILURE! Running org.neo4j.server.webadmin.rest.GremlinConsoleServiceTest Tests run: 3, Failures: 0, Errors: 2, Skipped: 0, Time elapsed: 0.178 sec <<< FAILURE! Running org.neo4j.server.webadmin.console.GremlinSessionTest Tests run: 1, Failures: 0, Errors: 1, Skipped: 0, Time elapsed: 0.042 sec <<< FAILURE!
Results :
Failed tests: return_map(org.neo4j.server.plugin.gremlin.GremlinPluginFunctionalTest): Wrong response status. response: {(..) emitGraph(org.neo4j.server.plugin.gremlin.GremlinPluginFunctionalTest): Wrong response status. response: {(..) setVariables(org.neo4j.server.plugin.gremlin.GremlinPluginFunctionalTest): Wrong response status. response: {(..) testSortResults(org.neo4j.server.plugin.gremlin.GremlinPluginFunctionalTest): Wrong response status. response: {(..) testScriptWithPaths(org.neo4j.server.plugin.gremlin.GremlinPluginFunctionalTest): Wrong response status. response: {(..) testLineBreaks(org.neo4j.server.plugin.gremlin.GremlinPluginFunctionalTest): Wrong response status. response: {(..) testGremlinPostJSONWithTableResult(org.neo4j.server.plugin.gremlin.GremlinPluginFunctionalTest): Wrong response status. response: {(..) testGremlinPostURLEncoded(org.neo4j.server.plugin.gremlin.GremlinPluginFunctionalTest): Wrong response status. response: {(..) testIndexIteration(org.neo4j.server.plugin.gremlin.GremlinPluginFunctionalTest): Wrong response status. response: {(..) testGremlinPostWithVariablesAsJson(org.neo4j.server.plugin.gremlin.GremlinPluginFunctionalTest): Wrong response status. response: {(..) testGremlinImportGraph(org.neo4j.server.plugin.gremlin.GremlinPluginFunctionalTest): Wrong response status. response: {(..) returning_nested_pipes(org.neo4j.server.plugin.gremlin.GremlinPluginFunctionalTest): Wrong response status. response: {(..) sendArbtiraryGroovy(org.neo4j.server.plugin.gremlin.GremlinPluginFunctionalTest): Wrong response status. response: {(..) findGroups(org.neo4j.server.plugin.gremlin.GremlinPluginFunctionalTest): Wrong response status. response: {(..) group_count(org.neo4j.server.plugin.gremlin.GremlinPluginFunctionalTest): Wrong response status. response: {(..) collect_multiple_traversal_results(org.neo4j.server.plugin.gremlin.GremlinPluginFunctionalTest): Wrong response status. response: {(..) chunking_and_offsetting_in_Gremlin(org.neo4j.server.plugin.gremlin.GremlinPluginFunctionalTest): Wrong response status. response: {(..) returning_Neo4j_primitives(org.neo4j.server.plugin.gremlin.GremlinPluginFunctionalTest): Wrong response status. response: {(..) returning_paths(org.neo4j.server.plugin.gremlin.GremlinPluginFunctionalTest): Wrong response status. response: {(..) collaborative_filtering(org.neo4j.server.plugin.gremlin.GremlinPluginFunctionalTest): Wrong response status. response: {(..) table_projections(org.neo4j.server.plugin.gremlin.GremlinPluginFunctionalTest): Wrong response status. response: {(..) flow_algorithms_with_Gremlin(org.neo4j.server.plugin.gremlin.GremlinPluginFunctionalTest): Wrong response status. response: {(..) script_execution_errors(org.neo4j.server.plugin.gremlin.GremlinPluginFunctionalTest): Wrong response status. response: {(..) shouldBeAbleToEnableGremlinConsole(org.neo4j.server.webadmin.rest.ConfigureEnabledManagementConsolesGremlinTest): (..) shouldBeAbleToExplicitlySetConsolesToEnabled(org.neo4j.server.webadmin.rest.ConfigureEnabledManagementConsolesGremlinTest): (..)
Tests in error: modify_the_graph_while_traversing(org.neo4j.server.plugin.gremlin.GremlinPluginFunctionalTest) org.neo4j.server.plugin.gremlin.GremlinPluginTest: org.neo4j.kernel.impl.core.NodeManager.getGraphProperties()Lorg/neo4j/kernel/impl/core/GraphProperties; retrievesTheReferenceNode(org.neo4j.server.webadmin.rest.GremlinConsoleServiceTest): org.neo4j.kernel.impl.core.NodeManager.getGraphProperties()Lorg/neo4j/kernel/impl/core/GraphProperties; canCreateNodesInGremlinLand(org.neo4j.server.webadmin.rest.GremlinConsoleServiceTest): org.neo4j.kernel.impl.core.NodeManager.getGraphProperties()Lorg/neo4j/kernel/impl/core/GraphProperties; org.neo4j.server.webadmin.console.GremlinSessionTest: org.neo4j.kernel.impl.core.NodeManager.getGraphProperties()Lorg/neo4j/kernel/impl/core/GraphProperties;
Tests run: 36, Failures: 25, Errors: 5, Skipped: 2
[INFO] ------------------------------------------------------------------------ [INFO] BUILD FAILURE [INFO] ------------------------------------------------------------------------ [INFO] Total time: 17.844s [INFO] Finished at: Tue Dec 31 09:45:15 BRST 2013 [INFO] Final Memory: 30M/263M [INFO] ------------------------------------------------------------------------ [ERROR] Failed to execute goal org.apache.maven.plugins:maven-surefire-plugin:2.11:test (default-test) on project neo4j-gremlin-plugin: There are test failures. [ERROR] [ERROR] Please refer to /etc/neo4j/gremlin-plugin-master/target/surefire-reports for the individual test results. [ERROR] -> [Help 1] [ERROR] [ERROR] To see the full stack trace of the errors, re-run Maven with the -e switch. [ERROR] Re-run Maven using the -X switch to enable full debug logging. [ERROR] [ERROR] For more information about the errors and possible solutions, please read the following articles: [ERROR] [Help 1] http://cwiki.apache.org/confluence/display/MAVEN/MojoFailureException
root@nosql1:/etc/neo4j/gremlin-plugin-master# mvn -version Apache Maven 3.0.4 Maven home: /usr/share/maven Java version: 1.7.0_45, vendor: Oracle Corporation Java home: /usr/lib/jvm/java-7-oracle/jre Default locale: en_US, platform encoding: ANSI_X3.4-1968 OS name: "linux", version: "2.6.32-5-686", arch: "i386", family: "unix"
root@nosql1:/etc/neo4j/gremlin-plugin-master# java -version java version "1.7.0_45" Java(TM) SE Runtime Environment (build 1.7.0_45-b18) Java HotSpot(TM) Server VM (build 24.45-b08, mixed mode)
I'm skipped maven tests (http://maven.apache.org/surefire/maven-surefire-plugin/examples/skipping-test.html) and installed the plugin, but curl query has failed. Pasting the error, may be of help on something...
root@nosql1:/etc/neo4j# curl -d "script=i+%3D+g.v%282%29%3Bi.outE.inV" http://localhost:7474/db/data/ext/GremlinPlugin/graphdb/execute_script
{
"message" : "org.neo4j.kernel.InternalAbstractGraphDatabase.getNodeManager()Lorg/neo4j/kernel/impl/core/NodeManager;",
"exception" : "NoSuchMethodError",
"fullname" : "java.lang.NoSuchMethodError",
"stacktrace" : [ "com.tinkerpop.blueprints.impls.neo4j.Neo4jGraph.getInternalIndexKeys(Neo4jGraph.java:213)", "com.tinkerpop.blueprints.impls.neo4j.Neo4jGraph.loadKeyIndices(Neo4jGraph.java:163)", "com.tinkerpop.blueprints.impls.neo4j.Neo4jGraph.
The error you get is because blueprints hasn't been updated to support Neo4j 2.0 yet. The GraphDatabaseApi is deprecated in Neo4j 2.0. I am working on adding that support in a forked repository, though with a not so elegant way of maintaining the Neo4j interface to be KeyIndexable. I will commit it to the forked repositories in a couple of days (it might still be buggy in that timeframe though)
I cannot create the jar file, because of some dependency conflicts.
I added the repository and the dependency to the pom.xml. What can I do to build the plugin?
[ERROR] Failed to execute goal org.apache.maven.plugins:maven-compiler-plugin:2.3.2:compile (default-compile) on project neo4j-gremlin-plugin: Compilation failure [ERROR] error: Exception thrown while constructing Processor object: org/neo4j/kernel/impl/annotations/ServiceProcessor : Unsupported major.minor version 51.0 [ERROR] -> [Help 1] [ERROR] [ERROR] To see the full stack trace of the errors, re-run Maven with the -e switch. [ERROR] Re-run Maven using the -X switch to enable full debug logging. [ERROR] [ERROR] For more information about the errors and possible solutions, please read the following articles: [ERROR] [Help 1] http://cwiki.apache.org/confluence/display/MAVEN/MojoFailureException