Package org.bsc.maven.confluence.plugin
Class AbstractBaseConfluenceMojo
- java.lang.Object
-
- org.apache.maven.plugin.AbstractMojo
-
- org.bsc.maven.confluence.plugin.AbstractBaseConfluenceMojo
-
- All Implemented Interfaces:
org.apache.maven.plugin.ContextEnabled,org.apache.maven.plugin.Mojo
- Direct Known Subclasses:
AbstractConfluenceMojo,ConfluenceDeleteMojo,ConfluenceExportMojo
public abstract class AbstractBaseConfluenceMojo extends org.apache.maven.plugin.AbstractMojo- Author:
- bsorrentino
-
-
Field Summary
Fields Modifier and Type Field Description protected org.apache.maven.settings.SettingsmavenSettingsprotected org.bsc.ssl.SSLCertificateInfosslCertificateif using a https url, configure if the plugin accepts every certifactes or respects hostnameVerifierClass and trustManagerClass (if set).
-
Constructor Summary
Constructors Constructor Description AbstractBaseConfluenceMojo()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description String_getSpaceKey()protected <T extends java.util.function.Consumer<org.bsc.confluence.ConfluenceService>>
voidconfluenceExecute(T task)StringgetEndPoint()StringgetPassword()Map<String,String>getProperties()StringgetUsername()booleanisFailOnError()Indicates whether the build will continue even if there are clean errors.protected org.bsc.confluence.ConfluenceService.Model.PageloadParentPage(org.bsc.confluence.ConfluenceService confluence, Optional<org.bsc.confluence.model.Site> site)protected voidloadUserInfoFromSettings()Issue 39 Load username password from settings if user has not set them in JVM propertiesprotected RuntimeExceptionRTE(String message, Object... args)protected <T> TthrowRTE(String message, Object... args)-
Methods inherited from class org.apache.maven.plugin.AbstractMojo
getLog, getPluginContext, setLog, setPluginContext
-
-
-
-
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
-
-
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.MojoExecutionExceptionIssue 39 Load username password from settings if user has not set them in JVM properties- Throws:
org.apache.maven.plugin.MojoExecutionException
-
RTE
protected RuntimeException RTE(String message, Object... args)
-
-