Details
-
Type:
Bug
-
Status:
Open
-
Priority:
Major
-
Resolution: Unresolved
-
Affects Version/s: 2.3
-
Fix Version/s: None
-
Labels:None
-
Number of attachments :
Description
I define the resources like this in my project :
<resources>
<resource>
<directory>src/main/resources</directory>
<filtering>true</filtering>
<includes>
<include>p1.properties</include>
</includes>
</resource>
<resource>
<directory>src/main/resources</directory>
<filtering>false</filtering>
<includes>
<include>p2.properties</include>
</includes>
</resource>
</resources>
Then I execute the maven-eclipse-plugin to generate the .classpath and .project file.
The result is not why I expected :
- only the first resource definition is taken into account (see screenshot)
> the file p2.properties is not copied by the eclipse build mechanism.
Proposed solution:
When we define 2 resource definition on the same 'directory', the 'maven-eclipse-plugin' should merge the includes and excludes elements.
it would be nice if anybody can fix this issue ... eclipse:eclipse is not useable if more than one resource (with filter) is defined
i thing the fix can not be so hard ?!