I am looking for a little help with the Maven API.

If I have the file path to a pom.xml file that is the top level pom in a 
multi-module project, how do I (using the Maven API) load that top level 
pom and also recurse down to the sub-module poms and come up with a list 
of all of the SNAPSHOT dependencies - preferably I would like to get both 
regular dependencies and also plugin dependencies.

Looking at the API, I think I can use the MavenEmbedder object to do a lot 
of this, but I can't quite get all the pieces together - particular how to 
discover if a pom has sub-modules and how to navigate to them.

Any help is greatly appreciated.

Cheers

------------------------------------------------------------------------------
Craig Dickson
Software Engineering Manager
Behr Process Corporation
Santa Ana, California

Reply via email to