Package org.apache.maven.plugins.site
Class AbstractSiteMojo
java.lang.Object
org.apache.maven.plugin.AbstractMojo
org.apache.maven.plugins.site.AbstractSiteMojo
- All Implemented Interfaces:
org.apache.maven.plugin.ContextEnabled,org.apache.maven.plugin.Mojo
- Direct Known Subclasses:
AbstractDeployMojo,AbstractSiteDescriptorMojo
public abstract class AbstractSiteMojo
extends org.apache.maven.plugin.AbstractMojo
Base class for site mojos.
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected org.codehaus.plexus.i18n.I18NInternationalization.private StringA comma separated list of locales to render.protected org.apache.maven.artifact.repository.ArtifactRepositoryThe local repository.protected org.apache.maven.project.MavenProjectThe Maven project.protected List<org.apache.maven.project.MavenProject> The reactor projects.protected org.apache.maven.doxia.tools.SiteToolSiteTool.protected booleanSet this to 'true' to skip site generation and staging.Fields inherited from interface org.apache.maven.plugin.Mojo
ROLE -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected static Stringprotected static booleanCheck the current Maven version to see if it's Maven 3.0 or newer.Methods inherited from class org.apache.maven.plugin.AbstractMojo
getLog, getPluginContext, setLog, setPluginContextMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface org.apache.maven.plugin.Mojo
execute
-
Field Details
-
locales
A comma separated list of locales to render. The first valid token will be the default Locale for this site.- Since:
- 2.3
-
skip
@Parameter(property="maven.site.skip", defaultValue="false") protected boolean skipSet this to 'true' to skip site generation and staging.- Since:
- 3.0
-
siteTool
@Component protected org.apache.maven.doxia.tools.SiteTool siteToolSiteTool. -
i18n
@Component protected org.codehaus.plexus.i18n.I18N i18nInternationalization. -
project
@Parameter(defaultValue="${project}", readonly=true) protected org.apache.maven.project.MavenProject projectThe Maven project. -
localRepository
@Parameter(defaultValue="${localRepository}", readonly=true) protected org.apache.maven.artifact.repository.ArtifactRepository localRepositoryThe local repository. -
reactorProjects
@Parameter(defaultValue="${reactorProjects}", required=true, readonly=true) protected List<org.apache.maven.project.MavenProject> reactorProjectsThe reactor projects.
-
-
Constructor Details
-
AbstractSiteMojo
public AbstractSiteMojo()
-
-
Method Details
-
isMaven3OrMore
protected static boolean isMaven3OrMore()Check the current Maven version to see if it's Maven 3.0 or newer. -
getMavenVersion
-
getLocales
-