Hi Roland, Hmm.. I guess you could let the dependencies get resolved transitively, and then parse the pom.xml yourself to get a more restrictive list of dependencies. Dependency details could have been defined at a parent level, so enrich the data in your parsed list with the information that is available in the artifact collector, and you're there.
The maven project reader that is available won't do you any good either, because it also resolves the parent poms. Cheers Jo On 6/4/07, Roland Asmann <[EMAIL PROTECTED]> wrote:
Hi all, I'm writing a plugin here and want to figure out how to get hold of the dependencies as defined in the POM for my plugin. I'm currently using the ArtifactCollector, but it resolves transitive dependencies as well... I only want to have the dependencies that are DIRECTLY defined inside the POM-file. Any hints on how to do this? -- Roland Asmann CFC Informationssysteme Entwicklungsgesellschaft m.b.H Bäckerstrasse 1/2/7 A-1010 Wien FN 266155f, Handelsgericht Wien Tel.: +43/1/513 88 77 - 27 Fax.: +43/1/513 88 62 Email: [EMAIL PROTECTED] Web: www.cfc.at --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
