Package com.adobe.aem.analyser.mojos
Class AbstractAnalyseMojo
- java.lang.Object
-
- org.apache.maven.plugin.AbstractMojo
-
- com.adobe.aem.analyser.mojos.AbstractAemMojo
-
- com.adobe.aem.analyser.mojos.AbstractAnalyseMojo
-
- All Implemented Interfaces:
org.apache.maven.plugin.ContextEnabled,org.apache.maven.plugin.Mojo
- Direct Known Subclasses:
AemAnalyseMojo,AnalyseConfigsMojo
public abstract class AbstractAnalyseMojo extends AbstractAemMojo
Abstract base class for all analyse mojos
-
-
Field Summary
Fields Modifier and Type Field Description protected org.apache.maven.execution.MavenSessionmavenSessionThe maven sessionprotected org.apache.maven.plugin.descriptor.PluginDescriptorpluginprotected booleanstrictVersionValidationIf enabled, warnings for maven plugin version or SDK API version are turned into errors and fail the build.-
Fields inherited from class com.adobe.aem.analyser.mojos.AbstractAemMojo
artifactHandlerManager, project, repoSession, repoSystem, strictValidation, useSysout
-
-
Constructor Summary
Constructors Constructor Description AbstractAnalyseMojo()
-
Method Summary
All Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description protected abstract com.adobe.aem.analyser.result.AemAnalyserResultdoExecute(org.apache.sling.feature.ArtifactId sdkId, java.util.List<org.apache.sling.feature.ArtifactId> addons)voidexecute()Execute the plugin-
Methods inherited from class com.adobe.aem.analyser.mojos.AbstractAemMojo
getProject, printResult
-
-
-
-
Field Detail
-
strictVersionValidation
@Parameter(defaultValue="false", property="aem.analyser.strict.version") protected boolean strictVersionValidationIf enabled, warnings for maven plugin version or SDK API version are turned into errors and fail the build.- Since:
- 1.6.2
-
mavenSession
@Parameter(property="session", readonly=true, required=true) protected org.apache.maven.execution.MavenSession mavenSessionThe maven session
-
plugin
@Parameter(defaultValue="${plugin}", readonly=true) protected org.apache.maven.plugin.descriptor.PluginDescriptor plugin
-
-
Method Detail
-
execute
public void execute() throws org.apache.maven.plugin.MojoExecutionException, org.apache.maven.plugin.MojoFailureExceptionExecute the plugin- Throws:
org.apache.maven.plugin.MojoExecutionExceptionorg.apache.maven.plugin.MojoFailureException
-
doExecute
protected abstract com.adobe.aem.analyser.result.AemAnalyserResult doExecute(org.apache.sling.feature.ArtifactId sdkId, java.util.List<org.apache.sling.feature.ArtifactId> addons) throws org.apache.maven.plugin.MojoExecutionException, org.apache.maven.plugin.MojoFailureException- Throws:
org.apache.maven.plugin.MojoExecutionExceptionorg.apache.maven.plugin.MojoFailureException
-
-