为什么 sbt 0.11 sbt-idea 插件在我的情况下无法正确生成项目? (详情内有)
我已经按照文档所述安装了 sbt 0.11 sbt-idea 。它似乎有效,但是...
它看不到项目的名称(即使命名了项目,生成的 Idea 项目也被命名为
default-11eed1
)它无法下载它想要的一些 jars
:::::::::::::::::::::::::::::::::::::::::::::: :: FAILED DOWNLOADS :: :: ^ see resolution messages for details ^ :: :::::::::::::::::::::::::::::::::::::::::::::: :: commons-codec#commons-codec;1.2!commons-codec.jar(src) :: org.scala-tools.testing#test-interface;0.5!test-interface.jar(src) :: org.scala-tools.sbt#compiler-interface;0.11.0!compiler-interface.jar(src) ::::::::::::::::::::::::::::::::::::::::::::::
I've installed sbt 0.11 sbt-idea as its documentation says. It seems to work, but...
It doesn't see a project's name (even having the project named, Idea project generated is named
default-11eed1
)It fails downloading some jars it wants
:::::::::::::::::::::::::::::::::::::::::::::: :: FAILED DOWNLOADS :: :: ^ see resolution messages for details ^ :: :::::::::::::::::::::::::::::::::::::::::::::: :: commons-codec#commons-codec;1.2!commons-codec.jar(src) :: org.scala-tools.testing#test-interface;0.5!test-interface.jar(src) :: org.scala-tools.sbt#compiler-interface;0.11.0!compiler-interface.jar(src) ::::::::::::::::::::::::::::::::::::::::::::::
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
如果您想要一个特定的项目名称,我认为您需要使用“完整”构建配置,而不是“轻型”配置。如果您只有一个 build.sbt 文件,SBT 会自动分配一个项目 ID,并将其用作 IntelliJ 模块名称。
sbt-idea
会自动下载库依赖项以及 SBT 本身的源 JAR。并非所有库都发布了源代码,在这些情况下会显示此警告。If you want a specific project name, I think you need to use a "full" build configuration, rather than a "light" configuration. SBT automatically assigns a project ID if you only have a build.sbt file, and this is used as the IntelliJ module name.
sbt-idea
automatically downloads the source JARs for your library dependencies, and for SBT itself. Not all libraries are published with sources, in those cases this warning is shown.