我使用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它找不到jar时,问题是它是附加了Linuxx86_64。它正在搜索下面的jar
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?
发布于 2020-05-14 12:33:52
我不知道蚂蚁,但它基本上是“分类器”。请查看ant /ivy文档,说明如何指定分类器。
发布于 2020-05-14 15:18:56
我不是常春藤用户,但我相信您需要为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/来计算不同的依赖语法,并且包含了常春藤描述符,但它似乎与Nexus不同。它不支持分类器搜索。
https://stackoverflow.com/questions/61789144
复制相似问题