gpt4 book ai didi

solr - 在 IntelliJ 中使用 Solr 和 Play 时出现依赖错误

转载 作者:行者123 更新时间:2023-12-04 09:42:26 25 4
gpt4 key购买 nike

我在 IntelliJ 中运行 Play 2.1.2 和 Solr 4.4.0 时收到此错误消息。我以前没有这个,也不明白它是从哪里来的。多次尝试清洁项目。预先感谢您的帮助!

[info] Resolving com.googlecode.concurrentlinkedhashmap#concurrentlinkedhashmap-

[warn] module not found: org.restlet.jee#org.restlet;2.1.1
[warn] ==== local: tried
[warn] [...]\Play212\repository\local\org.restlet.jee\org.restlet\2.1.1\iv
ys\ivy.xml
[warn] ==== Typesafe Releases Repository: tried
[warn] http://repo.typesafe.com/typesafe/releases/org/restlet/jee/org.restlet/
2.1.1/org.restlet-2.1.1.pom
[warn] ==== Typesafe Snapshots Repository: tried
[warn] http://repo.typesafe.com/typesafe/snapshots/org/restlet/jee/org.restlet
/2.1.1/org.restlet-2.1.1.pom
[warn] ==== public: tried
[warn] http://repo1.maven.org/maven2/org/restlet/jee/org.restlet/2.1.1/org.res
tlet-2.1.1.pom
[warn] module not found: org.restlet.jee#org.restlet.ext.servlet;2.1.1
[warn] ==== local: tried
[warn] [...]\Play212\repository\local\org.restlet.jee\org.restlet.ext.serv
let\2.1.1\ivys\ivy.xml
[warn] ==== Typesafe Releases Repository: tried
[warn] http://repo.typesafe.com/typesafe/releases/org/restlet/jee/org.restlet.
ext.servlet/2.1.1/org.restlet.ext.servlet-2.1.1.pom
[warn] ==== Typesafe Snapshots Repository: tried
[warn] http://repo.typesafe.com/typesafe/snapshots/org/restlet/jee/org.restlet
.ext.servlet/2.1.1/org.restlet.ext.servlet-2.1.1.pom
[warn] ==== public: tried
[warn] http://repo1.maven.org/maven2/org/restlet/jee/org.restlet.ext.servlet/2
.1.1/org.restlet.ext.servlet-2.1.1.pom
[warn] ::::::::::::::::::::::::::::::::::::::::::::::
[warn] :: UNRESOLVED DEPENDENCIES ::
[warn] ::::::::::::::::::::::::::::::::::::::::::::::
[warn] :: org.restlet.jee#org.restlet;2.1.1: not found
[warn] :: org.restlet.jee#org.restlet.ext.servlet;2.1.1: not found
[warn] ::::::::::::::::::::::::::::::::::::::::::::::
[error] (*:update) sbt.ResolveException: unresolved dependency: org.restlet.jee#
org.restlet;2.1.1: not found
[error] unresolved dependency: org.restlet.jee#org.restlet.ext.servlet;2.1.1: no
t found

最佳答案

您似乎正在尝试导入 Restlet framework作为外部依赖。这是行不通的,因为默认情况下,sbt(Play 使用的构建工具)只检查 Typesafe 的存储库和 Maven 中心。我在 Maven 中心找不到 ReSTLet,事实上,on their download page, they write :

The Maven repository for Restlet is accessible from http://maven.restlet.org and contains all Restlet JARs and third party dependencies that aren't available in the main public Maven repository. [...]

这意味着您必须以某种方式告诉 SBT 在哪里寻找依赖项。 A quick look into Play's documentation显示您需要在 project/Build.scala 中添加一行:

resolvers += "Restlet Repository" at "http://maven.restlet.org"

关于solr - 在 IntelliJ 中使用 Solr 和 Play 时出现依赖错误,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/18209767/

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