Class AbstractStagingMojo

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

    public abstract class AbstractStagingMojo
    extends AbstractDeployMojo
    Abstract base class for staging mojos.
    Since:
    3.3
    • Field Detail

      • topSiteURL

        @Parameter(property="topSiteURL")
        protected java.lang.String topSiteURL
        Top distribution management site url, for manual configuration when auto-calculated value doesn't match expectations. Relative module directory will be calculated from this url.
        Since:
        3.3
      • DEFAULT_STAGING_DIRECTORY

        protected static final java.lang.String DEFAULT_STAGING_DIRECTORY
        The String "staging/".
        See Also:
        Constant Field Values
    • Constructor Detail

      • AbstractStagingMojo

        public AbstractStagingMojo()
    • Method Detail

      • determineTopDistributionManagementSiteUrl

        protected java.lang.String determineTopDistributionManagementSiteUrl()
                                                                      throws org.apache.maven.plugin.MojoExecutionException
        By default, staging mojos will get their top distribution management site url by getting top parent with the same site, which is a good heuristics. But in case the default value doesn't match expectations, topSiteURL can be configured: it will be used instead.
        Specified by:
        determineTopDistributionManagementSiteUrl in class AbstractDeployMojo
        Throws:
        org.apache.maven.plugin.MojoExecutionException