@Mojo(name="maven-version",
defaultPhase=VALIDATE,
threadSafe=true)
public class MavenVersionMojo
extends AbstractDefinePropertyMojo
maven.version.| Modifier and Type | Field and Description |
|---|---|
private org.apache.maven.execution.RuntimeInformation |
runtime
The RuntimeInforamtion for the current instance of Maven.
|
private java.lang.String |
versionProperty
The name of the property in which to store the version of Maven.
|
| Constructor and Description |
|---|
MavenVersionMojo() |
| Modifier and Type | Method and Description |
|---|---|
void |
execute()
Main plugin execution
|
defineProperty, getProject@Component private org.apache.maven.execution.RuntimeInformation runtime
@Parameter(defaultValue="maven.version") private java.lang.String versionProperty