Hi,

I received a message on github asking how to setup the dependencies for
using neo4j-spatial in a non-maven project, and I replied there, but thought
this should also be posted to the neo4j mailing list in case it is of
interest to others.

Even if you don't use maven for your own project, you could still use maven
to grab all the dependencies once and then manually add them to your
project. For example, in neo4j-spatial/pom.xml, we have the maven target
dependency:copy-dependencies that will copy all the jars into
target/dependency. Then you can copy those to your application.

git clone git://github.com/neo4j/neo4j-spatial.git
cd neo4j-spatial
mvn dependency:copy-dependencies
cp -a target/dependency/* ~/my-app/lib/

You also started to describe a little about your applications requirements.
Do you want advice on the graph model? We support importing OSM, but it
sounds like you have a modified OSM model of your own. Either just import
your data as you see fit (and write a GeometryEncoder to map to spatial), or
use our OSM importer and add your own extra graph constructs to the OSM
graph (eg. add direct relationships between some nodes specific for your
routing algorithms), then you have the standard OSM (for map rendering,
etc.) and your routing graph combined. We have been thinking of doing that
anyway for routing, since OSM 'out the box' is not ideal for routing.

Regards, Craig

--
View this message in context: 
http://neo4j-community-discussions.438527.n3.nabble.com/Using-neo4j-spatial-in-non-maven-projects-tp3190930p3190930.html
Sent from the Neo4J Community Discussions mailing list archive at Nabble.com.
_______________________________________________
Neo4j mailing list
User@lists.neo4j.org
https://lists.neo4j.org/mailman/listinfo/user

Reply via email to