【问题标题】:buildr and ranged maven transitive dependenciesbuildr 和 ranged maven 传递依赖
【发布时间】:2013-10-18 20:03:16
【问题描述】:

希望你们中的一些人已经在工作流程中使用 buildr。我的问题是,您如何解决可传递的远程 Maven 依赖项?举个例子吧:

a-group:an-id:jar:a-version

说这取决于范围中定义的另一个依赖项:

another-group:another-id:jar:[2.0.0,3.0.0)

似乎 buildr 无法解决此问题。例如,我在构建中不断收到这样的错误:

RuntimeError : Failed to download com.fasterxml.jackson.core:jackson-annotations:jar:
[2.0.0,3.0.0), tried the following repositories: http://central.maven.org/maven2/

【问题讨论】:

    标签: maven dependencies buildr


    【解决方案1】:

    Builder 不会通过设计解决依赖关系。 transitive() 方法只是一个助手,但不如 Maven 的 Aether 复杂。

    但是,有一些插件可以将该功能添加到 Buildr。最酷的方法是 LockJar 采用的 IMO,它构建了 Bundler 和 Maven 的 Frankstein,并提供了一个很好的抽象来避免著名的 Maven 不确定性原则。

    【讨论】:

    • 嗯..不知道这个。我会检查一下。与此同时,我放弃了传递的东西,将等待构建者的更新。
    猜你喜欢
    • 1970-01-01
    • 2018-07-06
    • 2010-11-08
    • 1970-01-01
    • 2013-02-17
    • 2019-08-23
    • 2019-10-29
    • 2021-10-24
    相关资源
    最近更新 更多