Class AbstractFeatureMojo
java.lang.Object
org.apache.maven.plugin.AbstractMojo
org.apache.sling.feature.maven.mojos.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.
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionprotected classprotected class -
Field Summary
FieldsModifier and TypeFieldDescriptionprotected FileDirectory containing feature filesprotected intThe start level for the attached jar/bundle.protected org.apache.maven.execution.MavenSessionprotected org.apache.maven.project.MavenProjectprotected org.apache.maven.project.MavenProjectHelperFields inherited from interface org.apache.maven.plugin.Mojo
ROLE -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected voidThis method needs to be invoked by each mojo that deals with featuresprotected FileMethods inherited from class org.apache.maven.plugin.AbstractMojo
getLog, getPluginContext, setLog, setPluginContextMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface org.apache.maven.plugin.Mojo
execute
-
Field Details
-
features
@Parameter(name="features", required=true, defaultValue="src/main/features") protected File featuresDirectory containing feature files -
jarStartOrder
@Parameter(name="jarStartOrder") protected int jarStartOrderThe 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 Details
-
AbstractFeatureMojo
public AbstractFeatureMojo()
-
-
Method Details
-
getTmpDir
-
checkPreconditions
protected void checkPreconditions() throws org.apache.maven.plugin.MojoExecutionExceptionThis 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
-