qpid-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Daniel Kulp <daniel.k...@iona.com>
Subject Re: maven goals?
Date Mon, 04 Dec 2006 22:11:52 GMT
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

Mime
View raw message