maven-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Gajo Csaba <csaba.g...@cosylab.com>
Subject Re: Maven plugin version number
Date Wed, 18 Nov 2009 09:48:48 GMT
Good idea, I did that approach and it works great!


Anders Hammar wrote:
> I would go the normal Java way. Store the version in the manifest and then
> use the java.lang.Package object, like this:
> clazz.getPackage().getImplementationVersion()
>
> There are loads of discussion about this on the net. Here's one:
> http://forums.sun.com/thread.jspa?threadID=642761
>
> /Anders
>
> 2009/11/18 Gajo Csaba <csaba.gajo@cosylab.com>
>
>   
>> Hello,
>>
>> I'm writing a plugin which is generating certain files, and I would like to
>> add something like a "Generated by xxx version 1.2.3" string to each file it
>> generates. The problem is, how can the plugin know its own version (without
>> hardcoding it)?
>>
>> Regards, Csaba
>>
>>
>> ---------------------------------------------------------------------
>> To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
>> For additional commands, e-mail: users-help@maven.apache.org
>>
>>
>>     
>
>   


---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
For additional commands, e-mail: users-help@maven.apache.org


Mime
View raw message