@Mojo(name="effective-site",
requiresReports=true)
public class EffectiveSiteMojo
extends AbstractSiteDescriptorMojo
site.xml, for the first locale.| Modifier and Type | Field and Description |
|---|---|
protected File |
output
Optional parameter to write the output of this help in a given file, instead of writing to the console.
|
reactorProjects, remoteProjectRepositories, repoSession, siteDirectoryi18n, project, 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,
String comment)
Write comments in a normalize way.
|
protected static void |
writeHeader(org.codehaus.plexus.util.xml.XMLWriter writer)
Write comments in the Effective POM/settings header.
|
protected static void |
writeXmlFile(File output,
String content) |
prepareSiteModelgetLocales@Parameter(property="output") protected File output
Note: Could be a relative path.
public void execute()
throws org.apache.maven.plugin.MojoExecutionException,
org.apache.maven.plugin.MojoFailureException
org.apache.maven.plugin.MojoExecutionExceptionorg.apache.maven.plugin.MojoFailureExceptionprotected static void writeHeader(org.codehaus.plexus.util.xml.XMLWriter writer)
writer - not nullprotected static void writeComment(org.codehaus.plexus.util.xml.XMLWriter writer,
String comment)
writer - not nullcomment - not nullprotected static void writeXmlFile(File output, String content) throws IOException
IOExceptionCopyright © 2002–2024 The Apache Software Foundation. All rights reserved.