@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.
|
repositories, siteDirectoryi18n, localRepository, project, reactorProjects, runtimeInformation, 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) |
prepareDecorationModelgetLocales, getMavenVersiongetLog, getPluginContext, setLog, setPluginContext@Parameter(property="output") protected File output
Note: Could be a relative path.
public void execute()
throws MojoExecutionException,
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,
String comment)
writer - not nullcomment - not nullprotected static void writeXmlFile(File output, String content) throws IOException
IOExceptionCopyright © 2002–2021 The Apache Software Foundation. All rights reserved.