IIUC, you are trying to bind a plugin execution to a phase?

Check this link

http://maven.apache.org/guides/mini/guide-configuring-plugins.html#Configuring_Build_Plugins

Basically, you need an "<execution>" tag with the configuration for the plugin and a <phase> that the plugin is bound to

so if you bind it to "package" for example, your plugin will be executed when you run "mvn package"

Alejandro Endo | Software Designer/Concepteur de logiciels


Inactive hide details for alesky ---04/06/2013 01:17:23 PM---ok Stephen thanks  specifying an execution to the plugin it worksalesky ---04/06/2013 01:17:23 PM---ok Stephen thanks  specifying an execution to the plugin it works

From: alesky <alessandro.dottavio@gmail.com>
To: users@maven.apache.org,
Date: 04/06/2013 01:17 PM
Subject: Re: Call a custom plugin from another project





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-unsubscribe@maven.apache.org
For additional commands, e-mail: users-help@maven.apache.org


DISCLAIMER: Privileged and/or Confidential information may be contained in this message. If you are not the addressee of this message, you may not copy, use or deliver this message to anyone. In such event, you should destroy the message and kindly notify the sender by reply e-mail. It is understood that opinions or conclusions that do not relate to the official business of the company are neither given nor endorsed by the company. Thank You.