Im working on a play! app using the Neo4j libraries. Neo4j is working fine, but I am trying to set up the server (including web administration) with an embedded database (following this tutorial).
My dependencies are:
val appDependencies = Seq(
"org.neo4j" % "neo4j" % "1.8.M06",
"org.neo4j.app" % "neo4j-server" % "1.8.M06",
"org.neo4j.app" % "neo4j-server" % "1.8.M06" classifier "static-web",
"com.sun.jersey" % "jersey-core" % "1.9"
)
However, when I run the update
command, the neo4j-server-1.8.M06.jar
is missing. Somehow, sbt fetches all jars and the pom file for this dependency:
[info] Updating [...]...
[...]
[info] downloading http://repo.typesafe.com/typesafe/releases/org/neo4j/neo4j/1.8.M06/neo4j-1.8.M06.pom ...
[info] [SUCCESSFUL ] org.neo4j#neo4j;1.8.M06!neo4j.pom (758ms)
[info] downloading http://repo.typesafe.com/typesafe/releases/org/neo4j/app/neo4j-server/1.8.M06/neo4j-server-1.8.M06-static-web.jar ...
[info] [SUCCESSFUL ] org.neo4j.app#neo4j-server;1.8.M06!neo4j-server.jar (3678ms)
[info] downloading http://repo.typesafe.com/typesafe/releases/com/sun/jersey/jersey-core/1.9/jersey-core-1.9.jar ...
[info] [SUCCESSFUL ] com.sun.jersey#jersey-core;1.9!jersey-core.jar(bundle) (941ms)
[info] downloading http://repo.typesafe.com/typesafe/releases/org/neo4j/neo4j-kernel/1.8.M06/neo4j-kernel-1.8.M06.jar ...
[...]
How can I tell sbt to fetch the required jar file? Adding withSources()
did not solve this problem.
I finally got it working with the following dependencies:
val appDependencies = Seq(
"org.neo4j" % "neo4j" % "1.8.M06",
"org.neo4j.app" % "neo4j-server" % "1.8.M06" classifier "static-web" classifier "",
"com.sun.jersey" % "jersey-core" % "1.9"
)
The key was the empty classifier ""
...