I'm new to Maven so take this with a grain of salt, but I don't see why you
can't just do:
...snip...
modules
modulemodule1/module
modulemodule2/module
moduleclient1/module
moduleclient2/module
/modules
...snip...
From: Markus Jostock markus.jost...@softwareag.com
To: Maven Users List users@maven.apache.org
Sent: Thursday, June 11, 2009 8:17:01 AM
Subject: dependency management in sub-sub-module
Dear all
I have module structure with two levels of sub-modules.
The root level pom defines a dependency managment section which is working fine
for sub-modules. But for a deeper level, the dependency management section of
the root pom apparently is not available any more ...
root
+- module1 -- working fine
+- module2 -- working fine
+- clients
+- client1 -- compile errors ...
+- client2 -- compile errors ...
During build, the system does not complain about unsatisfied dependencies, but
in the compile phase the compiler cannot find the symbols.
Would anyone have an idea what I could be doing wrong here? Any advice would
be gratefully appreciated ...
Many, many thanks!
Markus
root-pom:
===
project
modelVersion4.0.0/modelVersion
groupIdmy.groupid/groupId
artifactIdroot/artifactId
packagingpom/packaging
version1.0-SNAPSHOT/version
nameMy Project/name
modules
modulemodule1/module
modulemodule2/module
moduleclients/module
/modules
dependencyManagement
dependency
groupIdcommons-beanutils/groupId
artifactIdcommons-beanutils/artifactId
version1.8.0/version
scopecompile/scope
/dependency
...
/dependencyManagement
/project
clients-pom:
project
modelVersion4.0.0/modelVersion
parent
artifactIdroot/artifactId
groupIdmy.groupid/groupId
version1.0-SNAPSHOT/version
/parent
artifactIdclients/artifactId
nameMy Clients/name
packagingpom/packaging
modules
moduleclient1/module
moduleclient2/module
/modules
/project
client1-pom:
project
modelVersion4.0.0/modelVersion
parent
artifactIdclients/artifactId
groupIdmy.groupId/groupId
version1.0-SNAPSHOT/version
/parent
artifactIdclient1/artifactId
nameMy Client 1/name
dependencies
dependency
groupIdcommons-beanutils/groupId
artifactIdcommons-beanutils/artifactId
scopecompile/scope
/dependency
...
/dependencies
/project
-
To unsubscribe, e-mail: users-unsubscr...@maven.apache.org
For additional commands, e-mail: users-h...@maven.apache.org