Re: Maven Plugin Refelction

2014-12-01 Thread Manfred Moser
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

Re: Maven Plugin Refelction

2014-12-01 Thread Manfred Moser
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

Re: Maven Plugin Refelction

2014-12-01 Thread Thomas Scheffler
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

Re: Maven Plugin Refelction

2014-12-01 Thread 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() On 1 December 201

Re: Maven Plugin Refelction

2014-12-01 Thread Jörg Schaible
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

Maven Plugin Refelction

2014-11-30 Thread Thomas Scheffler
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 --