Class AbstractAddSuperSourcesMojo

  • All Implemented Interfaces:
    org.apache.maven.plugin.ContextEnabled, org.apache.maven.plugin.Mojo
    Direct Known Subclasses:
    AddSuperSourceMojo, AddTestSuperSourcesMojo

    public abstract class AbstractAddSuperSourcesMojo
    extends org.apache.maven.plugin.AbstractMojo
    • Field Summary

      Fields 
      Modifier and Type Field Description
      protected java.lang.String moduleName
      Name of the module into which to optionally relocate super-sources.
      protected org.apache.maven.project.MavenProject project  
      • Fields inherited from interface org.apache.maven.plugin.Mojo

        ROLE
    • Method Summary

      All Methods Instance Methods Abstract Methods Concrete Methods 
      Modifier and Type Method Description
      protected abstract void addResource​(org.apache.maven.model.Resource resource)  
      void execute()  
      protected abstract java.util.List<org.apache.maven.model.Resource> getProjectResources()  
      protected abstract java.lang.String getSuperSourceRoot()  
      protected abstract boolean isSuperSourceRelocated()  
      • 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
    • Field Detail

      • moduleName

        @Parameter
        protected java.lang.String moduleName
        Name of the module into which to optionally relocate super-sources.

        Super-sources will be relocated into a super subfolder.

      • project

        @Parameter(defaultValue="${project}",
                   required=true,
                   readonly=true)
        protected org.apache.maven.project.MavenProject project
    • Constructor Detail

      • AbstractAddSuperSourcesMojo

        public AbstractAddSuperSourcesMojo()
    • Method Detail

      • execute

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

        protected abstract java.lang.String getSuperSourceRoot()
      • isSuperSourceRelocated

        protected abstract boolean isSuperSourceRelocated()
      • addResource

        protected abstract void addResource​(org.apache.maven.model.Resource resource)
      • getProjectResources

        protected abstract java.util.List<org.apache.maven.model.Resource> getProjectResources()