You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@maven.apache.org by Simon Matic Langford <si...@pcmsgroup.com> on 2003/08/15 16:44:27 UTC

finding if a goal is available

hi,

is there anyway to find if a goal is available?

ie, I have some custom plugins, so I want to check to see if they're
installed before trying to register them.

simon

The information contained in this e-mail is intended only for the person
or
entity to which it is addressed and may contain confidential and/or
privileged material. If You are not the intended recipient of this
e-mail,
the use of this information or any disclosure, copying or distribution
is
Prohibited and may be unlawful. If you received this in error, please
contact the sender and delete the material from any computer. The views
expressed in this e-mail may not necessarily be the views of The PCMS
Group
plc and should not be taken as authority to carry out any instruction
contained.
 


Re: finding if a goal is available

Posted by Jason Dillon <ja...@planet57.com>.
Looks like you could use:

${pom.getMaven().getPluginManager().isLoaded('someplugin')}

--jason


On Saturday, August 16, 2003, at 02:53  PM, Andy Jefferson wrote:

> On Friday 15 Aug 2003 15:44, Simon Matic Langford wrote:
>> is there anyway to find if a goal is available?
>> ie, I have some custom plugins, so I want to check to see if they're
>> installed before trying to register them.
>
> Try
>
> maven -g
>
> This should list all goals (in plugin order) ... and then you can 
> search for
> the ones you expect.
>
> -- 
> Andy
>
> ---------------------------------------------------------------------
> 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: finding if a goal is available

Posted by Andy Jefferson <an...@ajsoft.net>.
On Friday 15 Aug 2003 15:44, Simon Matic Langford wrote:
> is there anyway to find if a goal is available?
> ie, I have some custom plugins, so I want to check to see if they're
> installed before trying to register them.

Try

maven -g

This should list all goals (in plugin order) ... and then you can search for 
the ones you expect.

-- 
Andy

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