Raphaël,

I understood your explanation, but I don't know yet how do I create a
Partial Archetype based in one of my project's module?

Suppose I have a main archetype here with basic modules:
- myapp
 - myapp-ear
 - myapp-core
 - myapp-core-client

What I want is to be able to Enhance this project with another modules, like
for instance a myapp-web, myapp-config.

Based on an existing projects with lots of modules, how can I make them
become partial archetypes?

Thanks a lot for your help!

On Wed, Nov 26, 2008 at 6:57 PM, Raphaël Piéroni
<[EMAIL PROTECTED]>wrote:

> Hi Felipe,
>
> Reading the code, when an archetype is partial (declared in
> archetype-metadata.xml),
> There if 4 cases :
> 1. mvn is called in a directory in which exists a subdir called
> $artifactId and that does'nt contain any pom, this is an error
> 2. like 1 but with a pom existing in that sub dir, the generation is
> made in partial mode
> 3. mvn is called in a directory in which no subdir named $artifactId
> and with a pom in the root dir, the generation is made in partial mode
> 4. like 3 but nosubdir nor pom in root dir, the generation is made in
> complete mode.
>
> In partial mode,
> the files are created in the selected dir instead in a sub dir
> the new pom is made by merging
> the submodules in the archetypes are processed as in complete mode.
>
> Hope this help.
>
> Raphaël
>
> 2008/11/26 Felipe Kamakura <[EMAIL PROTECTED]>:
> > Hello all,
> >
> > I was reading about the new *maven-archetype-plugin 2.0* and there is
> > something about Partial Archetype for creating sub-modules.
> > Unfortunately the documentation is not available. Could anyone explain me
> > how this works and how to use this feature?
> >
> > Thanks in advance!
> >
>

Reply via email to