Alexander Hars wrote:
> Hi,
> 
> I have read the "Guide to creating archetypes" but I am not sure
> about a few things:
> 
> I assume that we create the archetype as a maven-plugin. Then it
> needs a pom. Do I include the <archetype> ... </archetype> in the
> archetype plugin's pom.xml? Do I  also need to define
> <packaging>maven-plugin</packaging> ? Do we need to define any
> <dependencies> ?
> 
> When the archetype initializes a project, it needs to create a
> pom.xml for the new project. That pom.xml is different from the
> archetype plugin pom.xml. So how do I define the pom.xml that the
> archetype plugin should create?
> 

Have a look at the example archetypes here [1], they helped me a lot in
understanding how archetypes are meant to be structured.


Jorg

[1]
http://svn.apache.org/viewcvs.cgi/maven/components/trunk/maven-archetype/maven-archetypes/


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

Reply via email to