public abstract class AbstractProjectInfoReport
extends org.apache.maven.reporting.AbstractMavenReport
Modifier and Type | Field and Description |
---|---|
protected String |
customBundle
Path for a custom bundle instead of using the default one.
|
protected List<org.apache.maven.artifact.repository.ArtifactRepository> |
pluginRepositories
Plugin repositories used for the project.
|
protected org.apache.maven.project.ProjectBuilder |
projectBuilder |
protected List<org.apache.maven.project.MavenProject> |
reactorProjects
The reactor projects.
|
protected org.apache.maven.shared.transfer.artifact.resolve.ArtifactResolver |
resolver
Artifact Resolver component.
|
protected org.apache.maven.settings.Settings |
settings
The current user system settings for use in Maven.
|
protected boolean |
skipEmptyReport
Skip the project info report generation if a report-specific section of the POM is empty.
|
localRepository, outputDirectory, project, remoteRepositories, siteRenderer, siteTool
Constructor and Description |
---|
AbstractProjectInfoReport() |
Modifier and Type | Method and Description |
---|---|
boolean |
canGenerateReport() |
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) |
protected Map<String,String> |
getLicenseMappings() |
String |
getName(Locale locale) |
protected org.apache.maven.model.Plugin |
getPlugin(String pluginId) |
protected String |
getPluginParameter(String pluginId,
String param) |
protected org.apache.maven.project.MavenProject |
getProject() |
protected List<org.apache.maven.project.MavenProject> |
getReactorProjects() |
protected org.apache.maven.execution.MavenSession |
getSession() |
protected boolean |
isEmpty(Collection<?> coll) |
closeReport, execute, executeReport, generate, generate, generate, getInputEncoding, getOutputDirectory, getOutputEncoding, getReportOutputDirectory, getSink, getSinkFactory, getSiteRenderer, isExternalReport, setReportOutputDirectory
getLog, getPluginContext, setLog, setPluginContext
@Component protected org.apache.maven.shared.transfer.artifact.resolve.ArtifactResolver resolver
@Component protected org.apache.maven.project.ProjectBuilder projectBuilder
@Parameter(defaultValue="${project.pluginArtifactRepositories}", readonly=true, required=true) protected List<org.apache.maven.artifact.repository.ArtifactRepository> pluginRepositories
@Parameter(defaultValue="${reactorProjects}", required=true, readonly=true) protected List<org.apache.maven.project.MavenProject> reactorProjects
@Parameter(defaultValue="${settings}", readonly=true, required=true) protected org.apache.maven.settings.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 org.apache.maven.reporting.MavenReport
canGenerateReport
in class org.apache.maven.reporting.AbstractMavenReport
public String getCategoryName()
getCategoryName
in interface org.apache.maven.reporting.MavenReport
getCategoryName
in class org.apache.maven.reporting.AbstractMavenReport
protected boolean isEmpty(Collection<?> coll)
coll
- The collection to be checked.protected org.apache.maven.project.MavenProject getProject()
getProject
in class org.apache.maven.reporting.AbstractMavenReport
protected org.apache.maven.execution.MavenSession getSession()
protected List<org.apache.maven.project.MavenProject> getReactorProjects()
protected org.apache.maven.model.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 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–2024 The Apache Software Foundation. All rights reserved.