gpt4 book ai didi

playframework - 在 Play 2 SBT 项目中包含 Lucene nightly jar

转载 作者:行者123 更新时间:2023-12-02 05:07:28 25 4
gpt4 key购买 nike

我正在使用使用 SBT 的 Play 2 框架,并试图在我的项目中包含 Lucene nightly jar。我已将以下内容添加到我的 plugins.sbt 中:

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 repo 吗?我不知道这里发生了什么。其他人是否能够将 jar 包含到他们的项目中?

最佳答案

你确定是网址吗

https://builds.apache.org/job/Lucene-Solr-Maven-trunk/lastSuccessfulBuild/artifact/maven_artifacts/

Maven 存储库的 URL 是否正确?当我在浏览器中打开它时,我看到一个 Jenkins 实例,它看起来不对...

四处查看,我只能找到稳定版本的 repo 协议(protocol),所以我觉得如果需要,您需要手动下载每晚构建的版本。不过,我可能错过了正确的存储库。

关于playframework - 在 Play 2 SBT 项目中包含 Lucene nightly jar,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/9527111/

25 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com