1 Specifying sourceIncludes/sourceExcludes
This will result in the .classpath file having source directory entries similar to this:
<project>
[...]
<build>
[...]
<plugins>
[...]
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-eclipse-plugin</artifactId>
<version>2.8</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/**"/>