在项目根目录下的.classpath文件指定了项目中sourceFolder在MyEclipse中的排列顺序。
.classpath
1 <?xml version="1.0" encoding="UTF-8"?> 2 <classpath> 3 <classpathentry kind="src" output="target/classes" path="src/main/java"/> 4 <classpathentry excluding="**" kind="src" output="target/classes" path="src/main/resources"/> 5 <classpathentry kind="src" output="target/test-classes" path="src/test/java"/> 6 <classpathentry excluding="**" kind="src" output="target/test-classes" path="src/test/resources"/> 7 <classpathentry kind="con" path="org.eclipse.jdt.launching.JRE_CONTAINER"/> 8 <classpathentry kind="con" path="org.eclipse.m2e.MAVEN2_CLASSPATH_CONTAINER"> 9 <attributes> 10 <attribute name="org.eclipse.jst.component.dependency" value="/WEB-INF/lib"/> 11 </attributes> 12 </classpathentry> 13 <classpathentry kind="output" path="src/main/webapp/WEB-INF/classes"/> 14 </classpath>
其中 "kind=src" 的都是Source Folder,在MyEclipse中的排序参考这里的顺序。