我正在使用使用SBT的Play 2框架,並試圖在我的項目中包含Lucene夜間罐子。我已將以下內容添加到我的plugins.sbt中:在Play 2 SBT項目中包含Lucene夜間罐子
resolvers ++= Seq(
DefaultMavenRepository,
Resolver.url("Play", url("http://download.playframework.org/ivy-releases/"))(Resolver.ivyStylePatterns),
"Typesafe Repository" at "http://repo.typesafe.com/typesafe/releases/",
"Lucence Snapshot Repository" at "https://builds.apache.org/job/Lucene-Solr-Maven-trunk/lastSuccessfulBuild/artifact/maven_artifacts/"
)
但是,它無法找到該jar。它似乎甚至沒有檢查新的存儲庫:
[warn] module not found: org.apache.lucene#lucene-analyzers-common;4.0-SNAPSHOT
[warn] ==== local: tried
[warn] /usr/local/users/bmccann/Play20/framework/../repository/local/org.apache.lucene/lucene- analyzers-common/4.0-SNAPSHOT/ivys/ivy.xml
[warn] ==== Typesafe Releases Repository: tried
[warn] http://repo.typesafe.com/typesafe/releases/org/apache/lucene/lucene-analyzers-common/4.0-SNAPSHOT/lucene-analyzers-common-4.0-SNAPSHOT.pom
[warn] ==== Typesafe Snapshots Repository: tried
[warn] http://repo.typesafe.com/typesafe/snapshots/org/apache/lucene/lucene-analyzers-common/4.0-SNAPSHOT/lucene-analyzers-common-4.0-SNAPSHOT.pom
[warn] ==== public: tried
[warn] http://repo1.maven.org/maven2/org/apache/lucene/lucene-analyzers-common/4.0-SNAPSHOT/lucene-analyzers-common-4.0-SNAPSHOT.pom
[warn] ==== Scala-Tools Maven2 Repository: tried
[warn] http://scala-tools.org/repo-releases/org/apache/lucene/lucene-analyzers-common/4.0-SNAPSHOT/lucene-analyzers-common-4.0-SNAPSHOT.pom
[warn] ::::::::::::::::::::::::::::::::::::::::::::::
[warn] :: UNRESOLVED DEPENDENCIES ::
[warn] ::::::::::::::::::::::::::::::::::::::::::::::
[warn] :: org.apache.lucene#lucene-analyzers-common;4.0-SNAPSHOT: not found
[warn] ::::::::::::::::::::::::::::::::::::::::::::::
是否SBT做這些回購,我需要重置一些緩存?它可以不處理https回購?我無法弄清楚這裏發生了什麼。任何人都可以將jar包括到他們的項目中嗎?
他們詹金斯建的,但我敢肯定它仍然是一個Maven倉庫。它的目錄結構與Maven所需的匹配,POM文件在那裏,等等。只要符合要求,您就可以以任何形式託管Maven回購。例如,我已經將它們看作是在該結構中對somone的googlecode或GitHub進行了檢查的jar。以下是一些文檔,指每晚作爲有效的Maven回購: https://svn.apache.org/repos/asf/lucene/dev/trunk/dev-tools/maven/README.maven http: //wiki.apache.org/solr/NightlyBuilds – 2012-03-02 10:43:23