@Mojo(name="effective-site", requiresReports=true) public class EffectiveSiteMojo extends AbstractSiteDescriptorMojo
site.xml
, for the first locale.Modifier and Type | Field and Description |
---|---|
protected java.io.File |
output
Optional parameter to write the output of this help in a given file, instead of writing to the console.
|
repositories, siteDirectory
i18n, localRepository, project, reactorProjects, siteTool, skip
Constructor and Description |
---|
EffectiveSiteMojo() |
Modifier and Type | Method and Description |
---|---|
void |
execute() |
protected static void |
writeComment(org.codehaus.plexus.util.xml.XMLWriter writer,
java.lang.String comment)
Write comments in a normalize way.
|
private void |
writeEffectiveSite(org.apache.maven.doxia.site.decoration.DecorationModel decorationModel,
org.codehaus.plexus.util.xml.XMLWriter writer) |
protected static void |
writeHeader(org.codehaus.plexus.util.xml.XMLWriter writer)
Write comments in the Effective POM/settings header.
|
protected static void |
writeXmlFile(java.io.File output,
java.lang.String content) |
prepareDecorationModel
getLocales, getMavenVersion, isMaven3OrMore
@Parameter(property="output") protected java.io.File output
public void execute() throws org.apache.maven.plugin.MojoExecutionException, org.apache.maven.plugin.MojoFailureException
org.apache.maven.plugin.MojoExecutionException
org.apache.maven.plugin.MojoFailureException
protected static void writeHeader(org.codehaus.plexus.util.xml.XMLWriter writer)
writer
- not nullprotected static void writeComment(org.codehaus.plexus.util.xml.XMLWriter writer, java.lang.String comment)
writer
- not nullcomment
- not nullprivate void writeEffectiveSite(org.apache.maven.doxia.site.decoration.DecorationModel decorationModel, org.codehaus.plexus.util.xml.XMLWriter writer) throws org.apache.maven.plugin.MojoExecutionException
org.apache.maven.plugin.MojoExecutionException
protected static void writeXmlFile(java.io.File output, java.lang.String content) throws java.io.IOException
java.io.IOException