Class AbstractAemMojo

  • All Implemented Interfaces:
    org.apache.maven.plugin.ContextEnabled, org.apache.maven.plugin.Mojo
    Direct Known Subclasses:
    AbstractAnalyseMojo, PackageAppMojo

    public abstract class AbstractAemMojo
    extends org.apache.maven.plugin.AbstractMojo
    Abstract base class for all mojos
    • Field Summary

      Fields 
      Modifier and Type Field Description
      protected org.apache.maven.project.MavenProject project
      The maven project
      protected org.eclipse.aether.RepositorySystemSession repoSession  
      protected org.eclipse.aether.RepositorySystem repoSystem  
      protected boolean strictValidation
      If enabled, all analyser warnings will be turned into errors and fail the build.
      protected boolean useSysout  
      • Fields inherited from interface org.apache.maven.plugin.Mojo

        ROLE
    • Constructor Summary

      Constructors 
      Constructor Description
      AbstractAemMojo()  
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      protected com.adobe.aem.project.model.Project getProject()  
      protected void printResult​(com.adobe.aem.analyser.result.AemAnalyserResult result)  
      • 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
      • Methods inherited from interface org.apache.maven.plugin.Mojo

        execute
    • Field Detail

      • project

        @Parameter(property="project",
                   readonly=true,
                   required=true)
        protected org.apache.maven.project.MavenProject project
        The maven project
      • repoSystem

        @Component
        protected org.eclipse.aether.RepositorySystem repoSystem
      • repoSession

        @Parameter(defaultValue="${repositorySystemSession}",
                   readonly=true,
                   required=true)
        protected org.eclipse.aether.RepositorySystemSession repoSession
      • strictValidation

        @Parameter(defaultValue="false",
                   property="aem.analyser.strict")
        protected boolean strictValidation
        If enabled, all analyser warnings will be turned into errors and fail the build.
        Since:
        1.0.12
      • useSysout

        @Parameter(defaultValue="false",
                   property="aem.analyser.sysout")
        protected boolean useSysout
    • Constructor Detail

      • AbstractAemMojo

        public AbstractAemMojo()
    • Method Detail

      • getProject

        protected com.adobe.aem.project.model.Project getProject()
      • printResult

        protected void printResult​(com.adobe.aem.analyser.result.AemAnalyserResult result)