Java – ant – disable ivy to get dependencies for each run

Several custom spark working programs I execute depend on other libraries Whenever I execute them using spark submit, Ivy tries to get the latest dependencies from the Internet, which takes some important time at the beginning

Solution

Set usecacheonly on the resolve task to true, and its default value is false

More information http://ant.apache.org/ivy/history/latest-milestone/use/resolve.html

This is similar to MVN - O (Maven's offline mode)

The content of this article comes from the network collection of netizens. It is used as a learning reference. The copyright belongs to the original author.
THE END
分享
二维码
< <上一篇
下一篇>>