Re: Mojo not being contextualized

2010-05-05 Thread Benjamin Bentmann
Kurt Zettel wrote: The jars were in two different groups. [...] plexus versus org.codehaus.plexus. Ah, now I got it, thanks. That's unintended and scheduled for fixing in the next release [0]. Benjamin [0] http://jira.codehaus.org/browse/MNG-4666

Re: Mojo not being contextualized

2010-05-05 Thread Kurt Zettel
The jars were in two different groups. We are using: plexus:plexus-log4j-logging:1.0 which imports an old version of the plexus-container which is in the group plexus versus org.codehaus.plexus. -- Kurt On Wed, May 5, 2010 at 2:44 PM, Benjamin Bentmann wrote: > Kurt Zettel wrote: > > I figure

Re: Mojo not being contextualized

2010-05-05 Thread Benjamin Bentmann
Kurt Zettel wrote: I figured it out. Turns out I had two different versions of plexus-container-default as Maven dependencies. This sounds strange. For one, Maven's dependency resolution ensures only a single version per groupId:artifactId:type[:classifier] is present in the dependency tree

Re: Mojo not being contextualized

2010-05-05 Thread Kurt Zettel
I figured it out. Turns out I had two different versions of plexus-container-default as Maven dependencies. This caused the instanceof check in the ContextualizePhase to return false even though my Mojo implemented Contextualizable. I corrected my pom and it is working as expected now. Thank yo

Mojo not being contextualized

2010-05-03 Thread Kurt Zettel
I have a custom plugin which implements org.codehaus.plexus.personality.plexus.lifecycle.phase.Contextualizable. It has been working fine with the older alphas (5 and 6) but with alpha-7 and beta-1 my plugin is no longer being contextualized. The method contextualize is not being called. Any th