【问题标题】:Jar searching for Archive by attaching the name linux-x86_64通过附加名称 linux-x86_64 搜索存档的 Jar
【发布时间】:2020-08-30 12:04:02
【问题描述】:

我使用 ant 作为构建工具,使用 Ivy 进行依赖管理。

<dependency conf="compile->master;runtime->default" org="org.springframework" name="spring-web" rev="5.1.6.RELEASE"/>
<dependency conf="compile->master;runtime->default" org="io.projectreactor.netty" name="reactor-netty" rev="0.9.6.RELEASE"/>

现在当我给 ant build 时找不到 jar,问题是它正在附加 linux-x86_64。 它正在寻找下面的罐子

http://companyRepo:8081/nexus/content/groups/OfficialDevelopment/io/netty/netty-transport-native-epoll/4.1.48.Final/netty-transport-native-epoll-4.1.48.Final-linux-x86_64.jar

为什么要搜索 linux-x86_64 ?

我搜索并发现了类似的问题,但不确定解决方案。

https://github.com/netty/netty/issues/7101

How to build netty-transport-native-epoll-4.0.32.Final-linux-x86_64.jar?

【问题讨论】:

    标签: ant netty ivy reactor-netty


    【解决方案1】:

    我对蚂蚁一无所知,但它基本上是“分类器”。请查看 ant /ivy 文档,了解如何指定分类器

    【讨论】:

      【解决方案2】:

      我不是 Ivy 用户,但我相信您需要为 netty-transport-native-epoll 添加一个依赖项,其中包含分类原生库的嵌套工件。像这样的:

      <dependency org="io.netty" name="netty-transport-native-epoll" rev="4.1.48.Final">
         <artifact name="netty-transport-native-epoll"/>
         <artifact name="netty-transport-native-epoll" e:classifier="linux-x86_64"/>
      </dependency>
      

      我通常使用https://mvnrepository.com/ 来找出不同的依赖语法,并且包含了 Ivy 描述符,但似乎不像 Nexus 等。 al.,它不支持分类搜索。

      【讨论】:

        猜你喜欢
        • 1970-01-01
        • 1970-01-01
        • 1970-01-01
        • 2014-02-20
        • 2017-11-05
        • 1970-01-01
        • 1970-01-01
        • 1970-01-01
        • 2016-10-08
        相关资源
        最近更新 更多