Alan Kent wrote:
Q: Is there any way to make "mvn eclipse:elipse" generate a .project
file for the root directory as well as each module? That way I can
check out the whole project tree from the root and have a project per
pom file.
Not that I know of, but this works for me:
1. Check out the parent module into your workspace.
2. "mvn eclipse:eclipse" to create the various .project and .classpath
files in the sub-modules.
3. Switch to the Java perspective in Eclipse.
4. Select the parent module and hit F5 to refresh (just for grins).
5. Choose "File->Import...", "Existing Projects into Workspace", and
browse in your workspace into your parent module.
6. Select one of the sub-modules, make sure "Copy projects into
workspace" is /not/ checked, and hit "Finish".
7. Lather, rinse, and repeat steps 5 and 6 with the other submodules.
In this way, you can do all of your SCM in Eclipse via the parent
module, yet play with the submodules as proper Java projects.
As far as I know, this is the "recommended" way to develop a
multi-module project with Eclipse. Someone please correct me if I'm wrong.
--
-Greg
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]