【发布时间】:2019-02-12 01:29:55
【问题描述】:
对菊石的 IDE 支持如本文https://blog.jetbrains.com/scala/2018/05/07/ammonite-support/ 中所述。
Ammonite 使用私有 maven 存储库也可以在脚本中使用,如链接 http://ammonite.io/#import$ivy 中所述
在我的情况下,唯一的事情是如何让 intellij 在我的私有 maven 存储库中找到包。
intellij 看起来不会咨询~/.ammonite/predef.sc
【问题讨论】:
-
您好,不知道您是否找到了解决 intellij 问题的方法?我有同样的问题。如果库来自私人仓库,intellij 无法从 Ammonite 脚本自动添加它。
-
我怀疑它会使用
~/.m2/settings.xml,maven.apache.org/settings.html,但我还没有尝试过。 -
你能解释清楚吗?我可以试试,那里需要改什么?
-
忽略
~/.m2/settings.xml的评论,问题真的与它无关。 get-coursier.io/docs/other-repositories
标签: scala intellij-idea ammonite