4

here で説明されているように、sbt-ideaプラグインを使用してsbtにIntellij IDEAプロジェクトファイルを生成させようとしています。

[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]         ^

私はプロジェクトの問題ページに目を通し、広範囲にグーグルで検索しましたが、この問題を抱えている人を他に発見していないため、この問題はやや珍しいものであり、セットアップの問題に関連している可能性が高いと思います..

誰かがこれに少し光を当てることができれば、それは大歓迎です.

前もって感謝します。

4

2 に答える 2

2

sbt-idea 公式サイトのこのスレッドで提案されているように、「~/.ivy2」および「~/.sbt」ディレクトリをクリーンアップすることで問題を解決しました。

于 2013-03-24T22:30:42.227 に答える
0

2つの変更により、これと他の多くの小さな問題を解決できます。

  1. 私はこの行を削除しました:

    addSbtPlugin( "de.undercouch"% "sbt-docbook-plugin"% "0.2-SNAPSHOT")

    /project/plugins.sbtから

  2. コマンドラインからsbtコマンドを実行するのではなく、sbtコンソールのみを使用します。'$ sbt gen-idea'の実行は失敗しますが、sbtコンソールの'> gen-idea'は成功しますが、少し奇妙に思います。理由がわかれば、必ずコメントで更新します。
于 2012-01-15T18:03:22.977 に答える