Take a look at this tutorial to get you started binding your plugin to 
user-selected phase
 
http://books.sonatype.com/mvnref-book/reference/writing-plugins-sect-plugins-lifecycle.html

Bon Chance,
Martin 
______________________________________________ 
Note de déni et de confidentialité
Ce message est confidentiel et peut être privilégié. Si vous n'êtes pas le 
destinataire prévu, nous te demandons avec bonté que pour satisfaire informez 
l'expéditeur. N'importe quelle diffusion non autorisée ou la copie de ceci est 
interdite. Ce message sert à l'information seulement et n'aura pas n'importe 
quel effet légalement obligatoire. Étant donné que les email peuvent facilement 
être sujets à la manipulation, nous ne pouvons accepter aucune responsabilité 
pour le contenu fourni.

 
> Date: Tue, 4 Jun 2013 19:57:55 +0200
> Subject: Re: Call a custom plugin from another project
> From: m...@batmat.net
> To: users@maven.apache.org
> 
> If I understand correctly, you want to be able to execute your plugin
> without having to declare it. If so then your are on the right path since
> the only way to do that is to create a custom lifecycle.
> 
> Hope this helps.
> Cheers
> 
> -- Baptiste
> Le 4 juin 2013 19:17, "alesky" <alessandro.dotta...@gmail.com> a écrit :
> 
> > ok Stephen thanks
> >
> > specifying an execution to the plugin it works
> >
> >
> >
> > but i would like to injects an execution in the packaging for the specified
> > plugin project
> > in the way that i can use the plugin in this way, and don't have to force
> > the user to specific the execution
> >
> >
> >
> > but i didn't found any documentation on-line or in the reference guide
> > regarding this point
> > or at list I'm not able to find a correct on-line document to do it
> >
> > what i i found is that in the plugin annotation there is the @execute
> > annotation,
> > but from my understand this annotation is complete different from what i
> > want to do
> >
> > @execute goal="<goal>"
> > This will execute the given goal before execution of this one. The goal
> > name
> > is specified using the prefix:goal notation.
> > @execute phase="<phase>"
> > This will fork an alternate build lifecycle up to the specified phase
> > before
> > continuing to execute the current one. If no lifecycle is specified, Maven
> > will use the lifecycle of the current build.
> > @execute lifecycle="<lifecycle>" phase="<phase>"
> > This will execute the given alternate lifecycle. A custom lifecycle can be
> > defined in META-INF/maven/lifecycles.xml.
> >
> >
> >
> >
> >
> >
> >
> >
> > --
> > View this message in context:
> > http://maven.40175.n5.nabble.com/Call-a-custom-plugin-from-another-project-tp5758214p5758242.html
> > Sent from the Maven - Users mailing list archive at Nabble.com.
> >
> > ---------------------------------------------------------------------
> > To unsubscribe, e-mail: users-unsubscr...@maven.apache.org
> > For additional commands, e-mail: users-h...@maven.apache.org
> >
> >
                                          

Reply via email to