Add this as global variable to your MOJO:
   /**
    * @parameter expression="${project}"
    * @required
    */
   private MavenProject project;


Then get your version number simply by performing:
project.getVersion();

cheers,
     Javed

On 5/24/06, G. B. <[EMAIL PROTECTED]> wrote:


Hi,

How can I, inside my class that extends AbstractMojo, print my own
version.

thanks.
Guillaume
--
View this message in context:
http://www.nabble.com/Version+of+current+Mojo-t1674737.html#a4540163
Sent from the Maven - Users forum at Nabble.com.


---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


Reply via email to