Hi 陈思淼,
in Avalon like IOC containers (like plexus), there are two concepts :
the role interface and the hint. Basically, you can have a
my.company.logging.Logger interface, and then in your system load more
than one class ("actor") implementing that interface (having the Logging
"role" ... in Avalon terminology) and configure each one with a
role-hint, for example "file", "console" etc.. Then, e component that
wants to log, can ask the container to obtain a Logger with role-hint
"file" if logging to a file is desired.

For LifecycleMapping is the same, you can have more than one "actor"
having the rolw LifecycleMapping, each with its hint (jar, war, pom
etc..), when Maven needs to build a project, it uses the content of the
<packaging> element as the hint to obtain the correct LifecycleMapping.
If you need to add your own lifecycle (packaging), you will define a new
hint, and then use it in the <packaging> element of your POMs.

Hope this helps,
Simone

陈思淼 wrote:
>  <component>
>       <role>org.apache.maven.lifecycle.mapping.LifecycleMapping</role>
>       <role-hint>war</role-hint>
>       
> <implementation>org.apache.maven.lifecycle.mapping.DefaultLifecycleMapping</implementation>
>
> what's the role-hint meaning? can anybody give some document ion to
> describe the components.xml?
>
>   


-- 
Simone Gianni            CEO Semeru s.r.l.           Apache Committer
MALE human being programming a computer   http://www.simonegianni.it/


---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to