-------- Original-Nachricht --------
> Datum: Wed, 4 Apr 2012 08:34:23 +0930
> Von: Barrie Treloar <[email protected]>
> An: Maven Users List <[email protected]>
> Betreff: Re: Archetype for flat structure
>
> My recollection is that the flat structure is no longer a recommended
> approach.
> To get the flat structure to work you need to specify relativePath in
> the parent declaration and this is a source of pain and then the
> parent pom needs to declare its modules as ../module_name
>
> I suspect that because of this, the archetypes don't allow you to
> create a flat structure.
> But that doesn't stop you from manually doing this. Just move the
> parent to be a sibling of the modules, make the changes specified
> above, and off you go.
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: [email protected]
> For additional commands, e-mail: [email protected]
>
Thanks for your quick reply.
I know that the flat structure is not recommendet and I dont know about
Maven-Internals, but I expect that Maven generates an Objectmodel based on the
pom and its modules. When this model includes the path on where to find the
modules it should be totaly abstract to all plugins. Thus making a flat
structure not more complicated that the default. Instead, the default structure
gives more headaches as you can see with Eclipse for example (RTC is not the
only team provider you have to be carefull...with Git you also have to have a
repo prior to your projects).
Anyway...regarding the archetype. Currently I can create my project but it
creates the following:
/ (here I call mvn archetype:generate)
/test (includes the minimal pom which I dont need)
/test/test-parent
/test/test-module1
/test/test-module2
As you can see, directuory-substitution works and my dependencies are also
correct.
But I cannot use this structure for RTC on the fly, I have to copy-out the
folders I need into my Workspace and use "import existing maven projects". This
is again error-prone and we cannot utilize the archetype-generation from within
eclipse.
We definately need this
/ (call archetype)
/test-parent
/test-module1
/test-module2
regards
Marc
--
NEU: FreePhone 3-fach-Flat mit kostenlosem Smartphone!
Jetzt informieren: http://mobile.1und1.de/?ac=OM.PW.PW003K20328T7073a
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]