Re: Problem while getting injected parameters from plugin configuration.

2014-09-23 Thread animator
Thank You @Stuart McCulloch (and others that helped me in this topic)! Your explanation is very valuable and resolved my problems :) Regards, animator. -- View this message in context: http://maven.40175.n5.nabble.com/Problem-while-getting-injected-parameters-from-plugin-configuration-tp580589

Re: Problem while getting injected parameters from plugin configuration.

2014-09-22 Thread Stuart McCulloch
On 22 Sep 2014, at 23:34, animator wrote: > The main problem from the topic finally I managed to resolve. The problem was > wrong configuration in test-polyglot-project, the groupId of declared plugin > in pom was wrong and when the goal was executed it was used plugin from > local repository and

Re: Problem while getting injected parameters from plugin configuration.

2014-09-22 Thread Igor Fedorenko
You need to use org.apache.maven.plugins.annotations.Component annotation inside maven plugins, I don't believe plexus @Requirement works. -- Regards, Igor On 2014-09-22, 18:34, animator wrote: The main problem from the topic finally I managed to resolve. The problem was wrong configuration in

Re: Problem while getting injected parameters from plugin configuration.

2014-09-22 Thread animator
The main problem from the topic finally I managed to resolve. The problem was wrong configuration in test-polyglot-project, the groupId of declared plugin in pom was wrong and when the goal was executed it was used plugin from local repository and any configuration from pom was omitted.. Anyway tha

Re: Problem while getting injected parameters from plugin configuration.

2014-09-22 Thread Stuart McCulloch
On 21 Sep 2014, at 22:54, animator wrote: > Thanks for answers! > > I removed reporting section and unfortunately it doesn't work.. (*1)(btw. > before that I added reporting api and declared InstrumentMojo extends > AbstractMavenReport but this doesn't work too). > > I suppose may be there is

Re: Problem while getting injected parameters from plugin configuration.

2014-09-21 Thread animator
Thanks for answers! I removed reporting section and unfortunately it doesn't work.. (*1)(btw. before that I added reporting api and declared InstrumentMojo extends AbstractMavenReport but this doesn't work too). I suppose may be there is problem with plexus, because when I added Component annot

Re: Problem while getting injected parameters from plugin configuration.

2014-09-21 Thread Hervé BOUTEMY
no, there is absolutely nothing related to reporting plugins: reporting plugins are exactly like plugins I didn't see test-polyglot-project, I just had a reaction when looking at the mojo source when I look at test-polyglot-project, I see another problem: why is it reclared in reporting secti

Re: Problem while getting injected parameters from plugin configuration.

2014-09-21 Thread Igor Fedorenko
On 2014-09-21, 12:14, Hervé BOUTEMY wrote: hte attribute "without property" seems to be expected to be a Plexus component, but you didn't declare it: Is this specific to reporting plugins? I believe regular plugins can have @Parameter's without properties and/or default values. -- Regards, Igo

Re: Problem while getting injected parameters from plugin configuration.

2014-09-21 Thread Hervé BOUTEMY
hte attribute "without property" seems to be expected to be a Plexus component, but you didn't declare it: 1. in ClojureExecutorImpl, you should use Plexus @Component annotation like http://maven.apache.org/plugins-archives/maven-checkstyle-plugin-LATEST/xref/org/apache/maven/plugin/checkstyle/e

Re: Problem while getting injected parameters from plugin configuration.

2014-09-21 Thread animator
Yes, of course, plugin: https://github.com/lgadawski/cloverage-maven-plugin , test project: https://github.com/lgadawski/test-polyglot-project Mojo class: https://github.com/lgadawski/cloverage-maven-plugin/blob/master/src/main/java/com/gadawski/maven/plugins/cloverage/goals/InstrumentMojo.java

Re: Problem while getting injected parameters from plugin configuration.

2014-09-21 Thread Karl Heinz Marbaise
Hi, can you please show the full pom file of your plugin project ? Is this project somewhere available on Github or so ? So we can take a look at it... Kind regards Karl-Heinz Marbaise On 9/21/14 12:28 PM, animator wrote: Hi, I'm developing custom reporting plugin for my own needs. I use