我正在使用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?
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等不同。等,它不支持按分类器搜索。