But I see we should probably move to use the PluginDescriptor .. hahahah
Manfred Moser wrote on 01.12.2014 15:58:
> 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/ja
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
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
/**
* 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()
On 1 December 201
Thomas Scheffler 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.
Read it from the manifest
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
--