Package org.apache.maven.plugins.changes
Class AbstractChangesMojo
java.lang.Object
org.apache.maven.plugin.AbstractMojo
org.apache.maven.plugins.changes.AbstractChangesMojo
- All Implemented Interfaces:
org.apache.maven.plugin.ContextEnabled
,org.apache.maven.plugin.Mojo
- Direct Known Subclasses:
AbstractAnnouncementMojo
,ChangesCheckMojo
,ChangesValidatorMojo
public abstract class AbstractChangesMojo
extends org.apache.maven.plugin.AbstractMojo
Abstract superclass for announcement mojos.
- Since:
- 2.9
- Version:
- $Id$
-
Field Summary
Modifier and TypeFieldDescriptionprotected String
The current project base directory.protected org.apache.maven.execution.MavenSession
The Maven Session.protected boolean
This will cause the execution to be run only at the top of a given module tree.Fields inherited from interface org.apache.maven.plugin.Mojo
ROLE
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionprotected boolean
Returnstrue
if the current project is located at the Execution Root Directory (where mvn was launched).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
-
basedir
The current project base directory.- Since:
- 2.1
-
mavenSession
@Parameter(defaultValue="${session}", readonly=true, required=true) protected org.apache.maven.execution.MavenSession mavenSessionThe Maven Session.- Since:
- 2.3
-
runOnlyAtExecutionRoot
@Parameter(property="changes.runOnlyAtExecutionRoot", defaultValue="false") protected boolean runOnlyAtExecutionRootThis will cause the execution to be run only at the top of a given module tree. That is, run in the project contained in the same folder where the mvn execution was launched.- Since:
- 2.9
-
-
Constructor Details
-
AbstractChangesMojo
public AbstractChangesMojo()
-
-
Method Details
-
isThisTheExecutionRoot
protected boolean isThisTheExecutionRoot()Returnstrue
if the current project is located at the Execution Root Directory (where mvn was launched).- Returns:
true
if the current project is at the Execution Root
-