We have project with multiple subprojects and complex inter-dependencies. Subprojects share similar sets of external dependencies (Spring, Apache etc).
It take enormous amount of time for dependencies resolution (possibly because of redundant dependencies checks) even in offline mode.
How to solve this? How can we disable updating and re-resolving external dependencies during packaging.
version: 0.12.1
skip in update := truewill preventupdatefrom doing any work. It uses the results of the previousupdateinstead.Note that this means that
updatemust have been run (possibly indirectly) since the lastclean, changes to dependency configuration since the last run will be ignored, and the cache must still contain the jars from the previousupdate.Running
updatedirectly will override theskipsetting and causeupdateto run normally.Finally, similar sets of dependencies doesn’t necessarily mean dependency resolution will be any faster. It only means that network access, downloading, and metadata parsing shouldn’t be done more than once per dependency.