Hi 陈思淼 , I'm not sure about it (never tried to use that specific component), but since it is a component of the underlying Plexus container, simply "annotating" it with @component should trigger Plexus to inject the current instance.
You could take a look at this : http://plexus.codehaus.org/writing-components-trail/07_01_implementing_monitor_mojo.html Hope this helps, Simone 陈思淼 wrote: > Im trying to do my own dependence validator,I need to know how the > Maven dependency Tree Organized.I read the dependency:tree source code and I > don't know How This kind of code works,: > > >> /** >> >> > * The dependency tree builder to use. > > * > > * @component > > * @required > > * @readonly > > */ > > private DependencyTreeBuilder dependencyTreeBuilder; > > > how can the DependencyTreeBuilder inject to my own plugin, > can you help me out? > thank you very much! > > -- 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]
