Package org.basepom.mojo.propertyhelper
Class AbstractPropertyHelperMojo
java.lang.Object
org.apache.maven.plugin.AbstractMojo
org.basepom.mojo.propertyhelper.AbstractPropertyHelperMojo
- All Implemented Interfaces:
org.apache.maven.plugin.ContextEnabled
,org.apache.maven.plugin.Mojo
- Direct Known Subclasses:
GetPropertiesMojo
,IncrementNumbersMojo
public abstract class AbstractPropertyHelperMojo
extends org.apache.maven.plugin.AbstractMojo
Base code for all the mojos.
-
Field Summary
Modifier and TypeFieldDescriptionString[]
List of the property group ids to activate for a plugin execution.Date property definitions.protected static final Log
Macro definitions.Number property definitions.Defines the action to take if a property is present multiple times.Defines the action to take if a referenced property is missing.org.apache.maven.project.MavenProject
The maven project (effective pom).List of available property groups.org.apache.maven.settings.Settings
String property definitions.Uuid definitions.protected final ValueCache
Fields inherited from interface org.apache.maven.plugin.Mojo
ROLE
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionprotected abstract void
Subclasses need to implement this method.void
execute()
org.apache.maven.project.MavenProject
org.apache.maven.settings.Settings
protected void
Methods inherited from class org.apache.maven.plugin.AbstractMojo
getLog, getPluginContext, setLog, setPluginContext
-
Field Details
-
LOG
-
valueCache
-
onDuplicateProperty
Defines the action to take if a property is present multiple times. -
onMissingProperty
Defines the action to take if a referenced property is missing. -
activeGroups
List of the property group ids to activate for a plugin execution. -
propertyGroups
List of available property groups. A property group contains one or more property definitions and must be activated with activeGroups. -
numbers
Number property definitions. -
strings
String property definitions. -
dates
Date property definitions. -
macros
Macro definitions. -
uuids
Uuid definitions. -
project
@Parameter(defaultValue="${project}", readonly=true) public org.apache.maven.project.MavenProject projectThe maven project (effective pom). -
settings
@Parameter(defaultValue="${settings}", readonly=true) public org.apache.maven.settings.Settings settings -
basedir
-
numberFields
-
macroMap
-
-
Constructor Details
-
AbstractPropertyHelperMojo
public AbstractPropertyHelperMojo()
-
-
Method Details
-
execute
public void execute() throws org.apache.maven.plugin.MojoExecutionException- Throws:
org.apache.maven.plugin.MojoExecutionException
-
getProject
public org.apache.maven.project.MavenProject getProject() -
getSettings
public org.apache.maven.settings.Settings getSettings() -
getBasedir
-
getMacros
-
getNumbers
-
doExecute
protected abstract void doExecute() throws IOException, org.apache.maven.plugin.MojoExecutionExceptionSubclasses need to implement this method.- Throws:
IOException
org.apache.maven.plugin.MojoExecutionException
-
loadPropertyElements
protected void loadPropertyElements() throws org.apache.maven.plugin.MojoExecutionException, IOException- Throws:
org.apache.maven.plugin.MojoExecutionException
IOException
-