Jar通过附加名称linux-x86_64来搜索Archive

问题描述 投票:0回答:2

我正在使用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"/>

现在,当我给蚂蚁编译时,它无法找到罐子,问题是它附加了[[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
2个回答
0
投票
我对蚂蚁一无所知,但基本上是“分类器”。请查看ant / ivy文档,了解如何指定分类器

0
投票
我不是常春藤用户,但是我认为您需要为

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等不同。等,它不支持按分类器搜索。
© www.soinside.com 2019 - 2024. All rights reserved.