You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@maven.apache.org by Guillaume Polet <gu...@gmail.com> on 2011/06/21 16:46:30 UTC
Resource inclusion/exclusion patterns-->what's the usage of include
patterns?
Hi All,
I am working on a project were I would like to exclude all resources
except the ones located within META-INF. After reading carefuly the
documentation, it appears that excludes always beats includes, so doing
what would only be natural, does not work:
<build>
<resources>
<resource>
<directory>src/main/resources</directory>
<excludes>
<exclude>**/*</exclude>
</excludes>
<includes>
<include>META-INF/**/*</include>
</includes>
</resource>
</resources>
...
</build>
So my second guess was to do the following:
<build>
<resources>
<resource>
<directory>src/main/resources</directory>
<includes>
<include>META-INF/**/*</include>
</includes>
</resource>
</resources>
...
</build>
but still not what I want because I end up with everything.
--> what is the purpose of include patterns, if they embed everything
anyway?
Is there a way to do what I want without having to use an additional
resource directory?
My configuration details :
Apache Maven 3.0.3 (r1075438; 2011-02-28 18:31:09+0100)
Maven home: D:\apache-maven-3.0.3\bin\..
Java version: 1.6.0_16, vendor: Sun Microsystems Inc.
Java home: C:\Program Files\Java\jdk1.6.0_16\jre
Default locale: fr_BE, platform encoding: Cp1252
OS name: "windows xp", version: "5.1", arch: "x86", family: "windows"
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
For additional commands, e-mail: users-help@maven.apache.org