Package br.org.soujava.pomeditor.mojo
Class EditingMojo
- java.lang.Object
-
- org.apache.maven.plugin.AbstractMojo
-
- br.org.soujava.pomeditor.mojo.EditingMojo
-
- All Implemented Interfaces:
org.apache.maven.plugin.ContextEnabled
,org.apache.maven.plugin.Mojo
- Direct Known Subclasses:
AddDependencyMojo
,ChangePropertyMojo
public abstract class EditingMojo extends org.apache.maven.plugin.AbstractMojo
Base class forMojo
functionality, containing common code for editing POM files, and unit testing.
-
-
Field Summary
Fields Modifier and Type Field Description protected Function<Path,Boolean>
backupFunction
protected Consumer<Path>
rollbackFunction
-
Constructor Summary
Constructors Constructor Description EditingMojo()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected PomChange
change(Path pomFile)
-
Methods inherited from class org.apache.maven.plugin.AbstractMojo
getLog, getPluginContext, setLog, setPluginContext
-
-