Class AbstractFeatureMojo

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

    public abstract class AbstractFeatureMojo
    extends org.apache.maven.plugin.AbstractMojo
    Base class for all mojos.
    • Field Detail

      • features

        @Parameter(name="features",
                   required=true,
                   defaultValue="src/main/features")
        protected File features
        Directory containing feature files
      • jarStartOrder

        @Parameter(name="jarStartOrder")
        protected int jarStartOrder
        The start level for the attached jar/bundle.
      • project

        @Parameter(property="project",
                   readonly=true,
                   required=true)
        protected org.apache.maven.project.MavenProject project
      • mavenSession

        @Parameter(property="session",
                   readonly=true,
                   required=true)
        protected org.apache.maven.execution.MavenSession mavenSession
      • projectHelper

        @Component
        protected org.apache.maven.project.MavenProjectHelper projectHelper
    • Constructor Detail

      • AbstractFeatureMojo

        public AbstractFeatureMojo()
    • Method Detail

      • getTmpDir

        protected File getTmpDir()
      • checkPreconditions

        protected void checkPreconditions()
                                   throws org.apache.maven.plugin.MojoExecutionException
        This method needs to be invoked by each mojo that deals with features
        Throws:
        org.apache.maven.plugin.MojoExecutionException - If the project has no features defined