Michael Hale wrote:
Hi,
I am trying to write a java plugin that can find the dependencies for
all of the modules in a pom packaged project.
The problem that I am having is I don't understand how to get a
project reference to my modules. I can write something like
"project.getArtifacts()" which gives me the artifacts for the current
project, but not my modules. Calling "project.getModules()" gives me
a list of strings and not MavenProject objects as I woud expect. If I
had gotten a list of MavenProjects then I could have called
"getArtifacts()" on each one to retrieve its dependencies.
I was hoping someone could point me in the right direction for solving
the problem of finding the dependencies for all of my modules.
Chapter 5.5.1 "Accessing Project Dependencies" in the book "Better
Builds with Maven" might be of help.
--
Dennis Lundberg
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]