com.sun.jersey.wadl
Class AbstractMojoProjectClasspathSupport

java.lang.Object
  extended by org.apache.maven.plugin.AbstractMojo
      extended by com.sun.jersey.wadl.AbstractMojoProjectClasspathSupport
All Implemented Interfaces:
org.apache.maven.plugin.ContextEnabled, org.apache.maven.plugin.Mojo
Direct Known Subclasses:
GenerateWadlMojo

public abstract class AbstractMojoProjectClasspathSupport
extends org.apache.maven.plugin.AbstractMojo

This is a base class for mojos that need to access the project classpath.


Field Summary
 
Fields inherited from interface org.apache.maven.plugin.Mojo
ROLE
 
Constructor Summary
AbstractMojoProjectClasspathSupport()
           
 
Method Summary
 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)
           
 
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

AbstractMojoProjectClasspathSupport

public AbstractMojoProjectClasspathSupport()
Method Detail

execute

public final void execute()
                   throws org.apache.maven.plugin.MojoExecutionException
Throws:
org.apache.maven.plugin.MojoExecutionException

executeWithClasspath

protected abstract void executeWithClasspath(List<String> classpathElements)
                                      throws org.apache.maven.plugin.MojoExecutionException
Throws:
org.apache.maven.plugin.MojoExecutionException

getClasspathElements

protected 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
Create a list of classpath elements including declared build dependencies, the build output directory and additionally configured dependencies.

Parameters:
mavenProject -
additionalDependencies -
Returns:
a list of classpath elements
Throws:
org.apache.maven.artifact.DependencyResolutionRequiredException
org.apache.maven.artifact.resolver.ArtifactResolutionException
org.apache.maven.artifact.resolver.ArtifactNotFoundException

setDependencies

public void setDependencies(List<Dependency> dependencies)
Parameters:
dependencies - the dependencies to set


Copyright © 2013 Oracle Corporation. All Rights Reserved.