You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@maven.apache.org by CassUser CassUser <ca...@gmail.com> on 2011/01/16 20:08:40 UTC

dependency management multi-module

Hey all,

I have a parent module with dependencies listed under the
dependencymanagement section.  I now have two modules under this parent,
which are both pom packaging maven projects.

both the sub parent projects have common dependencies along with some
specific.  If i put a dependencymanagement section under each of the sub
parents, then the modules under each isn't able to import those specific
dependencies.  Is there any way to do this elegantly, or do i have to put
all dependencies in the parent (which is not the end of the world).

Thanks.

Re: dependency management multi-module

Posted by CassUser CassUser <ca...@gmail.com>.
Nevermind, what i described does in fact work :)  The error was I receiving
was unrelated to having dependencymanagement in the two pom projects.

On Sun, Jan 16, 2011 at 11:08 AM, CassUser CassUser <ca...@gmail.com>wrote:

> Hey all,
>
> I have a parent module with dependencies listed under the
> dependencymanagement section.  I now have two modules under this parent,
> which are both pom packaging maven projects.
>
> both the sub parent projects have common dependencies along with some
> specific.  If i put a dependencymanagement section under each of the sub
> parents, then the modules under each isn't able to import those specific
> dependencies.  Is there any way to do this elegantly, or do i have to put
> all dependencies in the parent (which is not the end of the world).
>
> Thanks.
>