Class AbstractBaseConfluenceMojo

    • Field Detail

      • mavenSettings

        @Parameter(readonly=true,
                   property="settings")
        protected org.apache.maven.settings.Settings mavenSettings
        Since:
        3.1.1
      • sslCertificate

        @Parameter
        protected org.bsc.ssl.SSLCertificateInfo sslCertificate
        if using a https url, configure if the plugin accepts every certifactes or respects hostnameVerifierClass and trustManagerClass (if set). Below the Template
        
         < sslCertificate>
          < ignore>true|false  // default false
          < hostNameVerifierClass>FQN //default null
          < trustManagerClass>FQN // default null
         < /sslCertificate>
        
         
        Since:
        4.1.0
    • Constructor Detail

      • AbstractBaseConfluenceMojo

        public AbstractBaseConfluenceMojo()
    • Method Detail

      • isFailOnError

        public boolean isFailOnError()
        Indicates whether the build will continue even if there are clean errors.
        Returns:
        true if build have to fail on error, otherwise false
      • getEndPoint

        public final String getEndPoint()
      • _getSpaceKey

        public final String _getSpaceKey()
      • getUsername

        public final String getUsername()
      • getPassword

        public final String getPassword()
      • confluenceExecute

        protected <T extends java.util.function.Consumer<org.bsc.confluence.ConfluenceService>> void confluenceExecute​(T task)
        Parameters:
        task -
        Throws:
        org.apache.maven.plugin.MojoExecutionException
      • loadParentPage

        protected org.bsc.confluence.ConfluenceService.Model.Page loadParentPage​(org.bsc.confluence.ConfluenceService confluence,
                                                                                 Optional<org.bsc.confluence.model.Site> site)
        Parameters:
        confluence -
        Returns:
        Throws:
        org.apache.maven.plugin.MojoExecutionException
      • loadUserInfoFromSettings

        protected void loadUserInfoFromSettings()
                                         throws org.apache.maven.plugin.MojoExecutionException
        Issue 39 Load username password from settings if user has not set them in JVM properties
        Throws:
        org.apache.maven.plugin.MojoExecutionException
      • throwRTE

        protected <T> T throwRTE​(String message,
                                 Object... args)