How do I get Ivy to copy the dependencies to the l

2019-04-08 00:28发布

I have the following command:

java -jar ...\ivy-2.2.0-rc1.jar -ivy ...\ivy.xml

Which I am expecting to resolve the dependencies and copy them to the lib folder of my project.

Ivy seems to resolve the dependencies but does not do the copy. If I run the ant task the copy happens correctly.

Does anyone know why the copy to lib does not happen with my command line call?

1条回答
叛逆
2楼-- · 2019-04-08 01:09

You're missing the retrieve option.

java -jar $IVYJAR \ 
     -settings ivysettings.xml \
     -ivy ivy.xml \
     -retrieve "lib/[artifact].[ext]"

You specify a pattern for how the artifact will be retrieved from the cache

By default the standalone ivy program will only resolve a dependency (In other words, only download and cache)

查看更多
登录 后发表回答