对于某些依赖项,Ivy似乎一直在拉-tests.jar而不是.jar,有时如果我清理ivy缓存并重新启动,它将拉下正确的jar,然后运行ivy检索将再次复制-tests.jar。
ivy.xml
<ivy-module version="2.0">
<info organisation="org.apache" module="hello-ivy"/>
<configurations>
<conf name="compile" description="Libraries needed only for compilation" />
<conf name="runtime" description="Libraries only needed at runtime" extends="compile" />
<conf name="test" description="Libraries only needed for testing" extends="runtime" />
</configurations>
<dependencies>
<dependency org="org.apache.wss4j" name="wss4j-ws-security-dom" rev="2.2.3"/>
</dependencies>
对于上述情况,执行蚂蚁解析会删除文件
wss4j-ws-security-common-2.2.3-tests.jar
代替
wss4j-ws-security-common-2.2.3.jar
进入lib文件夹。