You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@maven.apache.org by Marcos Mendez <ma...@jitisoft.com> on 2013/01/08 11:42:06 UTC

updating plugin configuration

Is it possible to alter a plugin's configuration before it executes? I'm writing a plugin that checks the build plugins for the current maven project and updates their Xpp3Dom configuration (plugin.setConfiguration).
The new configuration seems to be correct, but it is not used.

For example, I'm adding some manifest entries to the bundle plugin. My plugin is running in the initialize phase.

Anything I could be missing or something else I need to do?
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
For additional commands, e-mail: users-help@maven.apache.org


Re: updating plugin configuration

Posted by Marcos Mendez <ma...@jitisoft.com>.
Thank you!!!!! I think this is exactly what I was looking for!

On Jan 8, 2013, at 10:56 AM, Tamás Cservenák wrote:

> Hi,
> 
> this is a maven3-only solution, but take a peek here
> https://github.com/sonatype/nexus-maven-plugins/blob/master/nexus-staging-maven-plugin/src/main/java/org/sonatype/nexus/maven/staging/deploy/DeployLifecycleParticipant.java
> 
> But, a word of warning: whatever you do this way, might be seen as "semi
> illegal". Or in other words, a quote: "With great power comes great
> responsibility.". So, be warned!
> 
> 
> Thanks,
> ~t~
> 
> 
> On Tue, Jan 8, 2013 at 4:43 PM, Marcos Mendez <ma...@jitisoft.com> wrote:
> 
>> I've checked the plugin configuration I'm modifying and it seems to be ok.
>> I've even modified the plugin configuration in the current project and
>> execution project. Still not working. I don't want to have to execute the
>> plugin mojo directly. I want the build system to do it.
>> 
>> I just want to dynamically tweak a plugin's configuration with another
>> plugin... or perhaps there's something else I need to write? Any ideas?
>> 
>> 
>> On Jan 8, 2013, at 5:42 AM, Marcos Mendez wrote:
>> 
>>> Is it possible to alter a plugin's configuration before it executes? I'm
>> writing a plugin that checks the build plugins for the current maven
>> project and updates their Xpp3Dom configuration (plugin.setConfiguration).
>>> The new configuration seems to be correct, but it is not used.
>>> 
>>> For example, I'm adding some manifest entries to the bundle plugin. My
>> plugin is running in the initialize phase.
>>> 
>>> Anything I could be missing or something else I need to do?
>> 
>> 
>> ---------------------------------------------------------------------
>> To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
>> For additional commands, e-mail: users-help@maven.apache.org
>> 
>> 


---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
For additional commands, e-mail: users-help@maven.apache.org


Re: updating plugin configuration

Posted by Tamás Cservenák <ta...@cservenak.net>.
Hi,

this is a maven3-only solution, but take a peek here
https://github.com/sonatype/nexus-maven-plugins/blob/master/nexus-staging-maven-plugin/src/main/java/org/sonatype/nexus/maven/staging/deploy/DeployLifecycleParticipant.java

But, a word of warning: whatever you do this way, might be seen as "semi
illegal". Or in other words, a quote: "With great power comes great
responsibility.". So, be warned!


Thanks,
~t~


On Tue, Jan 8, 2013 at 4:43 PM, Marcos Mendez <ma...@jitisoft.com> wrote:

> I've checked the plugin configuration I'm modifying and it seems to be ok.
> I've even modified the plugin configuration in the current project and
> execution project. Still not working. I don't want to have to execute the
> plugin mojo directly. I want the build system to do it.
>
> I just want to dynamically tweak a plugin's configuration with another
> plugin... or perhaps there's something else I need to write? Any ideas?
>
>
> On Jan 8, 2013, at 5:42 AM, Marcos Mendez wrote:
>
> > Is it possible to alter a plugin's configuration before it executes? I'm
> writing a plugin that checks the build plugins for the current maven
> project and updates their Xpp3Dom configuration (plugin.setConfiguration).
> > The new configuration seems to be correct, but it is not used.
> >
> > For example, I'm adding some manifest entries to the bundle plugin. My
> plugin is running in the initialize phase.
> >
> > Anything I could be missing or something else I need to do?
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
> For additional commands, e-mail: users-help@maven.apache.org
>
>

RE: updating plugin configuration

Posted by Martin Gainty <mg...@hotmail.com>.
                    <groupId>org.apache.maven.plugins</groupId>
                    <artifactId>maven-plugin-plugin</artifactId>
                    <version>${maven-plugin-plugin.version}</version>
                    <configuration>
                     <skipDescriptor>false</skipDescriptor>
                    </configuration>
Saludos Cordiales desde EEUU
Martín 
______________________________________________ 
Por favor no altere ni interrumpir este communicacion...Gracias

 > Subject: Re: updating plugin configuration
> From: marcos@jitisoft.com
> Date: Tue, 8 Jan 2013 10:43:55 -0500
> To: users@maven.apache.org
> 
> I've checked the plugin configuration I'm modifying and it seems to be ok. I've even modified the plugin configuration in the current project and execution project. Still not working. I don't want to have to execute the plugin mojo directly. I want the build system to do it.
> 
> I just want to dynamically tweak a plugin's configuration with another plugin... or perhaps there's something else I need to write? Any ideas? 
> 
> 
> On Jan 8, 2013, at 5:42 AM, Marcos Mendez wrote:
> 
> > Is it possible to alter a plugin's configuration before it executes? I'm writing a plugin that checks the build plugins for the current maven project and updates their Xpp3Dom configuration (plugin.setConfiguration).
> > The new configuration seems to be correct, but it is not used.
> > 
> > For example, I'm adding some manifest entries to the bundle plugin. My plugin is running in the initialize phase.
> > 
> > Anything I could be missing or something else I need to do?
> 
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
> For additional commands, e-mail: users-help@maven.apache.org
> 
 		 	   		  

Re: updating plugin configuration

Posted by Marcos Mendez <ma...@jitisoft.com>.
I've checked the plugin configuration I'm modifying and it seems to be ok. I've even modified the plugin configuration in the current project and execution project. Still not working. I don't want to have to execute the plugin mojo directly. I want the build system to do it.

I just want to dynamically tweak a plugin's configuration with another plugin... or perhaps there's something else I need to write? Any ideas? 


On Jan 8, 2013, at 5:42 AM, Marcos Mendez wrote:

> Is it possible to alter a plugin's configuration before it executes? I'm writing a plugin that checks the build plugins for the current maven project and updates their Xpp3Dom configuration (plugin.setConfiguration).
> The new configuration seems to be correct, but it is not used.
> 
> For example, I'm adding some manifest entries to the bundle plugin. My plugin is running in the initialize phase.
> 
> Anything I could be missing or something else I need to do?


---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
For additional commands, e-mail: users-help@maven.apache.org