Hello,

it's not required to put the subprojects in the directory of the root project. You can place them all in separate directories like Eclipse does and reference to it by relative path. I think you have a directory structure like
wokspace
|-- myApp
|-- common
...
so you have to create a pom.xml in myApp with
...
<modules>
  <module>../common</module>
   ...
</modules>
...

I think this will solve your problem.

If common, presentation and web are independent of myApp it could be a better solution to reference them as dependency
and let maven do the rest

Mit freundlichen Grüßen / Best Regards

Kai Uwe Bachmann
Am 15.08.2006 um 13:56 schrieb Kaiser, Hans:

Hello Kai Uwe,


my suggestion is a direcory structure of
myApp
|-- common
|-- presentation
|-- web
In CVS only the module myApp was checked in.
The whole project doesn't exists in the Eclipse workspace,



In Eclipse I've created a new workspace and 3 new projects from the
existing sources. The myApp
contains no sources itself and (only the pom file) so I doesn't create
an Eclipse project for it.
Finally I had only one CVS module with all the sources and no
duplications.

ahh okay, hadn't known something about this option.
To be sure, if we are takling about the same things, I have done
following:
- checked out my-app into the workspace
- added common, presentation and web into eclipse as Projects (with
existing project into workspace)

Now I have no idea how to add the master POM.xml into my workspace.
Could you give me an hint?


The only redundancies I have in my project are the dependencies between
the projects. This must be defined
in the maven pom and the Eclipse project because of a bug or missing
feature in the Eclipse plugin. I hope this
lack will be fixed in the next version.

BTW: The maven integration of Netbeans is much better if it could be an
alternative for you.

I thought about it, but we are using eclipse




---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to