graphipedia
graphipedia copied to clipboard
Compilation error due to missing packages
Hi, I'm not sure this project is still maintained but I'll add this issue here as well. I updated the neo4j version in the pom.xml file to 4.2.1 which is installed on my Linux debian system. I extracted the zip of the code downloaded from here into a random folder and ran mvn package but the compilation of Graphipedia-parent is successful but graphipedia-parent fails with missing package errors
xv@bunsen:~/bin/graphipedia-master$ mvn -e package
WARNING: An illegal reflective access operation has occurred
WARNING: Illegal reflective access by com.google.inject.internal.cglib.core.$ReflectUtils$1 (file:/usr/share/maven/lib/guice.jar) to method java.lang.ClassLoader.defineClass(java.lang.String,byte[],int,int,java.security.ProtectionDomain)
WARNING: Please consider reporting this to the maintainers of com.google.inject.internal.cglib.core.$ReflectUtils$1
WARNING: Use --illegal-access=warn to enable warnings of further illegal reflective access operations
WARNING: All illegal access operations will be denied in a future release
[INFO] Error stacktraces are turned on.
[INFO] Scanning for projects...
[INFO] ------------------------------------------------------------------------
[INFO] Reactor Build Order:
[INFO]
[INFO] Graphipedia Parent [pom]
[INFO] Graphipedia DataImport [jar]
[INFO]
[INFO] -----------------< org.graphipedia:graphipedia-parent >-----------------
[INFO] Building Graphipedia Parent 0.1.0-SNAPSHOT [1/2]
[INFO] --------------------------------[ pom ]---------------------------------
[INFO]
[INFO] ---------------< org.graphipedia:graphipedia-dataimport >---------------
[INFO] Building Graphipedia DataImport 0.1.0-SNAPSHOT [2/2]
[INFO] --------------------------------[ jar ]---------------------------------
[INFO]
[INFO] --- maven-resources-plugin:2.6:resources (default-resources) @ graphipedia-dataimport ---
[INFO] Using 'UTF-8' encoding to copy filtered resources.
[INFO] skip non existing resourceDirectory /home/xv/bin/graphipedia-master/graphipedia-dataimport/src/main/resources
[INFO]
[INFO] --- maven-compiler-plugin:3.1:compile (default-compile) @ graphipedia-dataimport ---
[INFO] Changes detected - recompiling the module!
[INFO] Compiling 9 source files to /home/xv/bin/graphipedia-master/graphipedia-dataimport/target/classes
[INFO] -------------------------------------------------------------
[ERROR] COMPILATION ERROR :
[INFO] -------------------------------------------------------------
[ERROR] /home/xv/bin/graphipedia-master/graphipedia-dataimport/src/main/java/org/graphipedia/dataimport/neo4j/RelationshipCreator.java:[29,36] package org.neo4j.unsafe.batchinsert does not exist
[ERROR] /home/xv/bin/graphipedia-master/graphipedia-dataimport/src/main/java/org/graphipedia/dataimport/neo4j/RelationshipCreator.java:[33,19] cannot find symbol
symbol: class BatchInserter
location: class org.graphipedia.dataimport.neo4j.RelationshipCreator
[ERROR] /home/xv/bin/graphipedia-master/graphipedia-dataimport/src/main/java/org/graphipedia/dataimport/neo4j/RelationshipCreator.java:[41,32] cannot find symbol
symbol: class BatchInserter
location: class org.graphipedia.dataimport.neo4j.RelationshipCreator
[ERROR] /home/xv/bin/graphipedia-master/graphipedia-dataimport/src/main/java/org/graphipedia/dataimport/neo4j/NodeCreator.java:[29,36] package org.neo4j.helpers.collection does not exist
[ERROR] /home/xv/bin/graphipedia-master/graphipedia-dataimport/src/main/java/org/graphipedia/dataimport/neo4j/NodeCreator.java:[30,36] package org.neo4j.unsafe.batchinsert does not exist
[ERROR] /home/xv/bin/graphipedia-master/graphipedia-dataimport/src/main/java/org/graphipedia/dataimport/neo4j/NodeCreator.java:[34,19] cannot find symbol
symbol: class BatchInserter
location: class org.graphipedia.dataimport.neo4j.NodeCreator
[ERROR] /home/xv/bin/graphipedia-master/graphipedia-dataimport/src/main/java/org/graphipedia/dataimport/neo4j/NodeCreator.java:[39,24] cannot find symbol
symbol: class BatchInserter
location: class org.graphipedia.dataimport.neo4j.NodeCreator
[ERROR] /home/xv/bin/graphipedia-master/graphipedia-dataimport/src/main/java/org/graphipedia/dataimport/neo4j/ImportGraph.java:[29,36] package org.neo4j.unsafe.batchinsert does not exist
[ERROR] /home/xv/bin/graphipedia-master/graphipedia-dataimport/src/main/java/org/graphipedia/dataimport/neo4j/ImportGraph.java:[30,36] package org.neo4j.unsafe.batchinsert does not exist
[ERROR] /home/xv/bin/graphipedia-master/graphipedia-dataimport/src/main/java/org/graphipedia/dataimport/neo4j/ImportGraph.java:[34,19] cannot find symbol
symbol: class BatchInserter
location: class org.graphipedia.dataimport.neo4j.ImportGraph
[INFO] 10 errors
[INFO] -------------------------------------------------------------
[INFO] ------------------------------------------------------------------------
[INFO] Reactor Summary for Graphipedia Parent 0.1.0-SNAPSHOT:
[INFO]
[INFO] Graphipedia Parent ................................. SUCCESS [ 0.005 s]
[INFO] Graphipedia DataImport ............................. FAILURE [ 1.756 s]
[INFO] ------------------------------------------------------------------------
[INFO] BUILD FAILURE
[INFO] ------------------------------------------------------------------------
[INFO] Total time: 1.890 s
[INFO] Finished at: 2021-01-03T23:38:38+01:00
[INFO] ------------------------------------------------------------------------
[ERROR] Failed to execute goal org.apache.maven.plugins:maven-compiler-plugin:3.1:compile (default-compile) on project graphipedia-dataimport: Compilation failure: Compilation failure:
[ERROR] /home/xv/bin/graphipedia-master/graphipedia-dataimport/src/main/java/org/graphipedia/dataimport/neo4j/RelationshipCreator.java:[29,36] package org.neo4j.unsafe.batchinsert does not exist
[ERROR] /home/xv/bin/graphipedia-master/graphipedia-dataimport/src/main/java/org/graphipedia/dataimport/neo4j/RelationshipCreator.java:[33,19] cannot find symbol
[ERROR] symbol: class BatchInserter
[ERROR] location: class org.graphipedia.dataimport.neo4j.RelationshipCreator
[ERROR] /home/xv/bin/graphipedia-master/graphipedia-dataimport/src/main/java/org/graphipedia/dataimport/neo4j/RelationshipCreator.java:[41,32] cannot find symbol
[ERROR] symbol: class BatchInserter
[ERROR] location: class org.graphipedia.dataimport.neo4j.RelationshipCreator
[ERROR] /home/xv/bin/graphipedia-master/graphipedia-dataimport/src/main/java/org/graphipedia/dataimport/neo4j/NodeCreator.java:[29,36] package org.neo4j.helpers.collection does not exist
[ERROR] /home/xv/bin/graphipedia-master/graphipedia-dataimport/src/main/java/org/graphipedia/dataimport/neo4j/NodeCreator.java:[30,36] package org.neo4j.unsafe.batchinsert does not exist
[ERROR] /home/xv/bin/graphipedia-master/graphipedia-dataimport/src/main/java/org/graphipedia/dataimport/neo4j/NodeCreator.java:[34,19] cannot find symbol
[ERROR] symbol: class BatchInserter
[ERROR] location: class org.graphipedia.dataimport.neo4j.NodeCreator
[ERROR] /home/xv/bin/graphipedia-master/graphipedia-dataimport/src/main/java/org/graphipedia/dataimport/neo4j/NodeCreator.java:[39,24] cannot find symbol
[ERROR] symbol: class BatchInserter
[ERROR] location: class org.graphipedia.dataimport.neo4j.NodeCreator
[ERROR] /home/xv/bin/graphipedia-master/graphipedia-dataimport/src/main/java/org/graphipedia/dataimport/neo4j/ImportGraph.java:[29,36] package org.neo4j.unsafe.batchinsert does not exist
[ERROR] /home/xv/bin/graphipedia-master/graphipedia-dataimport/src/main/java/org/graphipedia/dataimport/neo4j/ImportGraph.java:[30,36] package org.neo4j.unsafe.batchinsert does not exist
[ERROR] /home/xv/bin/graphipedia-master/graphipedia-dataimport/src/main/java/org/graphipedia/dataimport/neo4j/ImportGraph.java:[34,19] cannot find symbol
[ERROR] symbol: class BatchInserter
[ERROR] location: class org.graphipedia.dataimport.neo4j.ImportGraph
[ERROR] -> [Help 1]
org.apache.maven.lifecycle.LifecycleExecutionException: Failed to execute goal org.apache.maven.plugins:maven-compiler-plugin:3.1:compile (default-compile) on project graphipedia-dataimport: Compilation failure
at org.apache.maven.lifecycle.internal.MojoExecutor.execute (MojoExecutor.java:215)
at org.apache.maven.lifecycle.internal.MojoExecutor.execute (MojoExecutor.java:156)
at org.apache.maven.lifecycle.internal.MojoExecutor.execute (MojoExecutor.java:148)
at org.apache.maven.lifecycle.internal.LifecycleModuleBuilder.buildProject (LifecycleModuleBuilder.java:117)
at org.apache.maven.lifecycle.internal.LifecycleModuleBuilder.buildProject (LifecycleModuleBuilder.java:81)
at org.apache.maven.lifecycle.internal.builder.singlethreaded.SingleThreadedBuilder.build (SingleThreadedBuilder.java:56)
at org.apache.maven.lifecycle.internal.LifecycleStarter.execute (LifecycleStarter.java:128)
at org.apache.maven.DefaultMaven.doExecute (DefaultMaven.java:305)
at org.apache.maven.DefaultMaven.doExecute (DefaultMaven.java:192)
at org.apache.maven.DefaultMaven.execute (DefaultMaven.java:105)
at org.apache.maven.cli.MavenCli.execute (MavenCli.java:957)
at org.apache.maven.cli.MavenCli.doMain (MavenCli.java:289)
at org.apache.maven.cli.MavenCli.main (MavenCli.java:193)
at jdk.internal.reflect.NativeMethodAccessorImpl.invoke0 (Native Method)
at jdk.internal.reflect.NativeMethodAccessorImpl.invoke (NativeMethodAccessorImpl.java:62)
at jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke (DelegatingMethodAccessorImpl.java:43)
at java.lang.reflect.Method.invoke (Method.java:566)
at org.codehaus.plexus.classworlds.launcher.Launcher.launchEnhanced (Launcher.java:282)
at org.codehaus.plexus.classworlds.launcher.Launcher.launch (Launcher.java:225)
at org.codehaus.plexus.classworlds.launcher.Launcher.mainWithExitCode (Launcher.java:406)
at org.codehaus.plexus.classworlds.launcher.Launcher.main (Launcher.java:347)
Caused by: org.apache.maven.plugin.compiler.CompilationFailureException: Compilation failure
at org.apache.maven.plugin.compiler.AbstractCompilerMojo.execute (AbstractCompilerMojo.java:858)
at org.apache.maven.plugin.compiler.CompilerMojo.execute (CompilerMojo.java:129)
at org.apache.maven.plugin.DefaultBuildPluginManager.executeMojo (DefaultBuildPluginManager.java:137)
at org.apache.maven.lifecycle.internal.MojoExecutor.execute (MojoExecutor.java:210)
at org.apache.maven.lifecycle.internal.MojoExecutor.execute (MojoExecutor.java:156)
at org.apache.maven.lifecycle.internal.MojoExecutor.execute (MojoExecutor.java:148)
at org.apache.maven.lifecycle.internal.LifecycleModuleBuilder.buildProject (LifecycleModuleBuilder.java:117)
at org.apache.maven.lifecycle.internal.LifecycleModuleBuilder.buildProject (LifecycleModuleBuilder.java:81)
at org.apache.maven.lifecycle.internal.builder.singlethreaded.SingleThreadedBuilder.build (SingleThreadedBuilder.java:56)
at org.apache.maven.lifecycle.internal.LifecycleStarter.execute (LifecycleStarter.java:128)
at org.apache.maven.DefaultMaven.doExecute (DefaultMaven.java:305)
at org.apache.maven.DefaultMaven.doExecute (DefaultMaven.java:192)
at org.apache.maven.DefaultMaven.execute (DefaultMaven.java:105)
at org.apache.maven.cli.MavenCli.execute (MavenCli.java:957)
at org.apache.maven.cli.MavenCli.doMain (MavenCli.java:289)
at org.apache.maven.cli.MavenCli.main (MavenCli.java:193)
at jdk.internal.reflect.NativeMethodAccessorImpl.invoke0 (Native Method)
at jdk.internal.reflect.NativeMethodAccessorImpl.invoke (NativeMethodAccessorImpl.java:62)
at jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke (DelegatingMethodAccessorImpl.java:43)
at java.lang.reflect.Method.invoke (Method.java:566)
at org.codehaus.plexus.classworlds.launcher.Launcher.launchEnhanced (Launcher.java:282)
at org.codehaus.plexus.classworlds.launcher.Launcher.launch (Launcher.java:225)
at org.codehaus.plexus.classworlds.launcher.Launcher.mainWithExitCode (Launcher.java:406)
at org.codehaus.plexus.classworlds.launcher.Launcher.main (Launcher.java:347)
[ERROR]
[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
[ERROR]
[ERROR] After correcting the problems, you can resume the build with the command
[ERROR] mvn <args> -rf :graphipedia-dataimport
Not actively maintaining this project, but if somebody raises a PR upgrading to the latest Neo4j I'll be happy to review and merge it.