You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@maven.apache.org by Gajo Csaba <cs...@cosylab.com> on 2009/11/25 10:15:34 UTC
Replace the deploy phase with my own plugin
Hello,
I was looking at components.xml of the rpm plugin, and see that it uses
Maven's standard deploy plugin for the deploy phase. Is there a way to
replace that phase in the pom.xml with a plugin of my own, without
modifying components.xml, or I have to change the plugin itself?
Regards, Csaba
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
For additional commands, e-mail: users-help@maven.apache.org
Re: Replace the deploy phase with my own plugin
Posted by Anders Hammar <an...@hammar.net>.
In general, no. There is today no way of unbinding a plugin bound to a
phase. But you can always add an extra binding of your choice.
However, some plugins have a parameter that makes the plugin skip its
execution. Close to what you want to accomplish, but not as clean. For the
deploy plugin, that parameter is called 'skip':
http://maven.apache.org/plugins/maven-deploy-plugin/deploy-mojo.html#skip
So you need to add this configuration for the deploy plugin in your pom (put
it under pluginManagement/plugins/plugin/...).
/Anders
2009/11/25 Gajo Csaba <cs...@cosylab.com>
> Hello,
>
> I was looking at components.xml of the rpm plugin, and see that it uses
> Maven's standard deploy plugin for the deploy phase. Is there a way to
> replace that phase in the pom.xml with a plugin of my own, without modifying
> components.xml, or I have to change the plugin itself?
>
> Regards, Csaba
>
>
>
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
> For additional commands, e-mail: users-help@maven.apache.org
>
>