【问题标题】:How to ask "sbt-idea" plugin not download the sources of plugins when running `gen-idea sbt-classifiers`?运行`gen-idea sbt-classifiers`时如何询问“sbt-idea”插件不下载插件源?
【发布时间】:2014-11-14 05:09:16
【问题描述】:

sbt-idea 的帮助下,我可以为 Intellij-idea 生成文件。

使用此命令,我可以下载所有依赖项的 source-jar 和 doc-jar:

gen-idea sbt-classifiers

但它也会尝试下载插件的源jar。有时当我使用全局 snapshot sbt 插件时,例如:

"com.github.mpeltonen" % "sbt-idea" % "1.7.0-SNAPSHOT"

即使我在当前项目中不需要它,Sbt 也会尝试下载它的源代码。问题是下载速度很慢,在国内经常要花30多秒,所以不希望下载。

有没有办法让sbt不下载sbt插件的source-jar文件,或者我这里指定的那个?

【问题讨论】:

    标签: plugins download sbt


    【解决方案1】:

    在 sbt 中运行:

    gen-idea 无分类器

    【讨论】:

      猜你喜欢
      • 2012-03-17
      • 1970-01-01
      • 2018-05-13
      • 2017-07-01
      • 2012-08-11
      • 1970-01-01
      • 2013-12-26
      • 2015-02-26
      • 2015-01-12
      相关资源
      最近更新 更多