You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@maven.apache.org by Marouane Amraoui <Ma...@omnidata.co.ma> on 2007/04/03 20:18:48 UTC

Maven archetype

Hi ;

 

I want to generate my projet structure :

 

MyProject-Appli :

   --> src

        --> java

           --> com.omni.application

                --> ap1

                    --> manager 

                    --> services

                    --> valueobject

                --> ap 2

                    --> manager 

                    --> services

                    --> valueobject

 

 

I want to developpe an archetype that construct me this structure of project. 

 

This can made by archetype developpement only ?? or need to developpe a plugin ??

 

 

Thx in advance.

 

---------------------------------------------------------------

Merouane AMRAOUI
Consultant Expert
Division Développement
Email.: mamraoui@omnidata.co.ma

Gsm  .: 065 19 60 99   
Tél. | Tel.: 022 98 70 70Téléc | Fax: 022 98 70 70
OMNIDATA , 74 Bv AbdelMoumen

 


Re: Maven archetype

Posted by franz see <fr...@gmail.com>.
Good day,

Btw, you can't do this in your achetype ( AFAIK )

MyProject-Appli :

   --> src

        --> java

           --> com.omni.application

                --> ap1

                    --> manager

                    --> services

                    --> valueobject

                --> ap 2

                    --> manager

                    --> services

                    --> valueobject 

You can however, do this...

MyProject-Appli :

   --> src/main

        --> java

           --> com.omni.application

                --> ap1

                    --> manager

                    --> services

                    --> valueobject

                --> ap 2

                    --> manager

                    --> services

                    --> valueobject 

Cheers,
Franz


Henry S. Isidro wrote:
> 
> Hi,
> 
> This could prove useful: 
> http://maven.apache.org/plugins/maven-archetype-plugin/examples/archetype.html
> 
> Cheers,
> Henry
> 
> On Wednesday, April 4, 2007 02:18, Marouane Amraoui wrote:
>> Hi ;
>>
>>
>>
>> I want to generate my projet structure :
>>
>>
>>
>> MyProject-Appli :
>>
>>    --> src
>>
>>         --> java
>>
>>            --> com.omni.application
>>
>>                 --> ap1
>>
>>                     --> manager
>>
>>                     --> services
>>
>>                     --> valueobject
>>
>>                 --> ap 2
>>
>>                     --> manager
>>
>>                     --> services
>>
>>                     --> valueobject
>>
>>
>>
>>
>>
>> I want to developpe an archetype that construct me this structure of
>> project.
>>
>>
>>
>> This can made by archetype developpement only ?? or need to developpe a
>> plugin ??
>>
>>
>>
>>
>>
>> Thx in advance.
>>
>>
>>
>> ---------------------------------------------------------------
>>
>> Merouane AMRAOUI
>> Consultant Expert
>> Division Développement
>> Email.: mamraoui@omnidata.co.ma
>>
>> Gsm  .: 065 19 60 99
>> Tél. | Tel.: 022 98 70 70Téléc | Fax: 022 98 70 70
>> OMNIDATA , 74 Bv AbdelMoumen
>>
>>
>>
>>
>>
>> !DSPAM:546,46129b2f162461623613244!
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
> For additional commands, e-mail: users-help@maven.apache.org
> 
> 
> 

-- 
View this message in context: http://www.nabble.com/Maven-archetype-tf3520802s177.html#a9829274
Sent from the Maven - Users mailing list archive at Nabble.com.


---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
For additional commands, e-mail: users-help@maven.apache.org


Re: Maven archetype

Posted by "Henry S. Isidro" <hi...@exist.com>.
Hi,

This could prove useful: 
http://maven.apache.org/plugins/maven-archetype-plugin/examples/archetype.html

Cheers,
Henry

On Wednesday, April 4, 2007 02:18, Marouane Amraoui wrote:
> Hi ;
>
>
>
> I want to generate my projet structure :
>
>
>
> MyProject-Appli :
>
>    --> src
>
>         --> java
>
>            --> com.omni.application
>
>                 --> ap1
>
>                     --> manager
>
>                     --> services
>
>                     --> valueobject
>
>                 --> ap 2
>
>                     --> manager
>
>                     --> services
>
>                     --> valueobject
>
>
>
>
>
> I want to developpe an archetype that construct me this structure of
> project.
>
>
>
> This can made by archetype developpement only ?? or need to developpe a
> plugin ??
>
>
>
>
>
> Thx in advance.
>
>
>
> ---------------------------------------------------------------
>
> Merouane AMRAOUI
> Consultant Expert
> Division Développement
> Email.: mamraoui@omnidata.co.ma
>
> Gsm  .: 065 19 60 99
> Tél. | Tel.: 022 98 70 70Téléc | Fax: 022 98 70 70
> OMNIDATA , 74 Bv AbdelMoumen
>
>
>
>
>
> !DSPAM:546,46129b2f162461623613244!

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
For additional commands, e-mail: users-help@maven.apache.org


RE: Maven archetype

Posted by franz see <fr...@gmail.com>.
Good day to you, Marouane,

I think I saw some kind of development with the archetype but I haven't had
the chance to take a look at it yet. But AFAIK, you cannot do that. You can
not do any filtering with archetype except for a few parameters such as
groupId, artifactId, version, etc. ...also, you cannot filter a filename or
a directory.

If you want, you can file a jira issue about your request.

Cheers,
Franz


Marouane Amraoui wrote:
> 
> 
> Thx for your reply;
> 
> No problem with main or not. My question now is how can I do that if I say 
> ap1 , ap2 must be a parameter and not fixed in the archetype. ?? how can I
> do that .?
> 
> In the archetype pom.xml I can put parameter like ${param} but in the
> archetype.xml can I do that ???
> 
> 
> Thx in advance
> 
> 
> 
> -----Message d'origine-----
> De : franz see [mailto:franz.see@gmail.com] 
> Envoyé : mercredi 4 avril 2007 01:11
> À : users@maven.apache.org
> Objet : Re: Maven archetype
> 
> 
> Good day,
> 
> Btw, you can't do this in your achetype ( AFAIK )
> 
> MyProject-Appli :
> 
>    --> src
> 
>         --> java
> 
>            --> com.omni.application
> 
>                 --> ap1
> 
>                     --> manager
> 
>                     --> services
> 
>                     --> valueobject
> 
>                 --> ap 2
> 
>                     --> manager
> 
>                     --> services
> 
>                     --> valueobject 
> 
> You can however, do this...
> 
> MyProject-Appli :
> 
>    --> src/main
> 
>         --> java
> 
>            --> com.omni.application
> 
>                 --> ap1
> 
>                     --> manager
> 
>                     --> services
> 
>                     --> valueobject
> 
>                 --> ap 2
> 
>                     --> manager
> 
>                     --> services
> 
>                     --> valueobject 
> 
> Cheers,
> Franz
> 
> 
> Henry S. Isidro wrote:
>> 
>> Hi,
>> 
>> This could prove useful: 
>> http://maven.apache.org/plugins/maven-archetype-plugin/examples/archetype.html
>> 
>> Cheers,
>> Henry
>> 
>> On Wednesday, April 4, 2007 02:18, Marouane Amraoui wrote:
>>> Hi ;
>>>
>>>
>>>
>>> I want to generate my projet structure :
>>>
>>>
>>>
>>> MyProject-Appli :
>>>
>>>    --> src
>>>
>>>         --> java
>>>
>>>            --> com.omni.application
>>>
>>>                 --> ap1
>>>
>>>                     --> manager
>>>
>>>                     --> services
>>>
>>>                     --> valueobject
>>>
>>>                 --> ap 2
>>>
>>>                     --> manager
>>>
>>>                     --> services
>>>
>>>                     --> valueobject
>>>
>>>
>>>
>>>
>>>
>>> I want to developpe an archetype that construct me this structure of
>>> project.
>>>
>>>
>>>
>>> This can made by archetype developpement only ?? or need to developpe a
>>> plugin ??
>>>
>>>
>>>
>>>
>>>
>>> Thx in advance.
>>>
>>>
>>>
>>> ---------------------------------------------------------------
>>>
>>> Merouane AMRAOUI
>>> Consultant Expert
>>> Division Développement
>>> Email.: mamraoui@omnidata.co.ma
>>>
>>> Gsm  .: 065 19 60 99
>>> Tél. | Tel.: 022 98 70 70Téléc | Fax: 022 98 70 70
>>> OMNIDATA , 74 Bv AbdelMoumen
>>>
>>>
>>>
>>>
>>>
>>> !DSPAM:546,46129b2f162461623613244!
>> 
>> ---------------------------------------------------------------------
>> To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
>> For additional commands, e-mail: users-help@maven.apache.org
>> 
>> 
>> 
> 
> -- 
> View this message in context:
> http://www.nabble.com/Maven-archetype-tf3520802s177.html#a9829274
> Sent from the Maven - Users mailing list archive at Nabble.com.
> 
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
> For additional commands, e-mail: users-help@maven.apache.org
> 
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
> For additional commands, e-mail: users-help@maven.apache.org
> 
> 
> 

-- 
View this message in context: http://www.nabble.com/Maven-archetype-tf3520802s177.html#a9836400
Sent from the Maven - Users mailing list archive at Nabble.com.


---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
For additional commands, e-mail: users-help@maven.apache.org