You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@maven.apache.org by Linghua Wang <mm...@gmail.com> on 2008/12/13 10:35:59 UTC

Re: How does 'Build in life-cycle bindings' work in Maven

Correct typo.

2008/12/13 Linghua Wang <mm...@gmail.com>

> Hi,
>
> I am really puzzled about how 'Build in life-cycle bindings' works in
> Maven.
>
> For example, 'jar' packaging, the default life-cycle bindings contains nine
> phases - *process-resources,compile,process-test-resources,test-compile, test,
> package, **install, deploy*. Actually, each phases 'build-in' binds to a
> goal of plug-in. Moreover, Considering executing a goal of plug-in in Maven,
> as far as I know, we should add the specify plugin into <build> element with
> the specify execution goal(s). So I think such build-in life-cycle maybe
> were defined in the super pom.xml, then I refer to it ( https://svn.apache.org/repos/asf/maven/components/branches/maven-2.0.x/maven-project/src/main/resources/org/apache/maven/project/pom-4.0.0.xml
> )<https://svn.apache.org/repos/asf/maven/components/branches/maven-2.0.x/maven-project/src/main/resources/org/apache/maven/project/pom-4.0.0.xml>,
> however,  I have not found anything I want. Could someone shed some light on
> this? Or pull me out if I made mistake here.
>
> Thanks.
>
> Linghua.
>
>
>

Re: How does 'Build in life-cycle bindings' work in Maven

Posted by Barrie Treloar <ba...@gmail.com>.
On Sat, Dec 13, 2008 at 8:05 PM, Linghua Wang <mm...@gmail.com> wrote:
> Correct typo.
>
> 2008/12/13 Linghua Wang <mm...@gmail.com>
>
>> Hi,
>>
>> I am really puzzled about how 'Build in life-cycle bindings' works in
>> Maven.
>>
>> For example, 'jar' packaging, the default life-cycle bindings contains nine
>> phases - *process-resources,compile,process-test-resources,test-compile, test,
>> package, **install, deploy*. Actually, each phases 'build-in' binds to a
>> goal of plug-in. Moreover, Considering executing a goal of plug-in in Maven,
>> as far as I know, we should add the specify plugin into <build> element with
>> the specify execution goal(s). So I think such build-in life-cycle maybe
>> were defined in the super pom.xml, then I refer to it ( https://svn.apache.org/repos/asf/maven/components/branches/maven-2.0.x/maven-project/src/main/resources/org/apache/maven/project/pom-4.0.0.xml
>> )<https://svn.apache.org/repos/asf/maven/components/branches/maven-2.0.x/maven-project/src/main/resources/org/apache/maven/project/pom-4.0.0.xml>,
>> however,  I have not found anything I want. Could someone shed some light on
>> this? Or pull me out if I made mistake here.

Read the books http://maven.apache.org/articles.html

The pom doesnt define the lifecycles.
The pom allows you to attach additional plugins to the lifecyle.

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