or you can get your plugin build to dump the version into a resource file
and read it at mojo exec time



On Wed, May 14, 2014 at 11:19 AM, Dan Tran <[email protected]> wrote:

> Your plugin manifest has that info ( look under your jar/META-INF)
>
> -D
>
>
> On Wed, May 14, 2014 at 7:41 AM, DenisDasKind <[email protected]> wrote:
>
>> Hi,
>>
>> i'm new to maven, and now i have the following problem. I have a custom
>> Mojo, and the Mojo should print the own version stored in the pom.xml of
>> this mojo. And now i have trouble to get this version. I have tried the
>> project.version, but this is always the version of the pom, that calls my
>> Mojo. A easy way, will be when the version is hardcoded, but this is not
>> the
>> best way, becausae each time when the version is changed (release) i must
>> change it manually.
>> Is there a better way to get this version?
>>
>> Thank you in advance!
>>
>>
>>
>> --
>> View this message in context:
>> http://maven.40175.n5.nabble.com/Version-in-Mojo-tp5793054.html
>> Sent from the Maven - Users mailing list archive at Nabble.com.
>>
>> ---------------------------------------------------------------------
>> To unsubscribe, e-mail: [email protected]
>> For additional commands, e-mail: [email protected]
>>
>>
>

Reply via email to