Class AbstractXarMojo

  • All Implemented Interfaces:
    org.apache.maven.plugin.ContextEnabled, org.apache.maven.plugin.Mojo, org.codehaus.plexus.logging.LogEnabled
    Direct Known Subclasses:
    XarExplodedMojo, XarMojo

    public abstract class AbstractXarMojo
    extends org.apache.maven.plugin.AbstractMojo
    implements org.codehaus.plexus.logging.LogEnabled
    Abstract base class for all the mojos in the XAR plugin.
    • Field Summary

      Fields 
      Modifier and Type Field Description
      protected org.apache.maven.project.MavenProject project
      The maven project.
      • Fields inherited from interface org.apache.maven.plugin.Mojo

        ROLE
    • Constructor Summary

      Constructors 
      Constructor Description
      AbstractXarMojo()  
    • Field Detail

      • project

        protected org.apache.maven.project.MavenProject project
        The maven project.
    • Constructor Detail

      • AbstractXarMojo

        public AbstractXarMojo()
    • Method Detail

      • enableLogging

        public void enableLogging​(org.codehaus.plexus.logging.Logger logger)
        Specified by:
        enableLogging in interface org.codehaus.plexus.logging.LogEnabled
      • buildArchive

        protected void buildArchive​(org.codehaus.plexus.archiver.Archiver archiver)
                             throws org.codehaus.plexus.archiver.ArchiverException,
                                    org.apache.maven.plugin.MojoExecutionException
        Build the XAR using the provided archiver.
        Throws:
        org.apache.maven.plugin.MojoExecutionException
        org.codehaus.plexus.archiver.ArchiverException