maven-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Raphaël Piéroni" <raphaelpier...@gmail.com>
Subject Re: Maven Archetype tutorials?
Date Tue, 26 Aug 2008 13:30:04 GMT
2008/8/26 Raphaël Piéroni <raphaelpieroni@gmail.com>:
> Answers inlined
>
> Raphaël
>
> 2008/8/26 Nino Saturnino Martinez Vazquez Wael <nino.martinez@jayway.dk>:
>> 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 <nino.martinez@jayway.dk>:
>>>
>>>>
>>>> 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: users-unsubscribe@maven.apache.org
>>>> For additional commands, e-mail: users-help@maven.apache.org
>>>>
>>>>
>>>>
>>
>> --
>> -Wicket for love
>>
>> Nino Martinez Wael
>> Java Specialist @ Jayway DK
>> http://www.jayway.dk
>> +45 2936 7684
>>
>>
>> ---------------------------------------------------------------------
>> To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
>> For additional commands, e-mail: users-help@maven.apache.org
>>
>>
>
Mime
View raw message