maven-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Stephen Connolly <stephen.alan.conno...@gmail.com>
Subject Re: Maven Plugin Refelction
Date Mon, 01 Dec 2014 11:11:49 GMT
    /**
     * 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 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.
>
> kind regards,
>
> Thomas
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
> For additional commands, e-mail: users-help@maven.apache.org
>
>

Mime
  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message