You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@maven.apache.org by je...@accenture.com on 2007/01/23 13:00:10 UTC

requiresProject plugin setting

Hi,

 

I'm writing a plugin to prepare my build phase.

I want to execute it from a top level directory.

So I already figures out I need to set the requiresProject tag in
plugin.xml to false.

But now my question .. how can I do this?

Can't find the answer on google or the maven site.

 

Kind regards.

 

Jelle



This message is for the designated recipient only and may contain privileged, proprietary, or otherwise private information.  If you have received it in error, please notify the sender immediately and delete the original.  Any other use of the email by you is prohibited.

Re: requiresProject plugin setting

Posted by allan ramirez <aq...@gmail.com>.
Hi Jelle,

Add @requiresProject annotation in your mojo

/**
 * @requiresProject false
 */
public class MyMojo
{
}


Please look on the deploy file mojo for your reference
http://svn.apache.org/viewvc/maven/plugins/trunk/maven-deploy-plugin/src/main/java/org/apache/maven/plugin/deploy/DeployFileMojo.java?revision=490414&view=markup

Cheers,
-allan


On 1/23/07, jelle.volckaert@accenture.com <je...@accenture.com>
wrote:
>
> Hi,
>
>
>
> I'm writing a plugin to prepare my build phase.
>
> I want to execute it from a top level directory.
>
> So I already figures out I need to set the requiresProject tag in
> plugin.xml to false.
>
> But now my question .. how can I do this?
>
> Can't find the answer on google or the maven site.
>
>
>
> Kind regards.
>
>
>
> Jelle
>
>
>
> This message is for the designated recipient only and may contain
> privileged, proprietary, or otherwise private information.  If you have
> received it in error, please notify the sender immediately and delete the
> original.  Any other use of the email by you is prohibited.
>
>


-- 
==========================================================
- alramirez