javed mandary wrote:
>
> 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();
>
>
thanks but that will give me the version of the project I'm processing, not
the version of the processor(mojo that is processing the project) itself...
Guillaume
--
View this message in context:
http://www.nabble.com/Version+of+current+Mojo-t1674737.html#a4540460
Sent from the Maven - Users forum at Nabble.com.
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]