maven-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Dennis Lundberg <denn...@apache.org>
Subject Re: Maven archetype
Date Mon, 03 Oct 2011 17:36:05 GMT
Hi

Did you try this variant?

      <module id="${artifactId}-Client" dir="${artifactId}Client"
name="${artifactId}-Client">


On 2011-10-03 17:59, Nalini Chavala wrote:
> 
> Hi,
> 
> I am trying to create a maven archetype and followed the link
> 
> http://maven.apache.org/archetype/maven-archetype-plugin/
> 
> http://code.google.com/p/jianwikis/wiki/HowToCreateMavenArchetypeFromProject
> 
> 
> I was able to create an archetype with default structure but I like to create a template
with the artifact Id.
> Eg:
>    Templeate-java
>    Templeate-ejb
> 
> 
> I need to have a template with like
> 
>   Eg:
>      Artificatid-java
>      Artifactid-ejb
> 
> 
> I have specified the archetype-metadata.xml with "__artifactId__Client"
> 
> <archetype-descriptor name="was61-archetype">
> <modules>
>       <module id="${artifactId}-Client" dir="__artifactId__Client" name="${artifactId}-Client">
>           <fileSets>
>             <fileSet filtered="true" encoding="UTF-8">
>               <directory>src/main/java/sf/iasc</directory>
>               <includes>
>                 <include>**/*.java</include>
>                 <include>**/*.xml</include>
>               </includes>
>             </fileSet>
>             <fileSet filtered="true" encoding="UTF-8">
>               <directory>src/test/java</directory>
>               <includes>
>                 <include>**/*.xml</include>
>                                 <include>**/*.java</include>
>               </includes>
>             </fileSet>
>           </fileSets>
>         </module>
>       </modules>
>     </module>
>   </modules>
> </archetype-descriptor>
> 
> 
> Please let me know how to resolve the issue.
> 
> Thanks
> 
> 


-- 
Dennis Lundberg

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


Mime
View raw message