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
    • Field Summary

      Fields 
      Modifier and Type Field Description
      protected org.apache.maven.artifact.handler.manager.ArtifactHandlerManager artifactHandlerManager
      The artifact manager to resolve artifacts
      protected org.apache.maven.execution.MavenSession mavenSession
      The maven session
      protected org.apache.maven.plugin.descriptor.PluginDescriptor plugin  
      • Fields inherited from interface org.apache.maven.plugin.Mojo

        ROLE
    • Method Summary

      All Methods Instance Methods Abstract Methods Concrete Methods 
      Modifier and Type Method Description
      protected abstract com.adobe.aem.analyser.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

      • artifactHandlerManager

        @Component
        protected org.apache.maven.artifact.handler.manager.ArtifactHandlerManager artifactHandlerManager
        The artifact manager to resolve artifacts
      • 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.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