Returns a
URLClassLoader that encompasses all
Dependency instances on which this project depends.
It also includes the compiled/fully built
PackagingFacet#getFinalArtifact() from the project sources
itself. This is the equivalent of class-loading the entire project classpath.
WARNING: You *MUST* call
URLClassLoader#close() when finished with this object. Failure to close this
object upon completion will result in fatal memory leaks over time. If the scope of work is appropriate, consider
using a try-with-resources block to encapsulate the operations and automatically clean up any ClassLoader
resources.
IMPORTANT: You must also clean up and release any
Class references that were produced by this
ClassLoader. It is not enough to close this. Held
Class references will keep the
ClassLoader from being garbage collected.