public abstract class AbstractEffectiveMojo extends AbstractHelpMojo
Modifier and Type | Class and Description |
---|---|
protected static class |
AbstractEffectiveMojo.SortedProperties
Properties which provides a sorted keySet().
|
LINE_LENGTH, LS, output, project, projectBuilder, repositorySystem, 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(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)
Utility method to write an XML content to a given file.
|
getAetherArtifact, getMavenProject, resolveArtifact, writeFile, writeFile
getLog, getPluginContext, setLog, setPluginContext
protected 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(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 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–2024 The Apache Software Foundation. All rights reserved.