graphaware / fix-your-microservices

Code examples for talk 'Fix your microservice architecture using graph analysis'
Apache License 2.0
14 stars 6 forks source link

runAnalysis.sh getting fail with an error as "Unknown function 'apoc.text.replace' " #1

Open arimonda opened 3 years ago

arimonda commented 3 years ago

ERROR Main - -> Analysis failed.-> Cannot execute query for rule 'Concept{id='microservices:AddURLInfo', description='Enriches the endpoints URLs with the deployment URLs parts of the services', ruleSource=/home/path/fix-your-microservices-master/config/microservices-rules.adoc}'.-> Unknown function 'apoc.text.replace' (line 7, column 36 (offset: 518)) "SET endpoint.fullUrl = urlPrefix + apoc.text.replace(endpoint.url, '\{.*\}', '{}')"

nmervaillie commented 3 years ago

As specified in the readme, you need to install the APOC library into Neo4j

arimonda commented 3 years ago

I have performed below steps , Afther that I had performed scan which was success.. But analysis fail.

Get the sample application and build it

git clone https://github.com/sqshq/PiggyMetrics mvn clean package -DskipTests -f PiggyMetrics/pom.xml

Install jQAssistant

curl -O https://jqassistant.org/wp-content/uploads/2018/12/jqassistant-commandline-neo4jv3-1.6.0-distribution.zip unzip jqassistant-commandline-neo4jv3-1.6.0-distribution.zip mv jqassistant-commandline-neo4jv3-1.6.0 jqassistant

mervesc commented 2 years ago

After trying out many things, I'm still not able to properly install the APOC library to work with JQassistant. Could you give some direction on how to do this? I tried to copy the shaded JAR file as described here: https://github.com/jqassistant-contrib/jqassistant-apoc-plugin but nothing has worked until now.

mervesc commented 2 years ago

Solution: Download JQAssistant 1.9.1: https://jqassistant.org/jqassistant-1-9-1-released/ Copy the jqassistant-apoc-plugin-1.9.0-shaded.jar from https://github.com/jqassistant-contrib/jqassistant-apoc-plugin#1-9-0 under the /plugins directory.