Hi, I am wondering what the best way is to setup a project layout with M2 and Eclipse for multiple modules. The documentation<http://maven.apache.org/maven2/getting-started.html>recommends the following:
+- pom.xml +- my-app | +- pom.xml +- my-webapp | +- pom.xml The only way I can see this work with Eclipse is to add the entire structure to a single Eclipse project. However this is not something I'd want to do because I don't want to have a single Eclipse classpath that is exposed to my-app and my-webapp. The only way around this, that I can currently see, is to do this: +- my-master | +- pom.xml +- my-app | +- pom.xml +- my-webapp | +- pom.xml In this scenario; my-master, my-app, and my-webapp are all seperate Eclipse projects. To make this work, I need to change the master POM's modules element to the following: <modules> <module>../my-app</module> <module>../my-webapp</module> </modules> Have I missed something or is this the recommended way? Thanks! Thomas
