org.codehaus.mojo.buildhelper
Class MavenVersionMojo

java.lang.Object
  extended by org.apache.maven.plugin.AbstractMojo
      extended by org.codehaus.mojo.buildhelper.MavenVersionMojo
All Implemented Interfaces:
ContextEnabled, Mojo

public class MavenVersionMojo
extends AbstractMojo

Store the maven core version in a property maven.version.

Since:
1.3
Author:
pgier
Is bound to the specified phase of the standard build lifecycle:
validate
Is defined by the goal name:
maven-version

Field Summary
 
Fields inherited from interface org.apache.maven.plugin.Mojo
ROLE
 
Constructor Summary
MavenVersionMojo()
           
 
Method Summary
 void execute()
          Main plugin execution
 
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
 

Constructor Detail

MavenVersionMojo

public MavenVersionMojo()
Method Detail

execute

public void execute()
             throws MojoExecutionException
Main plugin execution

Throws:
MojoExecutionException - if the plugin execution fails.


Copyright © 2005-2011 Codehaus. All Rights Reserved.