public class ProjectClasspath extends Object
| Constructor and Description |
|---|
ProjectClasspath() |
| Modifier and Type | Method and Description |
|---|---|
ClassLoader |
getClassLoader(org.apache.maven.project.MavenProject project,
ClassLoader parent,
org.apache.maven.plugin.logging.Log log)
Provides a class loader that can be used to load classes from this
project classpath.
|
public ClassLoader getClassLoader(org.apache.maven.project.MavenProject project, ClassLoader parent, org.apache.maven.plugin.logging.Log log) throws org.apache.maven.artifact.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.org.apache.maven.artifact.DependencyResolutionRequiredException - if maven encounters a problem resolving project dependenciesCopyright © 2016. All rights reserved.