public abstract class AbstractMojoProjectClasspathSupport
extends org.apache.maven.plugin.AbstractMojo
| Constructor and Description |
|---|
AbstractMojoProjectClasspathSupport() |
| Modifier and Type | Method and Description |
|---|---|
void |
execute() |
protected abstract void |
executeWithClasspath(List<String> classpathElements) |
protected List<String> |
getClasspathElements(org.apache.maven.project.MavenProject mavenProject,
List<Dependency> additionalDependencies)
Create a list of classpath elements including declared build dependencies, the build
output directory and additionally configured dependencies.
|
void |
setDependencies(List<Dependency> dependencies) |
public final void execute()
throws org.apache.maven.plugin.MojoExecutionException
org.apache.maven.plugin.MojoExecutionExceptionprotected abstract void executeWithClasspath(List<String> classpathElements) throws org.apache.maven.plugin.MojoExecutionException
org.apache.maven.plugin.MojoExecutionExceptionprotected List<String> getClasspathElements(org.apache.maven.project.MavenProject mavenProject, List<Dependency> additionalDependencies) throws org.apache.maven.artifact.DependencyResolutionRequiredException, org.apache.maven.artifact.resolver.ArtifactResolutionException, org.apache.maven.artifact.resolver.ArtifactNotFoundException
mavenProject - additionalDependencies - org.apache.maven.artifact.DependencyResolutionRequiredExceptionorg.apache.maven.artifact.resolver.ArtifactResolutionExceptionorg.apache.maven.artifact.resolver.ArtifactNotFoundExceptionpublic void setDependencies(List<Dependency> dependencies)
dependencies - the dependencies to setCopyright © 2014 Oracle Corporation. All rights reserved.