Actually, I did select the "Copy projects into Workspace" checkbox so that
may be the source of my problem.

I've been experimenting a little bit and it seems that if I create the whole
directory structure in C:\temp (c:\temp\TestApp) and then do the imports,
everything seems to work as expected.  If I go ahead and check in one of the
submodules (say testcommon), and then delete the directory from disk and
check out of the repository, the code is in my workspace as opposed to
c:\temp\TestApp.  In a team environment, this still seems pretty ugly.  It
appears that you have to jump through quite a few hoops to get this to work.

Could you explain more about how you can import the top level project into
eclipse?  I was able to see the top level pom but it also  had the sub
modules as well.

On 9/4/07, Francois Fernandes <[EMAIL PROTECTED]> wrote:
>
> One little Note about the importing of the projects: Ensure that "Copy
> projects into workspace" is deselected.
> Event the top level project can be imported into eclipse. To do this you
> generate the project files of the submodules and import them. Then
> create a new Project (not Java, a General Project) with exactly the name
> of your Top-Level Module (In your application: TestApp). Eclipse will
> not overwrite the directory. Instead it will discover the contents.
> Inside this project executing mvn install will be possible.
>
> Graham Leggett schrieb:
> > On Tue, September 4, 2007 7:12 pm, Brian Smith wrote:
> >
> >> First thing I noticed (and I think this is what you mentioned) is that
> the
> >> top level directory is not there.  Because of this, I can't run Maven
> (mvn
> >> install) because the parent pom is not available.
> >
> > Why is the top level directory not there?
> >
> > One thing to make sure you do - check out the whole project using your
> > source control tool of choice, then run mvn eclipse:eclipse from the
> root
> > of your project, then import your projects into eclipse by selecting the
> > root of your project and importing all the projects eclipse finds.
> >
> >>   Directory Structure                  Eclipse
> >>   ===================                  =======
> >>       TestApp                             + testcommon
> >>         + testcommon                      + testejb
> >>         + testejb                         + testear
> >>         + testear
> >
> > This is exactly what we have, and mvn install runs fine.
> >
> > Can you explain in more detail the exact steps you are trying to
> perform?
> >
> > Regards,
> > Graham
> > --
> >
> >
> >
> > ---------------------------------------------------------------------
> > To unsubscribe, e-mail: [EMAIL PROTECTED]
> > For additional commands, e-mail: [EMAIL PROTECTED]
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
>
>

Reply via email to