如何在离线模式下使用SBT进行构建 [英] How to build using SBT in offline mode

查看:371
本文介绍了如何在离线模式下使用SBT进行构建的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

SBT中mvn -o的等效项是什么?当我检查.ivy存储库时,可以在cache/groupId/artifactId/jars中看到依赖罐.当我尝试在没有Internet连接的情况下构建它时,它仍然会执行此Resolving ...并显示Unresolved Dependencies错误.如何关闭此功能?我尝试使用sbt set-offline := true,但仍然收到错误.这可能吗?也许下载一次,然后像maven那样将工件保存在.m2中,如果无法在.ivy中从那里获取,就可以从那里获取

What is the equivalent of mvn -o in SBT? When I check my .ivy repository, I can see the dependecy jars in cache/groupId/artifactId/jars. When I try to build it without internet connection, it still does this Resolving ... thing and shows Unresolved Dependencies error. How can I turn this off? I tried using sbt set-offline := true but still gets the error. Is this possible? Maybe download once and save the artifacts in .m2 like maven and get it from there if its not possible in .ivy

推荐答案

尝试set skip in update := true

这篇关于如何在离线模式下使用SBT进行构建的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆