Sbt Unresolved Dependencies (Invalid command: gen-idea)

I am trying to get sbt for creating Intellij IDEA project files using the sbt-idea plugin as described 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] ^ 

I looked at the page with the problems of the project, as well as Googled widely, however I did not find anyone else with this problem, making me believe that the problem is somewhat unusual and may be related to the problem with my setup ..

If anyone could shed light on this, that would be very helpful.

Thanks in advance.

+4
source share
2 answers

Two changes help solve this problem and a number of other minor issues:

  • I deleted this line:

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

    from / project / plugins.sbt

  • I no longer run sbt commands from the command line, I exclusively use the sbt console. That $ sbt gen-idea works, fails, and gen-idea in the sbt console succeeds, it seems a little strange to me. If I find out why, I will definitely update the comment.
0
source

I solved the problem by clearing the ~ ~ .ivy2 and ~ ~ .sbt directories, as suggested in this thread on the official sbt-idea website.

+2
source

Source: https://habr.com/ru/post/1391024/


All Articles