Details
-
Type:
Bug
-
Status:
Closed
-
Priority:
Major
-
Resolution: Fixed
-
Affects Version/s: 2.6
-
Fix Version/s: 2.7
-
Labels:None
-
Number of attachments :
Description
<build> <resources> <resource> <directory>src/main/java</directory> <includes> <include>**/*.properties</include> </includes> </resource> </resources> </build>
For a non-standard project layout like sketched above where some resource files reside next to the source files (e.g. Messages.properties in Mercury), the change for MECLIPSE-443 causes these resources files to be excluded from the build path since they don't match the filter "*/.java". This can for instance cause test failures in Eclipse due to resources missing on the class path.
When source and resource directories equal, the includes/excludes need to be merged.
Issue Links
| This issue relates to: | ||||
| MECLIPSE-538 | Ajdt support needs to include*.aj on the classpath. |
|
|
|
| This issue is related to: | ||||
| MECLIPSE-443 | Only include **/*.java in Java source directories |
|
|
|
As "workaround" for this issue one can downgrade the maven-eclipse-plugin:
Mainly for historical reasons I have resource files in src/main/java and include them in the maven build like this:
This works perfectly for the mvn build and maven-eclipse-plugin 2.5.1. Since maven-eclipse-plugin 2.6 this is not reflected by the generated eclipse project configuration any more.
Ralf Ebert
http://www.ralfebert.de/