Using maven 3, how to use project classpath in a plugin?
<p>I'm writing a maven 3 plugin, for which I would like to use project classpath.</p>

<p>I've tried using the approach mentionned in <a href="https://stackoverflow.com/a/2659324/15619">Add maven-build-classpath to plugin execution classpath</a>, but it seems the written component is not found by maven. (I have a <code>ComponentNotFoundException</code> at plugin execution start).</p>

<p>So, what is the "reference" way to use project classpath in a maven 3 plugin ? Or if the component way is the right one, is there any configuration step beside adding the component as <code>configurator</code> property of the <code>@Mojo</code> annotation ?</p>