In your mojo, you'll need:
* @requiresDependencyResolution
* @requiresProject
And then:
/**
* <i>Maven Internal</i>: Project to interact with.
*
* @parameter expression="${project}"
* @required
* @readonly
*/
private MavenProject project;
Then you can navigate around in the MavenProject object to find the
dependencies and their versions etc. I assume this is on the web
somewhere but I'm not sure where, perhaps Wiki? Or Plugin Dev Center?
Wayne
On 11/14/07, Mark Russell <[EMAIL PROTECTED]> wrote:
> I am writing an internal plugin for maven 2 for our company. One of the
> things I need to do is to get access to the dependency
> information that is configured in the pom. Is there a way to do that? I
> have done several web searches but can not come up
> with the correct string to get me an answer.
>
> Please point me to a web page that will help me.
>
> Thanks in advance :->
>
> --
> Mark Russell
> Instantiations, Inc.
> 724-368-3331 (land line)
> http://www.instantiations.com
>
>
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]