2008/8/26 Raphaël Piéroni <[EMAIL PROTECTED]>: > Answers inlined > > Raphaël > > 2008/8/26 Nino Saturnino Martinez Vazquez Wael <[EMAIL PROTECTED]>: >> I'll try it out, examples would be nice though:) It would be really cool if >> there were more tutorials on creating "advanced" archetypes.
I found this page on the plugin's site http://maven.apache.org/plugins/maven-archetype-plugin/advanced-usage.html > > Please capture your experimentation to improve the documentation ;-) > >> >> Raphaël Piéroni wrote: >>> >>> Hi Nino, >>> >>> The best way to start creating an archetype is to : >>> - create a project (in your case a multi-module with a switch) >>> >> >> What do you mean by switch? Like profiles? > > I don't mean nothing, it was your intention in your first mail to have > things switchable, > because the archetype plugin don't allow you to use some parts in some case > and > other parts in another case. Then i assumed it was in your example ;-) > >>> >>> - call mvn archetype:create-from-project on your example project >>> >>> you then try your archetype by : >>> - moving in target/generated-sources/archetype from your example project >>> - call mvn install >>> - move in a fresh directory >>> - call mvn archetype:generate -DarchetypeCatalog=local >>> >>> Hope this helps >>> >>> >>> Raphaël >>> >>> 2008/8/26 Nino Saturnino Martinez Vazquez Wael <[EMAIL PROTECTED]>: >>> >>>> >>>> Hi >>>> >>>> Where can I find some tutorials on howto do archetypes? It would be >>>> really >>>> cool with an tutorial on howto make multimodule archetypes. >>>> >>>> Im wanting todo a archetype for Apache Wicket which includes 2 modules, >>>> web >>>> and core both being switchable with a parameter. Forexample if you want a >>>> guice or spring project... If you are a maven guru and want to >>>> participate >>>> please write me:) >>>> >>>> -- >>>> -Wicket for love >>>> >>>> Nino Martinez Wael >>>> Java Specialist @ Jayway DK >>>> http://www.jayway.dk >>>> +45 2936 7684 >>>> >>>> >>>> --------------------------------------------------------------------- >>>> To unsubscribe, e-mail: [EMAIL PROTECTED] >>>> For additional commands, e-mail: [EMAIL PROTECTED] >>>> >>>> >>>> >> >> -- >> -Wicket for love >> >> Nino Martinez Wael >> Java Specialist @ Jayway DK >> http://www.jayway.dk >> +45 2936 7684 >> >> >> --------------------------------------------------------------------- >> To unsubscribe, e-mail: [EMAIL PROTECTED] >> For additional commands, e-mail: [EMAIL PROTECTED] >> >> >
