public abstract class AllureGenerateMojo extends AllureBaseMojo
| Modifier and Type | Field and Description |
|---|---|
static java.lang.String |
ALLURE_NEW_PROPERTIES |
static java.lang.String |
ALLURE_OLD_PROPERTIES |
protected java.lang.String |
allureDownloadUrl |
protected java.lang.String |
buildDirectory
The project build directory.
|
static java.lang.String |
CATEGORIES_FILE_NAME |
protected org.apache.maven.settings.crypto.SettingsDecrypter |
decrypter |
protected org.apache.maven.shared.transfer.dependencies.resolve.DependencyResolver |
dependencyResolver |
protected java.util.Map<java.lang.String,java.lang.String> |
executorInfo
This is key-value map which defines executor.json file content.
|
protected java.lang.String |
installDirectory |
protected java.util.Map<java.lang.String,java.lang.String> |
properties
The additional Allure properties such as issue tracker pattern.
|
protected java.lang.String |
propertiesFilePath
The path to the allure.properties file.
|
protected java.lang.String |
reportDirectory |
protected java.lang.String |
reportingOutputDirectory
The project reporting output directory.
|
protected int |
reportTimeout
Report timeout parameter in seconds.
|
protected java.lang.String |
reportVersion
The version on Allure report to generate.
|
protected java.lang.String |
resultsDirectory
The path to Allure results directory.
|
protected org.apache.maven.execution.MavenSession |
session |
protected java.lang.Boolean |
singleFile
The report generation mode.
|
pluginDescriptorlocale, mojoExecution, outputDirectory, outputFormat, outputTimestamp, project, reactorProjects, remoteProjectRepositories, repoSession, siteDirectory, siteRenderer, siteTool| Constructor and Description |
|---|
AllureGenerateMojo() |
| Modifier and Type | Method and Description |
|---|---|
boolean |
canGenerateReport() |
protected java.lang.ClassLoader |
createProjectClassLoader()
Return ClassLoader with classpath elements.
|
protected void |
executeReport(java.util.Locale locale) |
protected void |
generateReport(java.util.List<java.nio.file.Path> resultsPaths) |
protected abstract java.util.List<java.nio.file.Path> |
getInputDirectories()
Get list of Allure results directories to generate the report.
|
java.lang.String |
getInstallDirectory() |
protected abstract java.lang.String |
getMojoName()
Get the current mojo name.
|
protected java.lang.String |
getOutputDirectory() |
java.lang.String |
getReportDirectory()
The directory to generate Allure report into.
|
protected boolean |
isAggregate()
Is the current report aggregated?
|
protected boolean |
isDirectoryExists(java.nio.file.Path path)
Returns true if given path is an existed directory.
|
protected void |
prepareProperties(java.util.Properties properties)
Replaces the placeholders in properties.
|
protected void |
readPropertiesFile(java.util.Properties properties)
Read system properties from file
propertiesFilePath. |
protected void |
readPropertiesFileFromClasspath(java.lang.String propertiesFileName,
java.util.Properties properties)
Read allure.properties from classpath.
|
protected void |
readPropertiesFromMap(java.util.Properties properties)
Set properties from
properties. |
protected void |
render(org.apache.maven.doxia.sink.Sink sink,
java.lang.String title)
Render allure report page in project-reports.html.
|
getDescription, getName, getOutputName, getProject, getSiteRenderercloseReport, constructXrefLocation, execute, generate, generate, getCategoryName, getInputEncoding, getLocale, getOutputEncoding, getReportOutputDirectory, getSink, getSinkFactory, getXrefLocation, isExternalReport, setReportOutputDirectorygetLog, getPluginContext, setLog, setPluginContextpublic static final java.lang.String ALLURE_OLD_PROPERTIES
public static final java.lang.String ALLURE_NEW_PROPERTIES
public static final java.lang.String CATEGORIES_FILE_NAME
@Parameter(defaultValue="${project.build.directory}",
readonly=true)
protected java.lang.String buildDirectory
@Parameter(defaultValue="${project.reporting.outputDirectory}",
readonly=true)
protected java.lang.String reportingOutputDirectory
@Parameter(property="allure.results.directory",
defaultValue="allure-results/")
protected java.lang.String resultsDirectory
report mojo). Will be ignored for bulk mojo.@Parameter(property="report.version") protected java.lang.String reportVersion
@Parameter(property="allure.report.directory",
defaultValue="${project.reporting.outputDirectory}/allure-maven-plugin")
protected java.lang.String reportDirectory
@Parameter(property="allure.report.timeout",
defaultValue="60")
protected int reportTimeout
@Parameter protected final java.util.Map<java.lang.String,java.lang.String> executorInfo
@Parameter(defaultValue="report.properties") protected java.lang.String propertiesFilePath
@Parameter(property="allure.install.directory",
defaultValue="${project.basedir}/.allure")
protected java.lang.String installDirectory
@Parameter(property="allure.download.url") protected java.lang.String allureDownloadUrl
@Parameter(property="session",
defaultValue="${session}",
readonly=true)
protected org.apache.maven.execution.MavenSession session
@Component(role=org.apache.maven.settings.crypto.SettingsDecrypter.class) protected org.apache.maven.settings.crypto.SettingsDecrypter decrypter
@Component protected org.apache.maven.shared.transfer.dependencies.resolve.DependencyResolver dependencyResolver
@Parameter protected java.util.Map<java.lang.String,java.lang.String> properties
@Parameter protected java.lang.Boolean singleFile
protected java.lang.String getOutputDirectory()
getOutputDirectory in class org.apache.maven.reporting.AbstractMavenReportprotected void executeReport(java.util.Locale locale)
throws org.apache.maven.reporting.MavenReportException
executeReport in class org.apache.maven.reporting.AbstractMavenReportorg.apache.maven.reporting.MavenReportExceptionprotected void generateReport(java.util.List<java.nio.file.Path> resultsPaths)
throws org.apache.maven.reporting.MavenReportException
org.apache.maven.reporting.MavenReportExceptionprotected void readPropertiesFile(java.util.Properties properties)
throws java.io.IOException
propertiesFilePath.java.io.IOException - if any occurs.protected void readPropertiesFileFromClasspath(java.lang.String propertiesFileName,
java.util.Properties properties)
throws java.io.IOException,
org.apache.maven.artifact.DependencyResolutionRequiredException
java.io.IOException - if any occurs.org.apache.maven.artifact.DependencyResolutionRequiredExceptionprotected void readPropertiesFromMap(java.util.Properties properties)
properties.protected void prepareProperties(java.util.Properties properties)
protected void render(org.apache.maven.doxia.sink.Sink sink,
java.lang.String title)
protected java.lang.ClassLoader createProjectClassLoader()
throws java.net.MalformedURLException,
org.apache.maven.artifact.DependencyResolutionRequiredException
java.net.MalformedURLExceptionorg.apache.maven.artifact.DependencyResolutionRequiredExceptionpublic boolean canGenerateReport()
canGenerateReport in interface org.apache.maven.reporting.MavenReportcanGenerateReport in class org.apache.maven.reporting.AbstractMavenReportprotected boolean isAggregate()
protected boolean isDirectoryExists(java.nio.file.Path path)
protected abstract java.util.List<java.nio.file.Path> getInputDirectories()
protected abstract java.lang.String getMojoName()
public java.lang.String getReportDirectory()
public java.lang.String getInstallDirectory()
Copyright © 2024 Qameta.io. All rights reserved.