View Source

h3. {anchor:export}confluence-reporting:export
{quote}
Export a confluence page either in PDF or DOC
{quote}

h4. Mojo Attributes
* Since version: <code>3.4.3</code>

h4. Required Parameters

||Name||Type||Description||
|spaceKey|String|Confluence target confluence's spaceKey|
h4. Optional Parameters

||Name||Type||Description||
|endPoint|String|Confluence end point url Default value is http://localhost:8080/rpc/xmlrpc|
|outputFile|File|output file - if missing it will be $\{project.build.directory\}/$\{title\}.$\{outputType\}|
|outputType|String|type of output - either 'pdf' or 'doc' Default value is pdf|
|pageTitle|String|title of pageTitle that will be deleted Default value is $\{project.build.finalName\}|
|parentPageTitle|String|Confluence target confluence's spaceKey Default value is Home|
|password|String|Confluence password|
|serverId|String|Issue 39
Server's {{id}} in {{settings.xml}} to look up username and password.
Defaults to {{$\{url\}}} if not given.|
|sslCertificate|SSLCertificateInfo|if using a https url, configure if the plugin accepts every certifactes or
respects hostnameVerifierClass and trustManagerClass (if set).
Below the Template
{noformat}
&lt;sslCertificate>
&lt;ignore>true|false</ignore> // default true
&lt;hostNameVerifierClass>FQN</hostNameVerifierClass> //default null
&lt;trustManagerClass>FQN</trustManagerClass> // default null
&lt;/sslCertificate>
{noformat}|
|username|String|Confluence username|
h4. Parameter Details

h5. endPoint
Confluence end point url
|Type|java.lang.String|
|Required|No|
|Expression|$\{confluence.endPoint\}|
|Default|http://localhost:8080/rpc/xmlrpc|
h5. outputFile
output file - if missing it will be $\{project.build.directory\}/$\{title\}.$\{outputType\}
|Type|java.io.File|
|Since|3.4.3|
|Required|No|
h5. outputType
type of output - either 'pdf' or 'doc'
|Type|java.lang.String|
|Since|3.4.3|
|Required|No|
|Expression|$\{outputType\}|
|Default|pdf|
h5. pageTitle
title of pageTitle that will be deleted
|Type|java.lang.String|
|Since|3.4.3|
|Required|No|
|Expression|$\{confluence.page\}|
|Default|$\{project.build.finalName\}|
h5. parentPageTitle
Confluence target confluence's spaceKey
|Type|java.lang.String|
|Required|No|
|Expression|$\{confluence.parentPage\}|
|Default|Home|
h5. password
Confluence password
|Type|java.lang.String|
|Required|No|
|Expression|$\{confluence.password\}|
h5. serverId
Issue 39

Server's {{id}} in {{settings.xml}} to look up username and password.
Defaults to {{$\{url\}}} if not given.
|Type|java.lang.String|
|Since|3.1.1|
|Required|No|
|Expression|$\{confluence.serverId\}|
h5. spaceKey
Confluence target confluence's spaceKey
|Type|java.lang.String|
|Required|Yes|
|Expression|$\{confluence.spaceKey\}|
h5. sslCertificate
if using a https url, configure if the plugin accepts every certifactes or
respects hostnameVerifierClass and trustManagerClass (if set).

Below the Template

{noformat}

&lt;sslCertificate>
&lt;ignore>true|false</ignore> // default true
&lt;hostNameVerifierClass>FQN</hostNameVerifierClass> //default null
&lt;trustManagerClass>FQN</trustManagerClass> // default null
&lt;/sslCertificate>

{noformat}
|Type|org.bsc.ssl.SSLCertificateInfo|
|Since|4.1.0|
|Required|No|
h5. username
Confluence username
|Type|java.lang.String|
|Required|No|
|Expression|$\{confluence.userName\}|