我需要在 sbt build中配置 Ivy锁策略。
我试图externalIvySettings(baseDirectory(_ / "ivysettings.xml"))
放入Build.scala
ivysettings.xml:
<ivysettings>
<settings defaultResolver="default"/>
<include url="${ivy.default.settings.dir}/ivysettings-public.xml"/>
<include url="${ivy.default.settings.dir}/ivysettings-shared.xml"/>
<include url="${ivy.default.settings.dir}/ivysettings-local.xml"/>
<include url="${ivy.default.settings.dir}/ivysettings-main-chain.xml"/>
<include url="${ivy.default.settings.dir}/ivysettings-default-chain.xml"/>
<lock-strategies>no-lock</lock-strategies>
</ivysettings>
但在这种情况下,sbt 无法解析依赖项(我想是因为解析器被解析器从 ivysettings 屏蔽)。
如何配置锁定策略Build.scala
?