Package org.codehaus.mojo.buildhelper
Class AbstractDefinePropertyMojo
java.lang.Object
org.apache.maven.plugin.AbstractMojo
org.codehaus.mojo.buildhelper.AbstractDefinePropertyMojo
- All Implemented Interfaces:
org.apache.maven.plugin.ContextEnabled
,org.apache.maven.plugin.Mojo
- Direct Known Subclasses:
AbstractRegexPropertyMojo
,BeanshellPropertyMojo
,CpuCountMojo
,HostnameMojo
,LocalIpMojo
,MavenVersionMojo
,ParseVersionMojo
,ReleasedVersionMojo
,RootLocationMojo
,TimestampPropertyMojo
,UpToDatePropertiesMojo
,UpToDatePropertyMojo
public abstract class AbstractDefinePropertyMojo
extends org.apache.maven.plugin.AbstractMojo
-
Field Summary
Modifier and TypeFieldDescriptionprotected org.apache.maven.project.MavenProject
The maven projectFields inherited from interface org.apache.maven.plugin.Mojo
ROLE
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionprotected void
defineProperty
(String name, String value) org.apache.maven.project.MavenProject
Get the current project instance.Methods inherited from class org.apache.maven.plugin.AbstractMojo
getLog, getPluginContext, setLog, setPluginContext
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface org.apache.maven.plugin.Mojo
execute
-
Field Details
-
project
@Parameter(readonly=true, defaultValue="${project}") protected org.apache.maven.project.MavenProject projectThe maven project
-
-
Constructor Details
-
AbstractDefinePropertyMojo
public AbstractDefinePropertyMojo()
-
-
Method Details
-
defineProperty
-
getProject
public org.apache.maven.project.MavenProject getProject()Get the current project instance.- Returns:
- the project
-