mpeltonen/sbt-idea — Issue #110: Can't resolve sbt-idea 0.11.1-SNAPSHOT when triggering 'gen-idea'
Author: johansjoberg
Created: 2011-11-08 22:16:31+00:00
State: open

I don't know if I am doing something wrong, but I am following the guide and when I try to generate the IntelliJ IDEA project files by triggering the gen-idea goal it can't resolve the sbt-idea plugin dependency. It however successfully resolved it during the project creation.

It seems to look in .../.ivy2/local/... which I don't have. But when looking int the ivy directory it does exist here .../.ivy2/cache/scala_2.9.1/sbt_0.11.1/com.github.mpeltonen/sbt-idea

I read that local is when you publish locally, do I need to publish the plugin locally somehow, or am I missing something?

Partial log from running 'sbt':
[info] downloading http://mpeltonen.github.com/maven/com/github/mpeltonen/sbt-idea_2.9.1_0.11.1/0.11.1-SNAPSHOT/sbt-idea-0.11.1-SNAPSHOT.jar
...
[info] [SUCCESSFUL ] com.github.mpeltonen#sbt-idea;0.11.1-SNAPSHOT!sbt-idea.jar (1737ms)

Log from running 'gen-idea':
> gen-idea
[info] Trying to create an Idea module default-adbc71
[info] Updating {file:/C:/dev/repo/scala/sbt-test/}default-adbc71...
[info] Resolving org.scala-lang#scala-library;2.9.1 ...
[info] Done updating.
[info] Resolving org.scala-lang#scala-library;2.9.1 ...
[info] downloading http://repo1.maven.org/maven2/org/scala-lang/scala-library/2.9.1/scala-library-2.9.1-sources.jar ...
[info] [SUCCESSFUL ] org.scala-lang#scala-library;2.9.1!scala-library.jar(src) (1698ms)
[info] downloading http://repo1.maven.org/maven2/org/scala-lang/scala-library/2.9.1/scala-library-2.9.1-javadoc.jar ...
[info] [SUCCESSFUL ] org.scala-lang#scala-library;2.9.1!scala-library.jar(doc) (17869ms)
[info] Excluding folder target
[info] Created C:\dev\repo\scala\sbt-test/.idea/IdeaProject.iml
[info] Created C:\dev\repo\scala\sbt-test\.idea
[info] Excluding folder C:\dev\repo\scala\sbt-test\target
[info] Created C:\dev\repo\scala\sbt-test\.idea_modules/default-adbc71.iml
[info] Resolving org.scala-tools.sbt#sbt_2.9.1;0.11.1 ...
[info] Resolving org.scala-tools.sbt#main_2.9.1;0.11.1 ...
[info] Resolving org.scala-tools.sbt#actions_2.9.1;0.11.1 ...
[info] Resolving org.scala-tools.sbt#classfile_2.9.1;0.11.1 ...
[info] Resolving org.scala-tools.sbt#io_2.9.1;0.11.1 ...
[info] Resolving org.scala-tools.sbt#control_2.9.1;0.11.1 ...
[info] Resolving org.scala-lang#scala-library;2.9.1 ...
[info] Resolving org.scala-tools.sbt#interface;0.11.1 ...
[info] Resolving org.scala-tools.sbt#logging_2.9.1;0.11.1 ...
[info] Resolving org.scala-tools.sbt#process_2.9.1;0.11.1 ...
[info] Resolving org.scala-tools.sbt#classpath_2.9.1;0.11.1 ...
[info] Resolving org.scala-tools.sbt#launcher-interface_2.9.1;0.11.1 ...
[info] Resolving org.scala-lang#scala-compiler;2.9.1 ...
[info] Resolving org.scala-tools.sbt#incremental-compiler_2.9.1;0.11.1 ...
[info] Resolving org.scala-tools.sbt#collections_2.9.1;0.11.1 ...
[info] Resolving org.scala-tools.sbt#api_2.9.1;0.11.1 ...
[info] Resolving org.scala-tools.sbt#persist_2.9.1;0.11.1 ...
[info] Resolving org.scala-tools.sbinary#sbinary_2.9.0;0.4.0 ...
[info] Resolving org.scala-tools.sbt#compile_2.9.1;0.11.1 ...
[info] Resolving org.scala-tools.sbt#ivy_2.9.1;0.11.1 ...
[info] Resolving org.apache.ivy#ivy;2.2.0 ...
[info] Resolving com.jcraft#jsch;0.1.31 ...
[info] Resolving commons-httpclient#commons-httpclient;3.1 ...
[info] Resolving commons-logging#commons-logging;1.0.4 ...
[info] Resolving commons-codec#commons-codec;1.2 ...
[info] Resolving org.scala-tools.sbt#completion_2.9.1;0.11.1 ...
[info] Resolving jline#jline;0.9.94 ...
[info] Resolving org.scala-tools.sbt#run_2.9.1;0.11.1 ...
[info] Resolving org.scala-tools.sbt#task-system_2.9.1;0.11.1 ...
[info] Resolving org.scala-tools.sbt#tasks_2.9.1;0.11.1 ...
[info] Resolving org.scala-tools.sbt#tracking_2.9.1;0.11.1 ...
[info] Resolving org.scala-tools.sbt#cache_2.9.1;0.11.1 ...
[info] Resolving org.scala-tools.sbt#testing_2.9.1;0.11.1 ...
[info] Resolving org.scala-tools.testing#test-interface;0.5 ...
[info] Resolving org.scala-tools.sbt#compiler-interface;0.11.1 ...
[info] Resolving org.scala-tools.sbt#precompiled-2_8_1;0.11.1 ...
[info] Resolving org.scala-tools.sbt#precompiled-2_8_0;0.11.1 ...
[info] Resolving org.scala-tools.sbt#precompiled-2_9_0;0.11.1 ...
[info] Resolving com.github.mpeltonen#sbt-idea;0.11.1-SNAPSHOT ...
[warn] module not found: com.github.mpeltonen#sbt-idea;0.11.1-SNAPSHOT
[warn] ==== local: tried
[warn] C:\Users\Johan\.ivy2/local/com.github.mpeltonen/sbt-idea/scala_2.9.1/sbt_0.11.1/0.11.1-SNAPSHOT/ivys/ivy.xml
[warn] ==== Maven2 Local: tried
[warn] file:/C:/Users/Johan/.m2/repository/com/github/mpeltonen/sbt-idea_2.9.1_0.11.1/0.11.1-SNAPSHOT/sbt-idea-0.11.1-SNAPSHOT.pom
[warn] ==== typesafe-ivy-releases: tried
[warn] http://repo.typesafe.com/typesafe/ivy-releases/com.github.mpeltonen/sbt-idea/0.11.1-SNAPSHOT/ivys/ivy.xml
[warn] ==== public: tried
[warn] http://repo1.maven.org/maven2/com/github/mpeltonen/sbt-idea_2.9.1_0.11.1/0.11.1-SNAPSHOT/sbt-idea-0.11.1-SNAPSHOT.pom
[warn] ==== Scala-Tools Maven2 Repository: tried
[warn] http://scala-tools.org/repo-releases/com/github/mpeltonen/sbt-idea_2.9.1_0.11.1/0.11.1-SNAPSHOT/sbt-idea-0.11.1-SNAPSHOT.pom
[warn] ==== Scala-Tools Maven2 Snapshots Repository: tried
[warn] http://scala-tools.org/repo-snapshots/com/github/mpeltonen/sbt-idea_2.9.1_0.11.1/0.11.1-SNAPSHOT/sbt-idea-0.11.1-SNAPSHOT.pom
[info] Resolving commons-io#commons-io;2.0.1 ...
[warn] ::::::::::::::::::::::::::::::::::::::::::::::
[warn] :: UNRESOLVED DEPENDENCIES ::
[warn] ::::::::::::::::::::::::::::::::::::::::::::::
[warn] :: com.github.mpeltonen#sbt-idea;0.11.1-SNAPSHOT: not found
[warn] ::::::::::::::::::::::::::::::::::::::::::::::
[warn]
[warn] Note: Some unresolved dependencies have extra attributes. Check that these dependencies exist with the requested attributes.
[warn] com.github.mpeltonen:sbt-idea:0.11.1-SNAPSHOT (sbtVersion=0.11.1, scalaVersion=2.9.1)
[warn]
[error] {file:/C:/dev/repo/scala/sbt-test/}default-adbc71/*:update-sbt-classifiers: sbt.ResolveException: unresolved dependency: com.github.
mpeltonen#sbt-idea;0.11.1-SNAPSHOT: not found
[info] Created C:\dev\repo\scala\sbt-test\.idea_modules/project.iml