2013-01-19 55 views
1

我正在使用Play! 2框架使用SBT进行依赖关系。 我想检索2.1.0-BUILD-快照版本的Spring Data Neo4jSpring 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" 
) 

} 

所有相关性以及下载除了弹簧数据的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没有找到? 我该怎么做才能找回它?

回答

1

我找到了一个解决办法:

添加:

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

将下载丢失的罐子。

相关问题