user1186409
user1186409

Reputation: 111

Play Framework with Neo4j-Anormcypher

I want to include the AnormCypher of Neo4j library to my playframework project in Eclipse but I stuck.I'am using Windows 8.These are few steps that I am doing;

After all in eclipse I can't reach the org.AnorCypher library.I couldnt find the way to add it.

Upvotes: 1

Views: 560

Answers (2)

Francisco Gutiérrez
Francisco Gutiérrez

Reputation: 1393

Just follow the instructions on Github, "play compile" and re-run "play eclipse" command. Here's my build.sbt:

name := "myprojectname"
version := "1.0-SNAPSHOT"
resolvers ++= Seq(
  "anormcypher" at "http://repo.anormcypher.org/",
  "Typesafe Releases" at "http://repo.typesafe.com/typesafe/releases/"
)
libraryDependencies ++= Seq(
  jdbc,
  anorm,
  cache,
  "org.anormcypher" %% "anormcypher" % "0.4.4"
)     
play.Project.playScalaSettings

Upvotes: 0

user1186409
user1186409

Reputation: 111

I solved it and i didnt use build.sbt,just edited the Build.scala file and ran the "play compile" command in CMD.

Build.scala:

  import sbt._
import Keys._
import play.Project._

object ApplicationBuild extends Build {

  val appName         = "project1"
  val appVersion      = "1.0-SNAPSHOT"

  val appDependencies = Seq(
    // Add your project dependencies here,
    jdbc,
    anorm

  )

   val Repos = Seq(
    "anormcypher" at "http://repo.anormcypher.org/",
    "Mandubian repository snapshots" at "https://github.com/mandubian/mandubian-mvn/raw/master/snapshots/",
    "Mandubian repository releases" at "https://github.com/mandubian/mandubian-mvn/raw/master/releases/"
  )


  val main = play.Project(appName, appVersion, appDependencies).settings(
    // Add your own project settings here  


        resolvers ++= Repos,
        libraryDependencies ++= Seq(
                "play"        %% "play-json" % "2.2-SNAPSHOT",
                "org.anormcypher" %% "anormcypher" % "0.4.0"

              )    
  )

}

Upvotes: 1

Related Questions