Generate a sub module from an archetype<http://maven.apache.org/plugins/maven-archetype-plugin/#> is TBD now according to Maven Apache project .. More details of Maven Archetype Plugin can be found in : http://maven.apache.org/plugins/maven-archetype-plugin/examples/generate-alternative-catalog.html
Also Archetype Plugin can be used to Create an Archetype with a property file : http://maven.apache.org/plugins/maven-archetype-plugin/examples/create-with-property-file.html Thanks Saritha SV On Sat, Aug 1, 2009 at 11:03 AM, Murali Pottlapelli < murali.pottlape...@sun.com> wrote: > Thanks Martin! > > Is it possible to control the files created in a module? Is it also > possible to sync the content in the file based on meta-data (generated > property files)? > > Is there any example archetype? > > How to invoke archetype plug-in a program? Is it possible to invoke from > another plug-in? > > Are you suggesting "glassfish users group" is the right forum for this? > > Regards > Murali > > > Martin Gainty wrote: > >> could be accomplished by accepting user input data thru screens usually >> served by TC or GF or OAS within web framework such as Struts or JSF >> a plain CRUD webapp would accomplish the objective >> if you persist to individual properties files you could create archetype >> from the properties files >> >> please ping glassfish users group (us...@glassfish.dev.java.net) for >> configuration/deployment details >> Martin Gainty ______________________________________________ Verzicht und >> Vertraulichkeitanmerkung/Note de déni et de confidentialité >> Diese Nachricht ist vertraulich. Sollten Sie nicht der vorgesehene >> Empfaenger sein, so bitten wir hoeflich um eine Mitteilung. Jede unbefugte >> Weiterleitung oder Fertigung einer Kopie ist unzulaessig. Diese Nachricht >> dient lediglich dem Austausch von Informationen und entfaltet keine >> rechtliche Bindungswirkung. Aufgrund der leichten Manipulierbarkeit von >> E-Mails koennen wir keine Haftung fuer den Inhalt uebernehmen. >> Ce message est confidentiel et peut être privilégié. Si vous n'êtes pas le >> destinataire prévu, nous te demandons avec bonté que pour satisfaire >> informez l'expéditeur. N'importe quelle diffusion non autorisée ou la copie >> de ceci est interdite. Ce message sert à l'information seulement et n'aura >> pas n'importe quel effet légalement obligatoire. Étant donné que les email >> peuvent facilement être sujets à la manipulation, nous ne pouvons accepter >> aucune responsabilité pour le contenu fourni. >> >> >> >> >> >> >>> Date: Fri, 31 Jul 2009 19:35:18 -0700 >>> From: murali.pottlape...@sun.com >>> Subject: archetype plug-in vs custom plug-in >>> To: users@maven.apache.org >>> >>> 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 >>> >> >> _________________________________________________________________ >> Windows Live™ SkyDrive™: Store, access, and share your photos. See how. >> >> http://windowslive.com/Online/SkyDrive?ocid=TXT_TAGLM_WL_CS_SD_photos_072009 >> >> >> >