Class 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
    • Method Summary

      All Methods Instance Methods Abstract Methods Concrete Methods 
      Modifier and Type Method Description
      protected abstract com.adobe.aem.analyser.result.AemAnalyserResult doExecute​(org.apache.sling.feature.ArtifactId sdkId, java.util.List<org.apache.sling.feature.ArtifactId> addons)  
      void execute()
      Execute the plugin
      • 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

      • strictVersionValidation

        @Parameter(defaultValue="false",
                   property="aem.analyser.strict.version")
        protected boolean strictVersionValidation
        If 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 mavenSession
        The maven session
      • plugin

        @Parameter(defaultValue="${plugin}",
                   readonly=true)
        protected org.apache.maven.plugin.descriptor.PluginDescriptor plugin
    • Constructor Detail

      • AbstractAnalyseMojo

        public AbstractAnalyseMojo()
    • Method Detail

      • execute

        public void execute()
                     throws org.apache.maven.plugin.MojoExecutionException,
                            org.apache.maven.plugin.MojoFailureException
        Execute the plugin
        Throws:
        org.apache.maven.plugin.MojoExecutionException
        org.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.MojoExecutionException
        org.apache.maven.plugin.MojoFailureException