Class AbstractAddResourceMojo

java.lang.Object
org.apache.maven.plugin.AbstractMojo
org.codehaus.mojo.buildhelper.AbstractAddResourceMojo
All Implemented Interfaces:
org.apache.maven.plugin.ContextEnabled, org.apache.maven.plugin.Mojo
Direct Known Subclasses:
AddResourceMojo, AddTestResourceMojo

public abstract class AbstractAddResourceMojo extends org.apache.maven.plugin.AbstractMojo
Abstract Mojo for adding Resources
  • Field Summary Link icon

    Fields inherited from interface org.apache.maven.plugin.Mojo Link icon

    ROLE
  • Constructor Summary Link icon

    Constructors
    Constructor
    Description
     
  • Method Summary Link icon

    Modifier and Type
    Method
    Description
    abstract void
    addResource(org.apache.maven.model.Resource resource)
    Add the resource to the project.
    void
    Main plugin execution
    org.apache.maven.project.MavenProject
    Get the current project instance.
    protected abstract boolean
     
    protected abstract boolean
     

    Methods inherited from class org.apache.maven.plugin.AbstractMojo Link icon

    getLog, getPluginContext, setLog, setPluginContext

    Methods inherited from class java.lang.Object Link icon

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Constructor Details Link icon

    • AbstractAddResourceMojo Link icon

      public AbstractAddResourceMojo()
  • Method Details Link icon

    • execute Link icon

      public void execute()
      Main plugin execution
    • isSkipIfMissing Link icon

      protected abstract boolean isSkipIfMissing()
    • isSkip Link icon

      protected abstract boolean isSkip()
    • addResource Link icon

      public abstract void addResource(org.apache.maven.model.Resource resource)
      Add the resource to the project.
      Parameters:
      resource - the resource to add
    • getProject Link icon

      public org.apache.maven.project.MavenProject getProject()
      Get the current project instance.
      Returns:
      the project