I copied this github repository as a template for using User-Defined Procedures in Neo4j.
https://github.com/maxdemarzi/medicare
I added some procedures, used "mvn clean package", and was able to see these procedures in my database after putting the .jar file into the var/lib/neo4j/plugins folder and running "call dbms.procedures();" in the cypher-shell. However, when I add more functions to the database, I am not able to see or access them. Also, I can not edit or delete the procedures that I added the first time I ran "mvn clean package". Has anyone else run into this problem?
After troubleshooting, I found that if you change the
artifactIdin the pom.xml file every time you want to recompile the jar file, it updates with the new procedures.For example, the original
artifactIdfor the medicare repository is "medicare". When I changed this value to "medicare123", ranmvn clean package, put the.jarfile into the/var/lib/neo4j/pluginsfolder, and restarted my neo4j instance: I could see the procedures with thedbms.procedures()command in the cypher-shell. This is probably not the official way to solve this problem, but this is what fixed mine.