Hi Wayne
Thanks for the answer, obviously my question wasn't clear enough: I
read that mojos are components, how do I get such a component injected
within another mojo?
"A Mojo is much more than just a goal in Maven, it is a component
managed by Plexus that can include references to other Plexus
components."
From "maven definitive guide", chapter 17.2.4. What is a Plugin?
Extract the method to a utility class/jar/artifact which you can
depend on independently of your mojos, and then call it from each
mojo. And then, yes, you'll need to declare each plugin in your pom.
Tsuy
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscr...@maven.apache.org
For additional commands, e-mail: users-h...@maven.apache.org