sdn-university icon indicating copy to clipboard operation
sdn-university copied to clipboard

neo4j embedded instance.

Open MohamedAmineOuali opened this issue 6 years ago • 4 comments

Hello,

Sorry for bothering you, but is the embedded instance of neo4j start automatically by spring boot because when I follow the same steps of this project I get connection refused. Which I think it mean the instance didn't start.

I am using old versions I have check you old commit and it should be fine I think. I have only one difference

<dependency>
            <groupId>org.neo4j</groupId>
            <artifactId>neo4j</artifactId>
            <version>3.1.0</version>
            <scope>runtime</scope>
        </dependency>  

this dependency is declared as a dependency of another dependency of the spring boot module. Can this be a problem?

https://stackoverflow.com/questions/51331870/embedded-neo4j-with-spring-boot

Thank you.

MohamedAmineOuali avatar Jul 15 '18 15:07 MohamedAmineOuali

Hi. The embedded instance is started automatically when you run this project as is with mvn spring-boot:run. What Do you mean by "flowed this project"? Did you mean cloned?

michael-simons avatar Jul 15 '18 18:07 michael-simons

Sorry for that it's a mistyping habit that I need to get ride of :p I meant "I followed"

MohamedAmineOuali avatar Jul 15 '18 19:07 MohamedAmineOuali

So if neo4j mvn dependency isn't in the same pom.xml as spring-boot plugin it will not be detected ?

because this is what I have: rest module (spring boot project) --> graph (maven module) -->neo4j

-->: mean "depend on"

MohamedAmineOuali avatar Jul 15 '18 19:07 MohamedAmineOuali

I think it's fine now I should have included the dependency in the spring boot module.

But by doing that I got another problem which is a maven version conflict between neo4j and elasticsearche because they use different version of lucene-core

I know this is not the place for this kind of issu so thank you very much for helping me with the first problem.

MohamedAmineOuali avatar Jul 16 '18 00:07 MohamedAmineOuali