You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@maven.apache.org by "McGowan, Dan (NE)" <DM...@classmates.com> on 2005/12/09 21:42:01 UTC
[m2] how do i exclude a specific file from a jar
Hi,
Saw an earlier post regarding this on nabble and the suggestion was to use <resource><excludes>. However this leaves the resource unavailable for tests. In maven1 I was able to not include a file in the jar by specifying "maven.jar.excludes=**/myfile.properties" in the project.properties file. Any suggestion for accomplishing the same in m2? Thanks,
Dan
Re: [m2] how do i exclude a specific file from a jar
Posted by Allan Ramirez <ar...@exist.com>.
Hi Dan,
If you want your resources to be available for test you can put them in
the test resource directory.
Please refer to this site for more info
http://maven.apache.org/guides/introduction/introduction-to-the-standard-directory-layout.html
-allan
McGowan, Dan (NE) wrote:
>Hi,
> Saw an earlier post regarding this on nabble and the suggestion was to use <resource><excludes>. However this leaves the resource unavailable for tests. In maven1 I was able to not include a file in the jar by specifying "maven.jar.excludes=**/myfile.properties" in the project.properties file. Any suggestion for accomplishing the same in m2? Thanks,
>
>Dan
>
>
>
>------------------------------------------------------------------------
>
>No virus found in this incoming message.
>Checked by AVG Free Edition.
>Version: 7.1.371 / Virus Database: 267.13.13/195 - Release Date: 12/8/2005
>
>