com.vecna.maven.commons
Class BuildClassPathMojo
java.lang.Object
org.apache.maven.plugin.AbstractMojo
com.vecna.maven.commons.AbstractClassLoaderSwappingMojo
com.vecna.maven.commons.BuildClassPathMojo
- All Implemented Interfaces:
- org.apache.maven.plugin.ContextEnabled, org.apache.maven.plugin.Mojo
public abstract class BuildClassPathMojo
- extends AbstractClassLoaderSwappingMojo
Base class for invoking Mojos with project's build classpath settings.
- Author:
- ogolberg@vecna.com
| Fields inherited from interface org.apache.maven.plugin.Mojo |
ROLE |
| Methods inherited from class org.apache.maven.plugin.AbstractMojo |
getLog, getPluginContext, setLog, setPluginContext |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
BuildClassPathMojo
public BuildClassPathMojo()
getProject
protected abstract org.apache.maven.project.MavenProject getProject()
- Returns:
- reference to the Maven project, usually Plexus-injected in the concrete subclass
getClassLoader
protected ClassLoader getClassLoader()
throws org.apache.maven.plugin.MojoExecutionException,
org.apache.maven.plugin.MojoFailureException
- Get the custom class loader
- Specified by:
getClassLoader in class AbstractClassLoaderSwappingMojo
- Returns:
- the custom class loader to use
- Throws:
org.apache.maven.plugin.MojoExecutionException - if an error occurs
org.apache.maven.plugin.MojoFailureException - if an error occurs
Copyright © 2009-2011 Vecna Technologies. All Rights Reserved.