简体   繁体   English

常春藤解决动态依赖

[英]ivy resolve dynamic dependency

I am using Ivy to resolve my dependencies. 我正在使用常春藤来解决我的依赖关系。 We have a big share space where all the libraries we use live and are retrieved from as needed. 我们有一个很大的共享空间,我们可以实时使用并从中检索所有需要使用的库。

Very occasionally we need to add some additional files to an existing library version. 有时我们需要向现有库版本中添加一些其他文件。 For example we recently started to use the charting components in a UI library. 例如,我们最近开始在UI库中使用图表组件。 We hadn't previously needed them so I took the relevant DLLs and copied them into the share space with the existing UI DLLs. 我们以前不需要它们,因此我将相关的DLL并复制到了现有UI DLL的共享空间中。

However running ivy doesn't pick these additions up by default, presumably because they are locally cached on my machine and ivy only does a version check to see whether it already has version xyz of library a. 但是,运行ivy时默认情况下不会选择这些添加项,这大概是因为它们是本地缓存在我的计算机上的,而且ivy仅会进行版本检查以查看是否已经具有库a的xyz版本。 It doesn't check whether version xyz of library a has changed in the ivy repository. 它不会检查ivy存储库中库a的xyz版本是否已更改。

Is there a way of getting ivy to check the repository for structural changes to a library rather than just checking the local cache? 有没有一种方法可以使常春藤检查存储库中库的结构更改,而不仅仅是检查本地缓存?

I tried using <ivy:resolve refresh="true"/> but that didn't seem to do anything. 我尝试使用<ivy:resolve refresh="true"/>但这似乎没有任何作用。

Thanks. 谢谢。

If you change the content of a dependency, shouldn't its version number also change? 如果更改了依赖项的内容,它的版本号也应该更改吗? If the dependency is still in flux, maybe you should look into snapshots . 如果依存度仍在变化,也许您应该查看快照

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM