使用 sbt 时如何覆盖 .ivy2 目录的位置?

发布于 2024-08-19 06:25:45 字数 67 浏览 3 评论 0原文

我正在使用 xsbt 0.6.10 启动器。我希望将 ivy 文件和 jar 文件下载到不同的目录下。最好的方法是什么?

I'm using the xsbt 0.6.10 launcher. I would like the ivy files and jar files to be downloaded under a different directory. What is the best way to do this?

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

森末i 2024-08-26 06:25:45

在 sbt 0.6.12 中,可以通过覆盖 ivyCacheDirectory 来完成此操作:

override def ivyCacheDirectory = Some(path("../ivycache")) 

请参阅 0.6.11 公告IvyInterface 供参考。

With sbt 0.6.12, this can be done by overriding ivyCacheDirectory:

override def ivyCacheDirectory = Some(path("../ivycache")) 

See 0.6.11 announcement and IvyInterface for references.

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文