1

我正在使用播放!2 使用 SBT 进行依赖的框架。我想检索Spring Data Neo4j的 2.1.0-BUILD-SNAPSHOT 版本

我的ApplicationBuild.scala(由 SBT 使用)如下:

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

object ApplicationBuild extends Build {

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

  val appDependencies = Seq(
    jdbc,
    anorm,
    "org.springframework" % "spring-aop" % "3.2.0.RELEASE",
    "org.springframework" % "spring-aspects" % "3.2.0.RELEASE",
    "org.springframework" % "spring-beans" % "3.2.0.RELEASE",
    "org.springframework.data" % "spring-data-commons-core" % "1.4.0.RELEASE",
    "org.springframework" % "spring-expression" % "3.2.0.RELEASE",
    "org.springframework" % "spring-jdbc" % "3.2.0.RELEASE",
    "org.springframework" % "spring-orm" % "3.2.0.RELEASE",
    "org.springframework" % "spring-test" % "3.2.0.RELEASE",
    "org.springframework" % "spring-tx" % "3.2.0.RELEASE",
    "org.springframework.data" % "spring-data-neo4j" % "2.1.0.BUILD-SNAPSHOT" excludeAll(
        ExclusionRule(organization = "com.sun.jdmk"),
        ExclusionRule(organization = "com.sun.jmx"),
        ExclusionRule(organization = "javax.jms")
      ),
    "org.neo4j" % "neo4j" % "1.8.1",
    "asm" % "asm-all" % "3.1"
  )

  val main = play.Project(appName, appVersion, appDependencies).settings(
    scalaVersion := "2.10.0",
    resolvers += "TAMU Release Repository" at "https://maven.library.tamu.edu/content/repositories/releases/",
    resolvers += "Spring Maven SNAPSHOT Repository" at "http://repo.springsource.org/libs-snapshot"
  )

}

除了spring-data-neo4j之外,所有依赖项都已下载好。

它导致了这个错误:

warn]  ::::::::::::::::::::::::::::::::::::::::::::::                                        
[warn]  ::          UNRESOLVED DEPENDENCIES         ::
[warn]  ::::::::::::::::::::::::::::::::::::::::::::::
[warn]  :: org.neo4j#neo4j-cypher-dsl;1.8.RC1: not found
[warn]  ::::::::::::::::::::::::::::::::::::::::::::::
[error] (*:update) sbt.ResolveException: unresolved dependency: org.neo4j#neo4j-cypher-dsl;1.8.RC1: not found

neo4j-cypher-dsl;1.8.RC1没找到正常吗?我应该怎么做才能找回它?

4

1 回答 1

1

我找到了解决方法:

添加:

resolvers += "Neo4j Cypher DSL Repository" at "http://m2.neo4j.org/content/repositories/releases"

将下载丢失的 jar。

于 2013-01-19T21:32:34.930 回答