Martin Kalén wrote:
Normally how you guys organize your projects in eclipses if the project is a multi module project? import to eclipse individually,or import parent ,which contains multi modules as a whole?
I import the parent project and then enable multi module resolution. After this m2eclipse will arrange the source according to every child module in the project.

1) Maven > Enable Dependency Management
2) Maven > Enable Nested Modules on the parent project
You don't really have to do that unless your projects already in Eclipse workspace. Also, those options are available on Maven properties page in project properties dialog.

First of all, "File / Import... / Maven projects" wizard by default scans project hierarchy and allow you to import nested modules as separate projects. We recommend this option because it provides closes classpath resolution with Maven.

However, all Maven new project and import wizards have an expandable "Advanced" section at the bottom where you can disable creation of separate projects for nested modules.
how can i view my whole project as single project in eclipse,and each subproject has it's own classpath, output directory....
If the above is not fine grained enough for you, try the "Allow output folders for source folders" in the Java Build Path settings of your parent project and start mapping source folders of child projects to individual output directories. (Do this by expanding the source folder, selecting the output folder and clicking "Edit..")
We don't recommend doing this for Maven projects, because those settings would be overwritten once you run "Maven / Update Project Configuration" action.

 regards,
 Eugene



---------------------------------------------------------------------
To unsubscribe from this list, please visit:

   http://xircles.codehaus.org/manage_email


Reply via email to