• <small id='glY88'></small><noframes id='glY88'>

  • <tfoot id='glY88'></tfoot>

      1. <i id='glY88'><tr id='glY88'><dt id='glY88'><q id='glY88'><span id='glY88'><b id='glY88'><form id='glY88'><ins id='glY88'></ins><ul id='glY88'></ul><sub id='glY88'></sub></form><legend id='glY88'></legend><bdo id='glY88'><pre id='glY88'><center id='glY88'></center></pre></bdo></b><th id='glY88'></th></span></q></dt></tr></i><div id='glY88'><tfoot id='glY88'></tfoot><dl id='glY88'><fieldset id='glY88'></fieldset></dl></div>
        <legend id='glY88'><style id='glY88'><dir id='glY88'><q id='glY88'></q></dir></style></legend>

        • <bdo id='glY88'></bdo><ul id='glY88'></ul>
      2. 常春藤:强制依赖本地快照

        时间:2023-07-28
        <i id='vtZNg'><tr id='vtZNg'><dt id='vtZNg'><q id='vtZNg'><span id='vtZNg'><b id='vtZNg'><form id='vtZNg'><ins id='vtZNg'></ins><ul id='vtZNg'></ul><sub id='vtZNg'></sub></form><legend id='vtZNg'></legend><bdo id='vtZNg'><pre id='vtZNg'><center id='vtZNg'></center></pre></bdo></b><th id='vtZNg'></th></span></q></dt></tr></i><div id='vtZNg'><tfoot id='vtZNg'></tfoot><dl id='vtZNg'><fieldset id='vtZNg'></fieldset></dl></div>
        <tfoot id='vtZNg'></tfoot>

            <legend id='vtZNg'><style id='vtZNg'><dir id='vtZNg'><q id='vtZNg'></q></dir></style></legend>

            • <small id='vtZNg'></small><noframes id='vtZNg'>

              • <bdo id='vtZNg'></bdo><ul id='vtZNg'></ul>
                  <tbody id='vtZNg'></tbody>

                  本文介绍了常春藤:强制依赖本地快照的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

                  问题描述

                  我有一个依赖于项目 B 的项目 A;两者都是积极开发的内部项目.假设最新的 Project A 版本是 1.1.2,它依赖于 Project B 1.1.1.现在我们正在开发 Project A 1.2.0,它依赖于也在开发中的 Project B 1.2.0.

                  I have a Project A which depends on Project B; both are internal projects in active development. Say the latest Project A release is 1.1.2 which depends on Project B 1.1.1. Now we are developing Project A 1.2.0 which depends on the Project B 1.2.0 also in development.

                  <dependency org="my.org" name="projectB" rev="1.2.0" transitive="true" conf="..." changing="true"/>
                  

                  项目 B 1.2.0 的新集成构建由 CI 服务器推送到公共本地存储库中,因此由于更改",每个人都可以在发布后立即获得最新的集成构建.

                  New intergration builds for Project B 1.2.0 are pushed by the CI server in the common local repository, so thanks to "changing" everyone gets the latest integration builds as soon as they are published.

                  假设 Bob 正在项目 A 上开发一项新功能,需要对项目 B 进行一些修改;他在他的本地私有存储库中发布了一个新的 shapshot Project B 1.2.0,并且他在构建中被选中,因为它比公共存储库中的更新.到目前为止一切正常.

                  Say Bob is developing a new feature on Project A which requires some modifications to Project B; he publishes a new shapshot Project B 1.2.0 in his local private repository and his is picked up in the build because is more recent than the one in the common repository. So far all ok.

                  但是如果 Alice 在项目 B 中提交了一些东西,CI 服务器会在 common repo 上推送一个新的 1.2.0,它比 Bob 在本地拥有的更新;现在 Bob 获得了覆盖他本地更改的通用版本.

                  But if Alice commits something in Project B, the CI server pushes a new 1.2.0 on common repo, which is more recent than the one Bob has locally; now Bob gets the common version which overrides his local changes.

                  当然,我可以使用不同的名称(以一种巧妙的方式使用属性文件,名称不必以 ivy.xml 结尾),例如 Bob 的 1.2.0_snapshot,只要 Bob 需要本地版本,然后普通版ok后切换回1.2.0.但是有没有办法强制使用状态为快照"的工件(这将始终是本地构建的状态)而不是具有集成"的工件(由 CI 服务器生成的工件将始终具有该状态)或更高?

                  Of course I could use different names (using property files in a clever way that name does not have to end in ivy.xml), something like 1.2.0_snapshot for Bob, as long as Bob needs the local version, and then switch back to 1.2.0 when the common version is ok. But isn't there a way to force using artifact whose status is "snapshot" (that will always be the status of local builds) over the ones which have "integration" (the ones produced by CI server will always have that status) or higher?

                  我尝试了latest.snapshot",但它需要集成版本,如果更新的话.

                  I tried "latest.snapshot" but it takes the integration version, if more recent.

                  处理这种模式的最佳方法是什么?

                  What is the best way to deal with this pattern?

                  推荐答案

                  我认为您希望本地解析器处于强制模式".在 ivysettings.xml 中的本地解析器上设置 force="true".

                  I think you want your local resolver to be in "force mode". Set the force="true" on your local resolver in ivysettings.xml.

                  查看强制模式的说明:http://ant.apache.org/ivy/history/latest-milestone/settings/resolvers.html

                  这篇关于常春藤:强制依赖本地快照的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持html5模板网!

                  上一篇:Selenium 作为 Windows 服务运行以截取错误截图 下一篇:Jenkins 无法启动 selenium 测试(等待创建配置文件超

                  相关文章

                  最新文章

                1. <i id='olMj8'><tr id='olMj8'><dt id='olMj8'><q id='olMj8'><span id='olMj8'><b id='olMj8'><form id='olMj8'><ins id='olMj8'></ins><ul id='olMj8'></ul><sub id='olMj8'></sub></form><legend id='olMj8'></legend><bdo id='olMj8'><pre id='olMj8'><center id='olMj8'></center></pre></bdo></b><th id='olMj8'></th></span></q></dt></tr></i><div id='olMj8'><tfoot id='olMj8'></tfoot><dl id='olMj8'><fieldset id='olMj8'></fieldset></dl></div>

                  <small id='olMj8'></small><noframes id='olMj8'>

                    <tfoot id='olMj8'></tfoot><legend id='olMj8'><style id='olMj8'><dir id='olMj8'><q id='olMj8'></q></dir></style></legend>
                      <bdo id='olMj8'></bdo><ul id='olMj8'></ul>