public abstract class AbstractEffectiveMojo extends AbstractHelpMojo
| Modifier and Type | Class and Description |
|---|---|
protected static class |
AbstractEffectiveMojo.SortedProperties
Properties which provides a sorted keySet().
|
artifactResolver, LINE_LENGTH, localRepository, LS, output, projectBuilder, remoteRepositories, session| Constructor and Description |
|---|
AbstractEffectiveMojo() |
| Modifier and Type | Method and Description |
|---|---|
protected static String |
prettyFormat(String effectiveModel,
String encoding,
boolean omitDeclaration) |
protected static void |
writeComment(XMLWriter writer,
String comment)
Write comments in a normalize way.
|
protected static void |
writeHeader(XMLWriter writer)
Write comments in the Effective POM/settings header.
|
protected static void |
writeXmlFile(File output,
String content)
Utility method to write an XML content in a given file.
|
getArtifactCoordinate, getArtifactCoordinate, getMavenProject, writeFile, writeFilegetLog, getPluginContext, setLog, setPluginContextprotected static void writeXmlFile(File output, String content) throws IOException
output - is the wanted output file.content - contains the XML content to be written to the file.IOException - if anyif encoding is null.protected static void writeHeader(XMLWriter writer)
writer - not nullprotected static void writeComment(XMLWriter writer, String comment)
writer - not nullcomment - not nullprotected static String prettyFormat(String effectiveModel, String encoding, boolean omitDeclaration)
effectiveModel - not nullencoding - not nullomitDeclaration - whether the XML declaration should be omitted from the effective pomeffectiveModel if an error occurred.Copyright © 2001–2019 The Apache Software Foundation. All rights reserved.