我想将AnormCypher of Neo4j库包含到我在Eclipse中的运行框架项目中,但我坚持使用Windows 8。
毕竟,在eclipse中,我无法到达org.AnorCypher库,我无法找到添加它的方法。
发布于 2013-04-15 16:12:30
我解决了这个问题,我没有使用build.sbt,只是编辑了Build.scala文件,并在CMD中运行了"play compile“命令。
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"
)
)
}发布于 2014-02-16 17:28:08
只需按照Github上的说明,"play编译“和重新运行"play eclipse”命令即可。这是我的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.playScalaSettingshttps://stackoverflow.com/questions/15990810
复制相似问题