On Tue, Dec 15, 2009 at 11:17 AM, Alan Cassar <[email protected]>wrote:
> Is it possible somehow to pull in the test transitive dependencies? > Not directly. What you can do is create another project (say, test-helper) and use that as a dependency for both projects, i.e. test-helper |- depends upon junit, easymock, other test dependencies, etc. (compile scope) project-core |- depends upon test-dependencies (test scope) project-web |- depends upon project-core:test-jar and test-dependencies (compile scope) The test-helper project could also contain any testing utility code you have. The key point to keep in mind is that even though you can attach any number of additional artifacts to a Maven project, they will all share a single POM file including the set of dependencies. HTH, Justin
