Search around a lot for this type of functionality but I ended up writing my own plugin to do this.
Murali Pottlapelli wrote: > > 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 > > > -- View this message in context: http://www.nabble.com/archetype-plug-in-vs-custom-plug-in-tp24765503p24837613.html Sent from the Maven - Users mailing list archive at Nabble.com. --------------------------------------------------------------------- To unsubscribe, e-mail: users-unsubscr...@maven.apache.org For additional commands, e-mail: users-h...@maven.apache.org