Yep, it's just dependency injection magic, nothing in the plugin code will show you what happens...but the good news is you don't care if you're using the tree component. Just do the same as the dependency plugin.
-----Original Message----- From: Simone Gianni [mailto:[EMAIL PROTECTED] Sent: Sunday, September 28, 2008 1:34 PM To: Maven Developers List Subject: Re: can anybody familiar with dependency plugin help me out? 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]
