We have updated the POM file with our neo4j version 4.1.3 but mvn clean package returns the following trace:
[root@centos-s-1vcpu-1gb-lon1-01 neo_listens]# mvn clean package -e
[INFO] Error stacktraces are turned on.
[INFO] Scanning for projects...
[WARNING]
[WARNING] Some problems were encountered while building the effective model for com.maxdemarzi:triggers:jar:1.0
[WARNING] 'build.plugins.plugin.version' for org.apache.maven.plugins:maven-compiler-plugin is missing. @ line 41, column 21
[WARNING]
[WARNING] It is highly recommended to fix these problems because they threaten the stability of your build.
[WARNING]
[WARNING] For this reason, future Maven versions might no longer support building such malformed projects.
[WARNING]
[INFO]
[INFO] ----------------------< com.maxdemarzi:triggers >-----------------------
[INFO] Building triggers 1.0
[INFO] --------------------------------[ jar ]---------------------------------
[INFO]
[INFO] --- maven-clean-plugin:2.5:clean (default-clean) @ triggers ---
[INFO] Deleting /root/neo_listens/target
[INFO]
[INFO] --- maven-resources-plugin:2.6:resources (default-resources) @ triggers ---
[WARNING] Using platform encoding (UTF-8 actually) to copy filtered resources, i.e. build is platform dependent!
[INFO] Copying 1 resource
[INFO]
[INFO] --- maven-compiler-plugin:3.1:compile (default-compile) @ triggers ---
[INFO] Changes detected - recompiling the module!
[WARNING] File encoding has not been set, using platform encoding UTF-8, i.e. build is platform dependent!
[INFO] Compiling 5 source files to /root/neo_listens/target/classes
[INFO] -------------------------------------------------------------
[ERROR] COMPILATION ERROR :
[INFO] -------------------------------------------------------------
[ERROR] /root/neo_listens/src/main/java/com/maxdemarzi/RegisterTransactionEventHandlerExtensionFactory.java:[5,34] cannot find symbol
symbol: class KernelExtensionFactory
location: package org.neo4j.kernel.extension
[ERROR] /root/neo_listens/src/main/java/com/maxdemarzi/RegisterTransactionEventHandlerExtensionFactory.java:[6,33] package org.neo4j.kernel.impl.spi does not exist
[ERROR] /root/neo_listens/src/main/java/com/maxdemarzi/RegisterTransactionEventHandlerExtensionFactory.java:[15,70] cannot find symbol
symbol: class KernelExtensionFactory
[ERROR] /root/neo_listens/src/main/java/com/maxdemarzi/RegisterTransactionEventHandlerExtensionFactory.java:[19,34] cannot find symbol
symbol: class KernelContext
location: class com.maxdemarzi.RegisterTransactionEventHandlerExtensionFactory
[ERROR] /root/neo_listens/src/main/java/com/maxdemarzi/MyTransactionEventHandler.java:[5,31] cannot find symbol
symbol: class TransactionEventHandler
location: package org.neo4j.graphdb.event
[ERROR] /root/neo_listens/src/main/java/com/maxdemarzi/MyTransactionEventHandler.java:[11,51] cannot find symbol
symbol: class TransactionEventHandler
[INFO] 6 errors
[INFO] -------------------------------------------------------------
[INFO] ------------------------------------------------------------------------
[INFO] BUILD FAILURE
[INFO] ------------------------------------------------------------------------
[INFO] Total time: 5.770 s
[INFO] Finished at: 2020-10-31T21:09:03Z
[INFO] ------------------------------------------------------------------------
[ERROR] Failed to execute goal org.apache.maven.plugins:maven-compiler-plugin:3.1:compile (default-compile) on project triggers: Compilation failure: Compilation failure:
[ERROR] /root/neo_listens/src/main/java/com/maxdemarzi/RegisterTransactionEventHandlerExtensionFactory.java:[5,34] cannot find symbol
[ERROR] symbol: class KernelExtensionFactory
[ERROR] location: package org.neo4j.kernel.extension
[ERROR] /root/neo_listens/src/main/java/com/maxdemarzi/RegisterTransactionEventHandlerExtensionFactory.java:[6,33] package org.neo4j.kernel.impl.spi does not exist
[ERROR] /root/neo_listens/src/main/java/com/maxdemarzi/RegisterTransactionEventHandlerExtensionFactory.java:[15,70] cannot find symbol
[ERROR] symbol: class KernelExtensionFactory
[ERROR] /root/neo_listens/src/main/java/com/maxdemarzi/RegisterTransactionEventHandlerExtensionFactory.java:[19,34] cannot find symbol
[ERROR] symbol: class KernelContext
[ERROR] location: class com.maxdemarzi.RegisterTransactionEventHandlerExtensionFactory
[ERROR] /root/neo_listens/src/main/java/com/maxdemarzi/MyTransactionEventHandler.java:[5,31] cannot find symbol
[ERROR] symbol: class TransactionEventHandler
[ERROR] location: package org.neo4j.graphdb.event
[ERROR] /root/neo_listens/src/main/java/com/maxdemarzi/MyTransactionEventHandler.java:[11,51] cannot find symbol
[ERROR] symbol: class TransactionEventHandler
[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 triggers: Compilation failure
at org.apache.maven.lifecycle.internal.MojoExecutor.execute (MojoExecutor.java:213)
at org.apache.maven.lifecycle.internal.MojoExecutor.execute (MojoExecutor.java:154)
at org.apache.maven.lifecycle.internal.MojoExecutor.execute (MojoExecutor.java:146)
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:954)
at org.apache.maven.cli.MavenCli.doMain (MavenCli.java:288)
at org.apache.maven.cli.MavenCli.main (MavenCli.java:192)
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:289)
at org.codehaus.plexus.classworlds.launcher.Launcher.launch (Launcher.java:229)
at org.codehaus.plexus.classworlds.launcher.Launcher.mainWithExitCode (Launcher.java:415)
at org.codehaus.plexus.classworlds.launcher.Launcher.main (Launcher.java:356)
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:208)
at org.apache.maven.lifecycle.internal.MojoExecutor.execute (MojoExecutor.java:154)
at org.apache.maven.lifecycle.internal.MojoExecutor.execute (MojoExecutor.java:146)
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:954)
at org.apache.maven.cli.MavenCli.doMain (MavenCli.java:288)
at org.apache.maven.cli.MavenCli.main (MavenCli.java:192)
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:289)
at org.codehaus.plexus.classworlds.launcher.Launcher.launch (Launcher.java:229)
at org.codehaus.plexus.classworlds.launcher.Launcher.mainWithExitCode (Launcher.java:415)
at org.codehaus.plexus.classworlds.launcher.Launcher.main (Launcher.java:356)
[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
[root@centos-s-1vcpu-1gb-lon1-01 neo_listens]#