Am 01.12.14 um 12:11 schrieb Stephen Connolly:
     /**
      * This plugin's descriptor
      */
     @Parameter(property = "plugin")
     private PluginDescriptor pluginDescriptor;

 From there you use
http://maven.apache.org/ref/3.2.3/maven-plugin-api/apidocs/org/apache/maven/plugin/descriptor/PluginDescriptor.html#getVersion()

Thanks Stephen,

that was exactly what I was looking for!


On 1 December 2014 at 07:35, Thomas Scheffler <[email protected]>
wrote:

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.

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

Reply via email to