Hi Maven experts, What I want to do, I am almost sure, has someone done before:
I need to create achetypes, one for a parent project, a subproject for the some jar files, one for the interface definition, and one for web use, web admin. In a batch they are createed side by side with something like this: call mvn archetype:create -DarchetypeGroupId=MYGROUPID -DarchetypeArtifactId=my-parent -DarchetypeVersion=0.2.1-SNAPSHOT -DgroupId=%PACKAGE% -DartifactId=parent call mvn archetype:create -DarchetypeGroupId=MYGROUPID -DarchetypeArtifactId=my-opm -DarchetypeVersion=0.1.0-SNAPSHOT -DgroupId=%PACKAGE% -DartifactId=%SYS_NAME%-opm call mvn archetype:create -DarchetypeGroupId=MYGROUPID -DarchetypeArtifactId=my-opm -DarchetypeVersion=0.1.0-SNAPSHOT -DgroupId=%PACKAGE% -DartifactId=%SYS_NAME%-common call mvn archetype:create -DarchetypeGroupId=MYGROUPID -DarchetypeArtifactId=my-opm -DarchetypeVersion=0.1.0-SNAPSHOT -DgroupId=%PACKAGE% -DartifactId=%SYS_NAME%-interface All the created pom.xml should contain a <parent></parent> automatically referencing the parent just created. Even better would be that the project structure (main/java/...) reflects the MYGROUPID structure. Maven VELOCITY may be the tools to accomblish this. Is there an example how to do something like this? Is there a better way ? Is a stupid idea in the first place ? Any pointers apreciated ! mit freundlichen Grüßen/best regards Wolfgang Schrecker "Database design is still largely subjective in nature;" from C.J. Date: Database In Depth p. 137 -- -------------------------------------------------- Atos Worldline Processing GmbH Hahnstrasse 25 60528 Frankfurt/Main Germany Phone: +49 69/6657-1176 mailto:[EMAIL PROTECTED] http://www.atosworldline.com Geschäftsführer: Erik Munk Koefoed Aufsichtsratsvorsitzender: Didier Dhennin Sitz der Gesellschaft: Frankfurt/Main Handelsregister: Frankfurt/Main HRB 40 417 -------------------------------------------------- Atos Worldline Processing GmbH Hahnstraße 25 60528 Frankfurt/Main Germany Phone: +49 69/6657-1176 Fax : mailto: [EMAIL PROTECTED] http://www.atosworldline.com Geschäftsführer: Erik Munk Koefoed Aufsichtsratsvorsitzender: Didier Dhennin Sitz der Gesellschaft: Frankfurt/Main Handelsregister: Frankfurt/Main HRB 40 417 * * * * * * * * L E G A L D I S C L A I M E R * * * * * * * * This e-mail is destined for the above mentioned recipient. In case you received this e-mail by accident, we would appreciate it if you could contact the sender and delete all copies stored on your computer. Please be aware that the security and confidentiality of electronic data transmitted by e-mail is not completely guaranteed and that data may be seen, copied, downloaded or changed by third persons during transmission. Atos Origin accepts no liability for the security and confidentiality of data and documents sent by e-mail. Please make sure that all important messages will be confirmed in writing by means of a telefax or a letter. * * * * * * * * L E G A L D I S C L A I M E R * * * * * * * *