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.AbstractMojoBase class for all mojos.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description protected classAbstractFeatureMojo.BaseArtifactProviderprotected classAbstractFeatureMojo.BaseFeatureProvider
-
Field Summary
Fields Modifier and Type Field Description protected Map<String,Map<String,String>>defaultMetadataThis parameter is only declared to make Maven happy, it is evaluated in the Preprossorprotected FilefeaturesDirectory containing feature filesprotected intjarStartOrderThe start level for the attached jar/bundle.protected org.apache.maven.execution.MavenSessionmavenSessionprotected org.apache.maven.project.MavenProjectprojectprotected org.apache.maven.project.MavenProjectHelperprojectHelper
-
Constructor Summary
Constructors Constructor Description AbstractFeatureMojo()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected voidcheckPreconditions()This method needs to be invoked by each mojo that deals with featuresprotected FilegetTmpDir()-
Methods inherited from class org.apache.maven.plugin.AbstractMojo
getLog, getPluginContext, setLog, setPluginContext
-
-
-
-
Field Detail
-
features
@Parameter(name="features", required=true, defaultValue="src/main/features") protected File featuresDirectory containing feature files
-
jarStartOrder
@Parameter(name="jarStartOrder") protected int jarStartOrder
The start level for the attached jar/bundle.
-
defaultMetadata
@Parameter protected Map<String,Map<String,String>> defaultMetadata
This parameter is only declared to make Maven happy, it is evaluated in the Preprossor
-
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
-
-
Method Detail
-
getTmpDir
protected File 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
-
-