Thanks!

That is exactly what I am trying to achieve.  I did a quick
implementation and it works great.


Ruel Loehr
JBoss QA
 
-----Original Message-----
From: Brett Porter [mailto:[EMAIL PROTECTED] 
Sent: Wednesday, February 15, 2006 3:51 PM
To: Maven Users List
Subject: Re: getting information from a dependencies pom.xml

Hi Ruel,

An example you might look at is the DependenciesReport in
maven-project-info-reports-plugin.

You shouldn't need to manually resolve the artifact as long as you are
requiring that the project already resolve its dependencies - the
steps you need for each dependency is:
- create an artifact of type pom to match the dependency
- use the project builder to create a mavenproject to inspect

HTH,
Brett

On 2/16/06, Ruel Loehr <[EMAIL PROTECTED]> wrote:
> Each thirdparty dependency has a pom file which has the potential to
> hold a wealth of information (e.g. license-info).
>
>
>
> I'm working on a custom plugin which would traverse the dependency
graph
> and validate that each dependency's pom.xml has a license defined.
> However, I've hit a wall when it comes to accessing the info in the
pom
> of the dependency.
>
>
>
> //for each dependency in the dependency management section
>
>       //get the dependency
>
>       //resolve it
>
>       //get the artifact
>
>
>
>      The question is how can I access the information that is
contained
> in the pom of a dependency?   I have not found any methods on
> dependency, or artifact, that allow me to access it's project model.
>
>
>
>
>
>
>
> Ruel Loehr
>
> JBoss QA
>
>
>
> -----------------------------
>
> 512-342-7840 ext 2011
>
> Yahoo: ruelloehr
>
> Skype: ruelloehr
>
> AOL: dokoruel
>
>
>
>
>

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to