You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@maven.apache.org by Michael Hale <mi...@gmail.com> on 2006/05/18 23:30:31 UTC
java plugin that finds all modules dependencies
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.
Thanks in advance.
- Michael
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
For additional commands, e-mail: users-help@maven.apache.org
Re: java plugin that finds all modules dependencies
Posted by Dennis Lundberg <de...@apache.org>.
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: users-unsubscribe@maven.apache.org
For additional commands, e-mail: users-help@maven.apache.org