Joachim Schreiber wrote:

[...]
Now I read in the Getting Started section of the new Maven 2 documentation
in Subsection Multiple Modules the new plans for creating multiple modules.


I want to ask, is the new directory structure configurable?

+- pom.xml
+- my-app
|  +- pom.xml
+- my-webapp
|  +- pom.xml

I saw this new structure in Vincent Massol's ppt presentations and examples
and now in Maven 2 (but not in Cargo ;-).

I'm interested because the pitfall with Eclipse is that this kind of
directory structure is not supported.


AFAIK the only limitation which exists in eclipse is that project directories cannot overlap.
So you should be able to import to eclipse all projects, which contain java sources and are "leaves" in the directory tree.
So in you case you can create eclipse projects for "my-app" and "my-webapp"


In more complex case

+- pom.xml
+- my-app
| +- pom.xml
+- my-webapp
| +- pom.xml
+- subprojects +- pom.xml
+-sub1
+- pom.xml
+-sub2
+- pom.xml


you can create eclipse projects for "my-app", "my-webapp" "sub1" and "sub2".


But there are other tools which may require (or recommend) other directory layout. For example subversion. I don't know if "recommended" subversion layout which is already quite frequently used is already supported in m2:


maven-plugins/
|_ plugin1/
|_ trunk/ |_ branches/
|_ tags/
|_ pluginN/
|_ trunk/ |_ branches/
|_ tags/


and how to use it with help of <modules> section in pom.

Is something like this going to be supported:

<modules>
   <module>plugin1/trunk</module>
   ...
   <module>pluginK/tags/3.2</module>
   ...
   <module>pluginN/trunk</module>
</modules>

or users will be forced to use "svn:externals" in such cases (or something else)?

Michal


-------------------------------------------------------------------- Nie dzwon do Londynu... zanim nie sprawdzisz HALO.interia.pl Tutaj: http://link.interia.pl/f1870


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



Reply via email to