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 org.apache.maven.artifact.repository.ArtifactRepository |
localRepository
The local repository.
|
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.artifact.repository.ArtifactRepository> |
remoteRepositories |
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.
|
locale, mojoExecution, outputDirectory, outputFormat, outputTimestamp, project, reactorProjects, remoteProjectRepositories, repoSession, siteDirectory, 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() |
protected org.apache.maven.plugin.MojoExecution |
getMojoExecution() |
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, constructXrefLocation, execute, executeReport, generate, generate, getInputEncoding, getLocale, getOutputDirectory, getOutputEncoding, getReportOutputDirectory, getSink, getSinkFactory, getSiteRenderer, getXrefLocation, 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.remoteArtifactRepositories}", readonly=true, required=true) protected List<org.apache.maven.artifact.repository.ArtifactRepository> remoteRepositories
@Parameter(defaultValue="${project.pluginArtifactRepositories}", readonly=true, required=true) protected List<org.apache.maven.artifact.repository.ArtifactRepository> pluginRepositories
@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
.@Parameter(defaultValue="${localRepository}", readonly=true, required=true) protected org.apache.maven.artifact.repository.ArtifactRepository localRepository
public boolean canGenerateReport() throws org.apache.maven.reporting.MavenReportException
canGenerateReport
in interface org.apache.maven.reporting.MavenReport
canGenerateReport
in class org.apache.maven.reporting.AbstractMavenReport
org.apache.maven.reporting.MavenReportException
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.plugin.MojoExecution getMojoExecution()
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.