Hey all,

A question on life cycle participants - it would seem that they don't appear to 
be enabled when called from a child module/reactor build.

I just added the invoker-plugin to the `tiles-maven-plugin` to add some real 
usage cases/tests [1] and it seems that when the child module is run from the 
reactor, the tile lifecycle is never used, but if called via `-pl child` ( 
essentially making it a top level project in the build ) then it is, I'd pasted 
logs of the two runs to [2].

The lifecycle is declared as:

    <component>
      <role>org.apache.maven.AbstractMavenLifecycleParticipant</role>
      <role-hint>TilesMavenLifecycleParticipant</role-hint>
      
<implementation>io.repaint.maven.tiles.TilesMavenLifecycleParticipant</implementation>
      <isolated-realm>false</isolated-realm>
      <requirements>
        <requirement>
          <role>org.codehaus.plexus.logging.Logger</role>
          <role-hint>default</role-hint>
          <field-name>logger</field-name>
        </requirement>
      </requirements>
    </component>

in my the `META-INF/plexus/components.xml` file, does it need some other 
configuration to work on children, or is this just something that's 
broken/unsupported in Maven ( tested against 3.3.1 ).

Mark

[1] https://review.gerrithub.io/#/c/221829/1
[2] https://gist.github.com/talios/1396df5f46a607bd2fb2

-- 
Mark Derricutt
http://www.theoryinpractice.net
http://www.chaliceofblood.net
http://plus.google.com/+MarkDerricutt
http://twitter.com/talios
http://facebook.com/mderricutt

Attachment: signature.asc
Description: OpenPGP digital signature

Reply via email to