Re: A few questions about creating archetypes

2005-10-26 Thread Jorg Heymans

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
 packagingmaven-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]



RE: A few questions about creating archetypes

2005-10-26 Thread Luca Gmail
I answer the last part of your question. The pom.xml for the new project is
the pom you like to use. So it contanins the dipendences, the repositories,
ecc. you decide your new project should have.

Bye,
Luca

-Original Message-
From: Alexander Hars [mailto:[EMAIL PROTECTED] 
Sent: mercoledì 26 ottobre 2005 9.35
To: users@maven.apache.org
Subject: A few questions about creating archetypes

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 packagingmaven-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?

Thanks for your help!

-Alexander






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


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