Quantcast

Partial Archetype and Sub-Modules

Previous Topic Next Topic
 
classic Classic list List threaded Threaded
4 messages Options
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

Partial Archetype and Sub-Modules

Felipe Kamakura
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 | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

Re: Partial Archetype and Sub-Modules

Raphaël Piéroni-4
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 <[hidden email]>:
> 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 | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

Re: Partial Archetype and Sub-Modules

Felipe Kamakura
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
<[hidden email]>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 <[hidden email]>:
> > 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 | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

Re: Partial Archetype and Sub-Modules

mikel
This post has NOT been accepted by the mailing list yet.
Has anybody been able to solve adding a module to an existing multi-module project
Loading...