微信公众号搜"智元新知"关注
微信扫一扫可直接关注哦!

scala – Sbt Unresolved Dependencies(不是有效的命令:gen-idea)

我正试图让sbt使用sbt-idea插件生成Intellij IDEA项目文件,如 here所述.

[warn]  ::::::::::::::::::::::::::::::::::::::::::::::
[warn]  ::          UNRESOLVED DEPENDENCIES         ::
[warn]  ::::::::::::::::::::::::::::::::::::::::::::::
[warn]  :: de.undercouch#sbt-docbook-plugin;0.2-SNAPSHOT: not found
[warn]  ::::::::::::::::::::::::::::::::::::::::::::::
[warn] 
[warn]  Note: Some unresolved dependencies have extra attributes.  Check that these dependencies exist with the requested attributes.
[warn]      de.undercouch:sbt-docbook-plugin:0.2-SNAPSHOT (sbtVersion=0.11.2,scalaVersion=2.9.1)
[warn] 
[error] {file:/Users/ndidi/SandBox/specs2-spring-examples/simple/project/plugins/}default-58af23/*:update: sbt.ResolveException: unresolved dependency: de.undercouch#sbt-docbook-plugin;0.2-SNAPSHOT: not found
Project loading Failed: (r)etry,(q)uit,(l)ast,or (i)gnore? i
[warn] Ignoring load failure: no project loaded.
[error] Not a valid command: gen-idea
[error] gen-idea
[error]         ^

我已经浏览了项目的问题页面以及广泛的Google搜索,但是我还没有发现其他任何人遇到过这个问题,这让我觉得这个问题有点不常见,可能与我的设置问题有关.

如果有人能对此有所启发,那就非常感激了.

提前致谢.

解决方法

我通过清理sbt-idea官方网站上 this thread中建议的“〜/ .ivy2”和“〜/ .sbt”目录解决了这个问题.

版权声明:本文内容由互联网用户自发贡献,该文观点与技术仅代表作者本人。本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌侵权/违法违规的内容, 请发送邮件至 dio@foxmail.com 举报,一经查实,本站将立刻删除。

相关推荐