gpt4 book ai didi

intellij-idea - IntelliJ 中的 SBT xalan#serializer 错误

转载 作者:行者123 更新时间:2023-12-04 01:00:18 26 4
gpt4 key购买 nike

我正在使用 Intellij 在 Scala 中构建 Play 2 Web 应用程序。但是,我在 Intellij 中不断收到此错误。

SBT project import
[warn] [FAILED ] xalan#serializer;2.7.1!serializer.jar(src): (0ms)
[warn] ==== typesafe-ivy-releases: tried
[warn] http://repo.typesafe.com/typesafe/ivy-releases/xalan/serializer/2.7.1/srcs/serializer-sources.jar
[warn] ==== sbt-plugin-releases: tried
[warn] http://repo.scala-sbt.org/scalasbt/sbt-plugin-releases/xalan/serializer/2.7.1/srcs/serializer-sources.jar
[warn] ==== local: tried
[warn] C:\Users\ *** \.ivy2\local\xalan\serializer\2.7.1\srcs\serializer-sources.jar
[warn] ==== public: tried
[warn] http://repo1.maven.org/maven2/xalan/serializer/2.7.1/serializer-2.7.1-sources.jar
[warn] ==== Typesafe repository: tried
[warn] http://repo.typesafe.com/typesafe/releases/xalan/serializer/2.7.1/serializer-2.7.1-sources.jar
[warn] ::::::::::::::::::::::::::::::::::::::::::::::
[warn] :: FAILED DOWNLOADS ::
[warn] :: ^ see resolution messages for details ^ ::
[warn] ::::::::::::::::::::::::::::::::::::::::::::::
[warn] :: xalan#serializer;2.7.1!serializer.jar(src)
[warn] ::::::::::::::::::::::::::::::::::::::::::::::
[warn] [FAILED ] xalan#serializer;2.7.1!serializer.jar(doc): (0ms)
[warn] ==== local: tried
[warn] C:\Users\ *** \.ivy2\local\xalan\serializer\2.7.1\docs\serializer-javadoc.jar
[warn] ==== public: tried
[warn] http://repo1.maven.org/maven2/xalan/serializer/2.7.1/serializer-2.7.1-javadoc.jar
[warn] ==== Typesafe Releases Repository: tried
[warn] http://repo.typesafe.com/typesafe/releases/xalan/serializer/2.7.1/serializer-2.7.1-javadoc.jar
[warn] ==== Typesafe Releases: tried
[warn] http://repo.typesafe.com/typesafe/releases/xalan/serializer/2.7.1/serializer-2.7.1-javadoc.jar
[warn] ::::::::::::::::::::::::::::::::::::::::::::::
[warn] :: FAILED DOWNLOADS ::
[warn] :: ^ see resolution messages for details ^ ::
[warn] ::::::::::::::::::::::::::::::::::::::::::::::
[warn] :: xalan#serializer;2.7.1!serializer.jar(doc)
[warn] ::::::::::::::::::::::::::::::::::::::::::::::

从命令行运行项目时,一切正常,每次打开 Intellij 时都会弹出这个错误真的很烦人。

干杯

最佳答案

在遇到同样的错误并尝试了很多东西之后,我终于指定了丢失 jar 的更新版本。我将以下内容添加到我的 build.sbt :
libraryDependencies += "xalan" % "serializer" % "2.7.2"

It worked!

根本问题是,sbt 检查的公共(public)存储库中的 xalan 序列化程序 v2.7.1 无法使用 Javadoc 和源代码,但它们可用于较新的版本。版本中的小凸起不应该影响任何东西。

另一种解决方案是不指定 sbt 下载 Javadocs 和源。

关于intellij-idea - IntelliJ 中的 SBT xalan#serializer 错误,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/26633298/

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