You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@qpid.apache.org by Carl Trieloff <cc...@redhat.com> on 2006/12/04 22:50:42 UTC

maven goals?

How do I get maven to print the current list of goals?

Carl.

Re: maven goals?

Posted by Bhupendra Bhardwaj <bh...@gmail.com>.
Hi,

I was going through the maven user list for something and saw a thread there
for similar question.

http://www.mail-archive.com/users@maven.apache.org/msg57085.html

Regards,
Bhupendra


On 12/4/06, Daniel Kulp <da...@iona.com> wrote:
>
> On Monday 04 December 2006 16:50, Carl Trieloff wrote:
> > How do I get maven to print the current list of goals?
> >
> > Carl.
>
> In maven, there aren't defined goals.     There are two types of targets
> you
> can invoke:
>
> 1) A lifecycle phase (install, compile, etc... are all lifecycle phases).
> There is a list of lifecycles phases at:
>
> http://maven.apache.org/guides/introduction/introduction-to-the-lifecycle.html
>
> 2) A plugin not bound into a phase.   Example:   mvn eclipse:eclipse is
> the
> eclipse goal of the eclipse plugin.   There isn't a list of plugin goals
> as
> the list is infinite.   You can literally call any plugin at any time
> without
> touching the poms.    For example, the qpid poms have no mention of
> cobertura
> (code coverage plugin).   However, you can go into any of the qpid
> directories and run "mvn cobertura:cobertura" to get code coverage
> metrics.
> Since anyone can create new plugins at any time, there isn't an exhaustive
> list.    Plugins can be bound to a phase to force it to run every time,
> but
> you would still invoke via a phase.
>
>
> That is the nice think about maven (compared to something like ant).   ALL
> maven builds are pretty much the same.   They ALL have the same lifecycle
> phases.  Plugins created to do something cool should be able to work with
> ALL
> maven builds without them having to modify their poms.
>
> --
> J. Daniel Kulp
> Principal Engineer
> IONA
> P: 781-902-8727    C: 508-380-7194
> daniel.kulp@iona.com
>

Re: maven goals?

Posted by Daniel Kulp <da...@iona.com>.
On Monday 04 December 2006 16:50, Carl Trieloff wrote:
> How do I get maven to print the current list of goals?
>
> Carl.

In maven, there aren't defined goals.     There are two types of targets you 
can invoke:

1) A lifecycle phase (install, compile, etc... are all lifecycle phases).   
There is a list of lifecycles phases at:
http://maven.apache.org/guides/introduction/introduction-to-the-lifecycle.html

2) A plugin not bound into a phase.   Example:   mvn eclipse:eclipse is the 
eclipse goal of the eclipse plugin.   There isn't a list of plugin goals as 
the list is infinite.   You can literally call any plugin at any time without 
touching the poms.    For example, the qpid poms have no mention of cobertura 
(code coverage plugin).   However, you can go into any of the qpid 
directories and run "mvn cobertura:cobertura" to get code coverage metrics.   
Since anyone can create new plugins at any time, there isn't an exhaustive 
list.    Plugins can be bound to a phase to force it to run every time, but 
you would still invoke via a phase.


That is the nice think about maven (compared to something like ant).   ALL 
maven builds are pretty much the same.   They ALL have the same lifecycle 
phases.  Plugins created to do something cool should be able to work with ALL 
maven builds without them having to modify their poms.   

-- 
J. Daniel Kulp
Principal Engineer
IONA
P: 781-902-8727    C: 508-380-7194
daniel.kulp@iona.com