Hi Raphael,

    It works! Thanks very much!

´s
marcelo

----- Original Message ----
From: Raphaël Piéroni <[EMAIL PROTECTED]>
To: Maven Users List <[email protected]>
Sent: Monday, March 10, 2008 4:22:56 PM
Subject: Re: filtering files at archetype-metadata.xml multi-project

Hi Marcelo,

Your first file set is set to <directory>.</directory>
but it should be set to <directory></directory>
yes the value for root directory is empty

Regards,

Raphaël

2008/3/10, Marcelo Rÿfffff4mulo Fernandes <[EMAIL PROTECTED]>:
> I´m creating a multi-project archetype.
>  When I run the command above, the readme.txt file is not copied to generated 
> project root, but only main pom.xml. I tried to copy others files to root 
> dir, but they are not copied. What´s is wrong with the fileSet?
>
>  mvn archetype:generate 
> -DarchetypeGroupId=org.persapiens.basegen-DarchetypeArtifactId=maven-basegenapp-plugin-DarchetypeVersion=1.0-SNAPSHOT
>
>  The archetype-metadata.xml file:
>
>  <archetype-descriptor name="maven-basegenapp-plugin">
>     <fileSets>
>         <fileSet filtered="true" packaged="false">
>             <directory>.</directory>
>             <includes>
>                 <include>readme.txt</include>
>             </includes>
>         </fileSet>
>         <fileSet filtered="true" packaged="false">
>             <directory>src</directory>
>             <includes>
>                 <include>**/*</include>
>             </includes>
>             <excludes>
>                 <exclude>**/*.xml.zip</exclude>
>             </excludes>
>         </fileSet>
>         <fileSet filtered="false" packaged="false">
>             <directory>src</directory>
>             <includes>
>                 <include>**/*.xml.zip</include>
>             </includes>
>         </fileSet>
>     </fileSets>
>     <modules>
>         <module name="Business Bean" dir="business-bean">
>             <fileSets>
>                 <fileSet filtered="true" packaged="false">
>                     <directory>src</directory>
>                     <includes>
>                         <include>**/*</include>
>                     </includes>
>                 </fileSet>
>             </fileSets>
>         </module>
>     </modules>
>     <requiredProperties>
>         <requiredProperty key="copyright"/>
>     </requiredProperties>
>  </archetype-descriptor>
>
>
>
>
>
>       
> ____________________________________________________________________________________
>  Be a better friend, newshound, and
>  know-it-all with Yahoo! Mobile.  Try it now.  
> http://mobile.yahoo.com/;_ylt=Ahu06i62sR8HDtDypao8Wcj9tAcJ
>
>
>  ---------------------------------------------------------------------
>  To unsubscribe, e-mail: [EMAIL PROTECTED]
>  For additional commands, e-mail: [EMAIL PROTECTED]
>
>





      
____________________________________________________________________________________
Looking for last minute shopping deals?  
Find them fast with Yahoo! Search.  
http://tools.search.yahoo.com/newsearch/category.php?category=shopping

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to