Resolving transitive dependencies of a Maven artifact from Aether is expensive, as it has to scan each POM several dozen times. Coupled with the cost of wiring up Maven project parser components and so on, this can take close to one second.
This utility class caches the result of transitive dependency resolution and remembers its result. It does timestamp based up to date check that lets us bypass the expensive computation in most of the cases.
One of the key use cases of this component requires lazy-loading Guice, so this class by itself does not depend injection. For most use cases, you should be able to use {@code ResolvedDependenciesCacheComponent}in bees-api. @author Kohsuke Kawaguchi
|
|