Hi All,
While searching through mailing list I found "archetypes to add files to
an existing project",
http://www.nabble.com/Using-Archetypes-to-Add-to-an-Existing-Project-(Maven-2)-ts1274662.html#a1274662
This message is at least 3 years old, did this feature evolve?
This feature might help in my work. I need to generate/add artifact(s)
to a module based on the meta data user configures.
I like to define an archetype to generate multi-module project, when
project is created from this archetype it creates parent project with
POM file and meta data/configuration file. Meta data in configuration
file determine number of submodules, and artifacts created in the parent
project.
Let us look at my request using an example. maven-archetype-j2ee-simple
creates JavaEE multi module project with sub modules ear, ejbs,
servelets etc. by default all the sub-modules are empty. I need little
variation of it, like to generate configuration file in
src\main\resources. This file is edited/configured by user,
configuration is input to create/edit/add artifacts to sub-modules.
Does archetype plug-in help? or shall I write my own plug-in?
Regards
Murali