public abstract class AbstractProjectInfoReport extends AbstractMavenReport
| Modifier and Type | Field and Description |
|---|---|
protected String |
customBundle
Path for a custom bundle instead of using the default one.
|
protected ArtifactRepository |
localRepository
Local Repository.
|
protected List<ArtifactRepository> |
pluginRepositories
Plugin repositories used for the project.
|
protected ProjectBuilder |
projectBuilder |
protected List<MavenProject> |
reactorProjects
The reactor projects.
|
protected List<ArtifactRepository> |
remoteRepositories
Remote repositories used for the project.
|
protected ArtifactResolver |
resolver
Artifact Resolver component.
|
protected Settings |
settings
The current user system settings for use in Maven.
|
protected SiteTool |
siteTool
SiteTool component.
|
protected boolean |
skipEmptyReport
Skip the project info report generation if a report-specific section of the POM is empty.
|
outputDirectory, project, siteRendererCATEGORY_PROJECT_INFORMATION, CATEGORY_PROJECT_REPORTS, ROLE| Constructor and Description |
|---|
AbstractProjectInfoReport() |
| Modifier and Type | Method and Description |
|---|---|
boolean |
canGenerateReport() |
void |
execute() |
String |
getCategoryName() |
String |
getDescription(Locale locale) |
protected org.codehaus.plexus.i18n.I18N |
getI18N(Locale locale) |
protected abstract String |
getI18Nsection() |
protected String |
getI18nString(Locale locale,
String key) |
String |
getName(Locale locale) |
protected String |
getOutputDirectory() |
protected Plugin |
getPlugin(String pluginId) |
protected String |
getPluginParameter(String pluginId,
String param) |
protected MavenProject |
getProject() |
protected List<MavenProject> |
getReactorProjects()
Reactor projects
|
File |
getReportOutputDirectory() |
protected MavenSession |
getSession() |
protected Renderer |
getSiteRenderer() |
protected boolean |
isEmpty(Collection<?> coll) |
void |
setReportOutputDirectory(File reportOutputDirectory) |
closeReport, executeReport, generate, generate, generate, getInputEncoding, getOutputEncoding, getSink, getSinkFactory, isExternalReportgetLog, getPluginContext, setLog, setPluginContextclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitgetOutputName@Component protected SiteTool siteTool
@Component protected ArtifactResolver resolver
@Component protected ProjectBuilder projectBuilder
@Parameter(property="localRepository", required=true, readonly=true) protected ArtifactRepository localRepository
@Parameter(property="project.remoteArtifactRepositories") protected List<ArtifactRepository> remoteRepositories
@Parameter(property="project.pluginArtifactRepositories") protected List<ArtifactRepository> pluginRepositories
@Parameter(defaultValue="${reactorProjects}", required=true, readonly=true) protected List<MavenProject> reactorProjects
@Parameter(defaultValue="${settings}", readonly=true, required=true) protected Settings settings
@Parameter(defaultValue="${project.basedir}/src/site/custom/project-info-reports.properties") protected String customBundle
@Parameter(defaultValue="true") protected boolean skipEmptyReport
true.public boolean canGenerateReport()
canGenerateReport in interface MavenReportcanGenerateReport in class AbstractMavenReportpublic void execute()
throws MojoExecutionException
execute in interface Mojoexecute in class AbstractMavenReportMojoExecutionExceptionpublic String getCategoryName()
getCategoryName in interface MavenReportgetCategoryName in class AbstractMavenReportprotected boolean isEmpty(Collection<?> coll)
coll - The collection to be checked.protected String getOutputDirectory()
getOutputDirectory in class AbstractMavenReportpublic File getReportOutputDirectory()
getReportOutputDirectory in interface MavenReportgetReportOutputDirectory in class AbstractMavenReportpublic void setReportOutputDirectory(File reportOutputDirectory)
setReportOutputDirectory in interface MavenReportsetReportOutputDirectory in class AbstractMavenReportprotected MavenProject getProject()
getProject in class AbstractMavenReportprotected MavenSession getSession()
protected List<MavenProject> getReactorProjects()
protected Plugin getPlugin(String pluginId)
pluginId - The id of the pluginprotected String getPluginParameter(String pluginId, String param)
pluginId - The pluginIdparam - The child which should be checked.protected Renderer getSiteRenderer()
getSiteRenderer in class AbstractMavenReportprotected String getI18nString(Locale locale, String key)
locale - The localekey - The key to search forprotected org.codehaus.plexus.i18n.I18N getI18N(Locale locale)
locale - The local.protected abstract String getI18Nsection()
Copyright © 2005–2022 The Apache Software Foundation. All rights reserved.