We have a multi-module build with the following layout checked into subversion:
../myproject/trunk: // base dir, contains the following sub dirs: - myproject-parent // contains parent pom + .project - myproject-common // contains jar module 'common' pom + .project + .classpath - myproject-server // contains jar module 'server' pom + .project + .classpath - myproject-webapp // contains war module 'webapp' pom + .project + .classpath (dynamic web project) ... So we have a flat layout for the multi-module build with the maven and eclipse project files checked in. The eclipse project files are in version control, because we have some other eclipse plugins pre-configured for the projects. So what is the best way to checkout the whole project with m2eclipse and subclipse? Currently, we do the following: - checkout the whole myproject/trunk directory via SVN Repository View --> a simple eclipse project will be created automatically in the workspace - we delete this project and the generated .project from the local work dir. - then we choose 'Import existing projects into workspace', specifying the checked out base dir. --> all projects are correctly imported into workspace While this approach works, it has a big disadvantage. Suppose you also want to checkout a branch of this project this way. This will not work, because Eclipse will complain, that there are already projects with the same name in the workspace. So, when importing projects, you can't give them different names. I know m2eclipse provides the function "Checkout as Maven project", useful for checking out "pure" maven projects from version control. m2eclipse will create the eclipse project files and also provides a template for project naming. Can this function be used in our case, too? Will it override or modify our version-controlled eclipse project files? Is there another/better way to accomplish this task? Thanks, Holger -- View this message in context: http://www.nabble.com/Best-way-to-check-out-a-multi-module-maven-eclipse-project-tp20288854p20288854.html Sent from the Maven Eclipse - User mailing list archive at Nabble.com. --------------------------------------------------------------------- To unsubscribe from this list, please visit: http://xircles.codehaus.org/manage_email