Return-Path: X-Original-To: apmail-maven-users-archive@www.apache.org Delivered-To: apmail-maven-users-archive@www.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id B0C681080D for ; Mon, 1 Dec 2014 11:17:08 +0000 (UTC) Received: (qmail 44298 invoked by uid 500); 1 Dec 2014 11:17:07 -0000 Delivered-To: apmail-maven-users-archive@maven.apache.org Received: (qmail 44208 invoked by uid 500); 1 Dec 2014 11:17:07 -0000 Mailing-List: contact users-help@maven.apache.org; run by ezmlm Precedence: bulk List-Unsubscribe: List-Help: List-Post: List-Id: "Maven Users List" Reply-To: "Maven Users List" Delivered-To: mailing list users@maven.apache.org Received: (qmail 44194 invoked by uid 99); 1 Dec 2014 11:17:06 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 01 Dec 2014 11:17:06 +0000 X-ASF-Spam-Status: No, hits=-2.3 required=5.0 tests=RCVD_IN_DNSWL_MED,SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (nike.apache.org: local policy) Received: from [141.35.1.28] (HELO mailout0.rz.uni-jena.de) (141.35.1.28) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 01 Dec 2014 11:16:39 +0000 Received: from mailsmtp1.rz.uni-jena.de (mailsmtp1.rz.uni-jena.de [141.35.1.18]) by mailout0.rz.uni-jena.de (8.14.4/8.14.4) with ESMTP id sB1BGd1v001998 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-GCM-SHA384 bits=256 verify=OK) for ; Mon, 1 Dec 2014 12:16:39 +0100 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=uni-jena.de; s=dkim-2013; t=1417432599; bh=xwxTRimTG6uYkpo4v6bt/o+juQBcJkhOeYhvRK5dBxM=; h=Message-ID:Date:From:MIME-Version:To:Subject:References: In-Reply-To:Content-Type:Content-Transfer-Encoding; b=kFpCcOoCJQnEKL/qMwtBCUXvhCOmaxXKGC6tA5hitwBGDb+YUsE6gdIRb1eSVFS8q Zhwgka0YQV3EYHr1LkDmH+w5nv1EIqsKuUD1W6hAiHZdt6rXVOns2sVNEalRiqoxCm hGWsYsvHEtbNbpDKTEAXBqKWZQCjsRDD0CLpiHJBV457bqmHj3CcmQXOaa33g3xlIN P4kl9OC9q8uCLseZzll0M5NaGka8Lez86gH5q8QAB/h8Dk6c8DOGHhBkKonffQVPyM 0NF8g6cSt+r5FaWkhBEdrHdrFCNZtQUmiasTaQPExrGyymw+ZVoevrsKP9PkZbgumN Zf8bl1HaX/sGg== Received: from ulbp2731.ulb.uni-jena.de (ulbp2731.ulb.uni-jena.de [141.35.23.95]) (authenticated id=m8scth bits=0) by mailsmtp1.rz.uni-jena.de (8.14.4/8.14.4) with ESMTP id sB1BGcWh021046 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES128-SHA bits=128 verify=NO) for ; Mon, 1 Dec 2014 12:16:38 +0100 Message-ID: <547C4E15.8010003@uni-jena.de> Date: Mon, 01 Dec 2014 12:16:37 +0100 From: Thomas Scheffler Organization: =?UTF-8?B?RnJpZWRyaWNoLVNjaGlsbGVyLVVuaXZlcnNpdMOkdCBKZW5h?= User-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.10; rv:31.0) Gecko/20100101 Thunderbird/31.2.0 MIME-Version: 1.0 To: users@maven.apache.org Subject: Re: Maven Plugin Refelction References: <547C1A5F.7070709@uni-jena.de> In-Reply-To: Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: 7bit X-Virus-Checked: Checked by ClamAV on apache.org 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 > 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