Return-Path: X-Original-To: apmail-maven-dev-archive@www.apache.org Delivered-To: apmail-maven-dev-archive@www.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id 755DE11DBB for ; Sun, 21 Sep 2014 16:14:40 +0000 (UTC) Received: (qmail 19761 invoked by uid 500); 21 Sep 2014 16:14:40 -0000 Delivered-To: apmail-maven-dev-archive@maven.apache.org Received: (qmail 19657 invoked by uid 500); 21 Sep 2014 16:14:40 -0000 Mailing-List: contact dev-help@maven.apache.org; run by ezmlm Precedence: bulk List-Unsubscribe: List-Help: List-Post: List-Id: "Maven Developers List" Reply-To: "Maven Developers List" Delivered-To: mailing list dev@maven.apache.org Received: (qmail 19641 invoked by uid 99); 21 Sep 2014 16:14:39 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Sun, 21 Sep 2014 16:14:39 +0000 X-ASF-Spam-Status: No, hits=0.7 required=5.0 tests=RCVD_IN_DNSWL_NONE,SPF_NEUTRAL X-Spam-Check-By: apache.org Received-SPF: neutral (athena.apache.org: local policy) Received: from [194.158.98.45] (HELO mail-3y.bbox.fr) (194.158.98.45) by apache.org (qpsmtpd/0.29) with ESMTP; Sun, 21 Sep 2014 16:14:35 +0000 Received: from herve-desktop.localnet (static-176-183-252-218.ncc.abo.bbox.fr [176.183.252.218]) by mail-3y.bbox.fr (Postfix) with ESMTP id 58FAE7B for ; Sun, 21 Sep 2014 18:14:14 +0200 (CEST) From: =?ISO-8859-1?Q?Herv=E9?= BOUTEMY To: Maven Developers List Subject: Re: Problem while getting injected parameters from plugin configuration. Date: Sun, 21 Sep 2014 18:14:14 +0200 Message-ID: <1615990.Rl5ZdTg6im@herve-desktop> User-Agent: KMail/4.13.3 (Linux/3.13.0-35-generic; KDE/4.13.3; x86_64; ; ) In-Reply-To: <1411308889659-5805910.post@n5.nabble.com> References: <1411295337461-5805894.post@n5.nabble.com> <541ED501.6000608@gmx.de> <1411308889659-5805910.post@n5.nabble.com> MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset="iso-8859-1" X-Virus-Checked: Checked by ClamAV on apache.org hte attribute "without property" seems to be expected to be a Plexus=20= component, but you didn't declare it: 1. in ClojureExecutorImpl, you should use Plexus @Component annotation = like=20 http://maven.apache.org/plugins-archives/maven-checkstyle-plugin-LATEST= /xref/org/apache/maven/plugin/checkstyle/exec/DefaultCheckstyleExecutor= .html 2. then inject the component into your plugin using plugin-tools @Compo= nent=20 like http://maven.apache.org/plugins-archives/maven-checkstyle-plugin-L= ATEST/xref/org/apache/maven/plugin/checkstyle/AbstractCheckstyleReport.= html#L439 notice these 2 @Component annotations are not the same ones: we should = have=20 named them differently... the first one marks a class as a Plexus component: http://plexus.codehaus.org/plexus-containers/plexus-component-annotatio= ns/ the second one injects a Plexus component into a Mojo: http://maven.apache.org/plugin-tools/maven-plugin-tools-annotations/ind= ex.html HTH Regards, Herv=E9 Le dimanche 21 septembre 2014 07:14:49 animator a =E9crit : > Yes, of course, >=20 > plugin: https://github.com/lgadawski/cloverage-maven-plugin , > test project: https://github.com/lgadawski/test-polyglot-project >=20 > Mojo class: > https://github.com/lgadawski/cloverage-maven-plugin/blob/master/src/m= ain/jav > a/com/gadawski/maven/plugins/cloverage/goals/InstrumentMojo.java I de= clared > there 4 parameter, those declared with property attirubutes work fine= , but > those without, that reffers to configuration don't. >=20 >=20 >=20 > -- > View this message in context: > http://maven.40175.n5.nabble.com/Problem-while-getting-injected-param= eters-> from-plugin-configuration-tp5805894p5805910.html Sent from the = Maven > Developers mailing list archive at Nabble.com. >=20 > ---------------------------------------------------------------------= > To unsubscribe, e-mail: dev-unsubscribe@maven.apache.org > For additional commands, e-mail: dev-help@maven.apache.org --------------------------------------------------------------------- To unsubscribe, e-mail: dev-unsubscribe@maven.apache.org For additional commands, e-mail: dev-help@maven.apache.org