On a single Maven 2 project with 3 modules :
- project defines the 3 modules
- web module with external jar dependencies
- module A (jar) with external jar dependencies
- module B (jar) with external jar dependencies
I defined the following dependencies (through my pom.xml files) :
- Web module depends on B
- B depends on A
When I create a Tomcat run/debug configuration for the web module, the generated web facet does not package jars correctly : module A is not packaged while module B is (correctly) copied to WEB-INF/lib. Module A + its dependencies are not copied to WEB-INF/lib.
Screenshot attached (note that there are more modules than the previous description, but does not impact)
There is the relevant issue http://jira.codehaus.org/browse/MNG-3339
You can try the workaround - installing modules into a repository preliminary.