You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@maven.apache.org by Nino Saturnino Martinez Vazquez Wael <ni...@jayway.dk> on 2008/08/26 14:55:30 UTC

Maven Archetype tutorials?

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


Re: Maven Archetype tutorials?

Posted by Nino Saturnino Martinez Vazquez Wael <ni...@jayway.dk>.

Raphaël Piéroni wrote:
> Answers inlined
>
> Raphaël
>
> 2008/8/26 Nino Saturnino Martinez Vazquez Wael <ni...@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.
>>     
>
> Please capture your experimentation to improve the documentation ;-)
>   
I'll do just that:) Just did'nt want to if there some hidden maven 
bundles of articles out there regarding archetypes I just didn't discover.
>   
>> 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 <ni...@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
>>
>>
>>     

-- 
-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


Re: Maven Archetype tutorials?

Posted by Nino Saturnino Martinez Vazquez Wael <ni...@jayway.dk>.

Raphaël Piéroni wrote:
> 2008/8/26 Raphaël Piéroni <ra...@gmail.com>:
>   
>> Answers inlined
>>
>> Raphaël
>>
>> 2008/8/26 Nino Saturnino Martinez Vazquez Wael <ni...@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
>   
I know, but it seems to be with version 2.0.3-alpha, I believe there 
where a major overhaul of archetype in 2.0.9 right?
>   
>> 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 <ni...@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
>>>
>>>
>>>       

-- 
-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


Re: Maven Archetype tutorials?

Posted by Raphaël Piéroni <ra...@gmail.com>.
2008/8/26 Raphaël Piéroni <ra...@gmail.com>:
> Answers inlined
>
> Raphaël
>
> 2008/8/26 Nino Saturnino Martinez Vazquez Wael <ni...@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 <ni...@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
>>
>>
>

Re: Maven Archetype tutorials?

Posted by Raphaël Piéroni <ra...@gmail.com>.
Answers inlined

Raphaël

2008/8/26 Nino Saturnino Martinez Vazquez Wael <ni...@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.

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 <ni...@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
>
>

Re: Maven Archetype tutorials?

Posted by Nino Saturnino Martinez Vazquez Wael <ni...@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.

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?
> - 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 <ni...@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


Re: Maven Archetype tutorials?

Posted by Raphaël Piéroni <ra...@gmail.com>.
Hi Nino,

The best way to start creating an archetype is to :
- create a project (in your case a multi-module with a switch)
- 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 <ni...@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
>
>