maven-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Thomas Scheffler <thomas.scheff...@uni-jena.de>
Subject Re: Maven Plugin Refelction
Date Mon, 01 Dec 2014 11:16:37 GMT
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 <thomas.scheffler@uni-jena.de>
> 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: users-unsubscribe@maven.apache.org
For additional commands, e-mail: users-help@maven.apache.org


Mime
View raw message