You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@maven.apache.org by Nino Saturnino Martinez Vazquez Wael <ni...@jayway.dk> on 2008/03/10 20:10:26 UTC

maven archetype: archetype-metadata.xml ..?

Hi

Im trying to build a archetype that has the following structure:

parent
|
|-subproject
|-subproject

Im using the new way of doing this by the archetype-metadata.xml and 
modules, but I am a bit uncertain about the structure for the modules, 
they should have the archetype structure aswell, right?

I mean they should them selfes contain archetype-metadata.xml in the 
meta-in/maven?

Are there any tutorials on this, I could find any and the maven wiki on 
this aren't that informational.

-- 
-Wicket for love
-Jme for fun

Nino Martinez Wael
Java Specialist @ Jayway DK
http://www.jayway.dk
+45 2936 7684


---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
For additional commands, e-mail: users-help@maven.apache.org


Re: maven archetype: archetype-metadata.xml ..?

Posted by Raphaël Piéroni <ra...@gmail.com>.
Hi Nino,

Answers inlined

2008/3/10, Nino Saturnino Martinez Vazquez Wael <ni...@jayway.dk>:
> Hi
>
>  Im trying to build a archetype that has the following structure:
>
>  parent
>  |
>  |-subproject
>  |-subproject
>
>  Im using the new way of doing this by the archetype-metadata.xml and
>  modules, but I am a bit uncertain about the structure for the modules,
>  they should have the archetype structure aswell, right?
>
>  I mean they should them selfes contain archetype-metadata.xml in the
>  meta-in/maven?

nope, there is only one archetype-metadata.xml file per archetype jar.
modules are defined in that metadata.

Just try mvn archetpe:create-from-project on your project and give a
look at the target/generated-sources/archetype directory.
please consider, this goal stil in development.

>
>  Are there any tutorials on this, I could find any and the maven wiki on
>  this aren't that informational.

You can find some documentation at
http://maven.apache.org/plugins/maven-archetype-plugin/advanced-usage.html


Regards,

Raphaël

>
>  --
>  -Wicket for love
>  -Jme for fun
>
>  Nino Martinez Wael
>  Java Specialist @ Jayway DK
>  http://www.jayway.dk
>  +45 2936 7684
>
>
>  ---------------------------------------------------------------------
>  To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
>  For additional commands, e-mail: users-help@maven.apache.org
>
>