I think this is exactly *the point* of the archetype plugin...
Review the source code for existing archetypes and I'm sure you'll figure it out pretty quickly. Also the Guide to Creating Archetypes might be useful: http://maven.apache.org/guides/mini/guide-creating-archetypes.html Wayne On 6/1/06, Roland Asmann <[EMAIL PROTECTED]> wrote:
Hi, I was wondering if it is possible to write my own Archetype-definition, so that when I run 'mvn achetype:create' Maven will generate me a POM that has some more stuff in it than the current default. The thing is, that my company will be writing lots of projects that are fairly similar, so I have introduced a company- wide POM, which I would like to have automatically added to the POM created with an archetype:create. Also, depending on the type of project (currently we have 4 different types), I want to add the default plugins and dependencies for those type of projects. Is there an easy and fast way, or should I re-write the Archetype-plugin as a new plugin that has this functionality? Roland --------------------------------------------------------------------- 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]