With the change done as part of MECLIPSE-443 "Only include **/*.java in Java source directories" the .classpath entries for classpathentry kind="src" now specify an including attribute with a value of "**/*.java". Previously this attribute was not specified which meant that eclipse would include any file in this src directory as being on the classpath and hence compiled.
This broke Ajdt support as "**/*.aj" files were no longer included on the classpath and MECLIPSE-538 fixed this.
MECLIPSE-104 "Add the ability to specify source inclusions/exclusions" was added put back this flexibility.
<project> [...] <build> [...] <plugins> [...] <plugin> <groupId>org.apache.maven.plugins</groupId> <artifactId>maven-eclipse-plugin</artifactId> <version>2.10</version> <configuration> <sourceExcludes> <sourceExclude>**/.svn/**</sourceExclude> </sourceExcludes> <sourceIncludes> <sourceInclude>**/*.myExtension</sourceInclude> </sourceIncludes> </configuration> </plugin> [...] </plugins> [...] </build> [...] </project>
This will result in the .classpath file having source directory entries similar to this:
<classpathentry kind="src" path="src/main/java" including="**/*.myExtension|**/*.java" excluding="**/.svn/**"/>