public class ProjectClasspath extends Object
Constructor and Description |
---|
ProjectClasspath() |
Modifier and Type | Method and Description |
---|---|
ClassLoader |
getClassLoader(MavenProject project,
ClassLoader parent,
Log log)
Provides a class loader that can be used to load classes from this
project classpath.
|
public ClassLoader getClassLoader(MavenProject project, ClassLoader parent, Log log) throws DependencyResolutionRequiredException
project
- the maven project currently being builtparent
- a classloader which should be used as the parent of the newly
created classloader.log
- object to which details of the found/loaded classpath elements
can be logged.DependencyResolutionRequiredException
- if maven encounters a problem resolving project dependenciesCopyright © 2016. All rights reserved.