Excludes ignored during resource filtering (Maven)?
I'm running IDEA 8.1 and working with a Maven project. IDEA now seems to do some resource filtering automatically during make. However, that resource filtering seems to:
a) Ignore the selected Maven profile
b) Ignore excludes and filtering set to false
Here's a snippet from my pom.xml which specifies excludes and turns filtering off for certain files. Despite this, IDEA performs resource filtering on applicationContext-resources.xml. Is this a known issue and is there any way to turn off resource filtering or fix the issue?
<resources>
<resource>
<directory>src/main/resources</directory>
<excludes>
<exclude>ApplicationResources_de.properties</exclude>
<exclude>ApplicationResources_fr.properties</exclude>
<exclude>ApplicationResources_ko.properties</exclude>
<exclude>ApplicationResources_nl.properties</exclude>
<exclude>ApplicationResources_no.properties</exclude>
<exclude>ApplicationResources_pt*.properties</exclude>
<exclude>ApplicationResources_tr.properties</exclude>
<exclude>ApplicationResources_zh*.properties</exclude>
<exclude>applicationContext-resources.xml</exclude>
<exclude>struts.xml</exclude>
</excludes>
<filtering>true</filtering>
</resource>
<resource>
<directory>src/main/resources</directory>
<includes>
<include>applicationContext-resources.xml</include>
<include>struts.xml</include>
</includes>
<filtering>false</filtering>
</resource>
</resources>
请先登录再写评论。
Hi, Meetesh,
What IDEA build do you use?
I've checked both cases on the last eap build and IDEA seems to behave correctly.
Please provide a sample project and steps to reproduce the problem if you are running the last eap version.
Thanks,
Anton Makeev