com.vecna.maven.commons
Class BuildClassPathMojo

java.lang.Object
  extended by org.apache.maven.plugin.AbstractMojo
      extended by com.vecna.maven.commons.AbstractClassLoaderSwappingMojo
          extended by 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

Field Summary
 
Fields inherited from interface org.apache.maven.plugin.Mojo
ROLE
 
Constructor Summary
BuildClassPathMojo()
           
 
Method Summary
protected  ClassLoader getClassLoader()
          Get the custom class loader
protected abstract  org.apache.maven.project.MavenProject getProject()
           
 
Methods inherited from class com.vecna.maven.commons.AbstractClassLoaderSwappingMojo
execute, executeWithClassLoader
 
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
 

Constructor Detail

BuildClassPathMojo

public BuildClassPathMojo()
Method Detail

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.