public abstract class PomChangingAbstractMojo extends BomHelperAbstractMojo
| Modifier and Type | Field and Description |
|---|---|
protected String |
backupFileName
The name of the file to copy the original POM to if `inplace` and `makeBackup` are set to `true`
|
protected boolean |
inplace
If true, the current POM will be replaced with the one generated by this goal
|
protected boolean |
makeBackup
Should the goal make copy of the original POM when `inplace` is set to `true`
|
protected String |
outputFileName
The name of the file to save the pom generated by this goal
|
protected boolean |
replaceBackup
Should the goal replace an existing copy of the original POM when `inplace` and `makeBackup` are set to `true`
|
project, session| Constructor and Description |
|---|
PomChangingAbstractMojo() |
| Modifier and Type | Method and Description |
|---|---|
protected void |
savePom(Document doc) |
getLog, getPluginContext, setLog, setPluginContext@Parameter(defaultValue="false",
property="bom-helper.inplace")
protected boolean inplace
@Parameter(defaultValue="pom-bom-update.xml",
property="bom-helper.outputFile")
protected String outputFileName
@Parameter(defaultValue="true",
property="bom-helper.backup")
protected boolean makeBackup
@Parameter(defaultValue="pom-original.xml",
property="bom-helper.backupFile")
protected String backupFileName
@Parameter(defaultValue="false",
property="bom-helper.backupFile.replace")
protected boolean replaceBackup
protected void savePom(Document doc) throws org.apache.maven.plugin.MojoExecutionException, IOException, TransformerConfigurationException, TransformerFactoryConfigurationError, TransformerException
doc - org.apache.maven.plugin.MojoExecutionExceptionIOExceptionTransformerConfigurationExceptionTransformerFactoryConfigurationErrorTransformerExceptionCopyright © 2019 Commsen International. All rights reserved.