We have implemented a mechanism for this in the Android Maven Plugin .. you can 
use the same..

https://github.com/simpligility/android-maven-plugin/blob/master/src/main/java/com/jayway/maven/plugins/android/PluginInfo.java

Also check out the build setup in the pom for populating the properties 
file.... 

manfred

Thomas Scheffler wrote on 30.11.2014 23:35:

> Hi there,
> 
> I try to write a simple plugin. I want to have access to the version of 
> this plugin. As maven already knows it, I wondered, if I can get access 
> to this version string somehow without hardcoding it in properties or 
> java code.
> 
> kind regards,
> 
> Thomas
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: [email protected]
> For additional commands, e-mail: [email protected]
> 

---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to