You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@maven.apache.org by Paul Copeland <te...@jotobjects.com> on 2007/07/01 21:40:08 UTC
How to discover lifecycles and phases
Is there a difinitive list of built-in m2 lifecycles? Does lifecycle ==
packaging type? Also is there a way to discover the phases that a given
lifecycle processes?
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
For additional commands, e-mail: users-help@maven.apache.org
Re: How to discover lifecycles and phases
Posted by Paul Copeland <te...@jotobjects.com>.
Thanks that is helpful. You are correct that <packaging> determines
which goals are bound by the default lifecycle. Apparently there are
three lifecycles - default, clean and site - it is not clear if there is
a command to discover the phases of a lifecycle or if there are other
lifecycles.
On 7/1/2007 4:04 PM, Wendy Smoak wrote:
> On 7/1/07, Paul Copeland <te...@jotobjects.com> wrote:
>> Hm - following that link (which I had seen) there is a heading named
>> "Packaging". So if you examine the pom there is a <packaging> element
>> (jar, war, pom, what are the others?) which is different from the
>> package <phase>. Apparently there is some kind of mapping between
>> packaging and lifecycle. I'm still interested in whether there is a way
>> to find out what lifecycles are available and what phases are part of
>> each lkind of ifecycle - for the pom packaging type I read there is only
>> the install and deploy phases for instance.
>
> Maybe this is what you're looking for:
> http://cvs.peopleware.be/training/maven/maven2/buildLifecyclePhases.html
>
> "Goals are, however, bound to the default build lifecycle by choosing
> a <packaging /> in the POM"
>
> I still don't think of it as a packaging -> lifecycle mapping. It's
> the default lifecycle with different goals bound to different phases
> depending on what plugins are invoked.
>
> If you come up with a good explanation of all this, please feel free
> to contribute to the wiki [1] or suggest a patch for the
> documentation. When I explain it, there's a lot of hand waving and
> scribbling on whiteboards that I haven't been able to translate to
> plain text.
>
> [1] http://docs.codehaus.org/display/MAVENUSER/Home
>
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
For additional commands, e-mail: users-help@maven.apache.org
Re: How to discover lifecycles and phases
Posted by Wendy Smoak <ws...@gmail.com>.
On 7/1/07, Paul Copeland <te...@jotobjects.com> wrote:
> Hm - following that link (which I had seen) there is a heading named
> "Packaging". So if you examine the pom there is a <packaging> element
> (jar, war, pom, what are the others?) which is different from the
> package <phase>. Apparently there is some kind of mapping between
> packaging and lifecycle. I'm still interested in whether there is a way
> to find out what lifecycles are available and what phases are part of
> each lkind of ifecycle - for the pom packaging type I read there is only
> the install and deploy phases for instance.
Maybe this is what you're looking for:
http://cvs.peopleware.be/training/maven/maven2/buildLifecyclePhases.html
"Goals are, however, bound to the default build lifecycle by choosing
a <packaging /> in the POM"
I still don't think of it as a packaging -> lifecycle mapping. It's
the default lifecycle with different goals bound to different phases
depending on what plugins are invoked.
If you come up with a good explanation of all this, please feel free
to contribute to the wiki [1] or suggest a patch for the
documentation. When I explain it, there's a lot of hand waving and
scribbling on whiteboards that I haven't been able to translate to
plain text.
[1] http://docs.codehaus.org/display/MAVENUSER/Home
--
Wendy
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
For additional commands, e-mail: users-help@maven.apache.org
Re: How to discover lifecycles and phases
Posted by Paul Copeland <te...@jotobjects.com>.
Hm - following that link (which I had seen) there is a heading named
"Packaging". So if you examine the pom there is a <packaging> element
(jar, war, pom, what are the others?) which is different from the
package <phase>. Apparently there is some kind of mapping between
packaging and lifecycle. I'm still interested in whether there is a way
to find out what lifecycles are available and what phases are part of
each lkind of ifecycle - for the pom packaging type I read there is only
the install and deploy phases for instance.
On 7/1/2007 2:31 PM, Wendy Smoak wrote:
> On 7/1/07, Paul Copeland <te...@jotobjects.com> wrote:
>> Is there a difinitive list of built-in m2 lifecycles? Does lifecycle ==
>> packaging type? Also is there a way to discover the phases that a given
>> lifecycle processes?
>
> The default lifecycle is here:
> http://maven.apache.org/guides/introduction/introduction-to-the-lifecycle.html
>
>
> Then there is the site lifecycle (phases: pre-site, site, post-site,
> site-deploy) and the clean lifecycle (phases: clean).
>
> Lifecycles have phases. Package is a phase in the default lifecycle.
> So no, a lifecycle does not map to a packaging type.
>
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
For additional commands, e-mail: users-help@maven.apache.org
Re: How to discover lifecycles and phases
Posted by Wendy Smoak <ws...@gmail.com>.
On 7/1/07, Paul Copeland <te...@jotobjects.com> wrote:
> Is there a difinitive list of built-in m2 lifecycles? Does lifecycle ==
> packaging type? Also is there a way to discover the phases that a given
> lifecycle processes?
The default lifecycle is here:
http://maven.apache.org/guides/introduction/introduction-to-the-lifecycle.html
Then there is the site lifecycle (phases: pre-site, site, post-site,
site-deploy) and the clean lifecycle (phases: clean).
Lifecycles have phases. Package is a phase in the default lifecycle.
So no, a lifecycle does not map to a packaging type.
--
Wendy
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
For additional commands, e-mail: users-help@maven.apache.org