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”目录解决了这个问题.

相关文章

这篇文章主要介绍了idea中mapper快速跳转到xml插件的方法,具...
今天小编给大家分享的是IDEA搭建Maven模块化项目的实现方法,...
这篇文章主要介绍了ideaintellij怎么快速修复if语句缺少大括...
这篇文章主要介绍“idea运行main方法或Test避免编译整个应用...
这篇文章主要介绍“idea项目全局去掉严格的语法校验方式是什...
本文小编为大家详细介绍“Windows、IDEA、VSCode常用快捷键有...