You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@maven.apache.org by Marcelo Rÿfffff4mulo Fernandes <ma...@yahoo.com> on 2008/03/10 16:07:42 UTC
filtering files at archetype-metadata.xml multi-project
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: users-unsubscribe@maven.apache.org
For additional commands, e-mail: users-help@maven.apache.org
Re: filtering files at archetype-metadata.xml multi-project
Posted by Raphaël Piéroni <ra...@apache.org>.
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 <ma...@yahoo.com>:
> 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: users-unsubscribe@maven.apache.org
> For additional commands, e-mail: users-help@maven.apache.org
>
>