maven项目中报错:The project cannot be built until build path errors are resolved
打开工程中的.classpath把其中的<classpathentry kind="src" output="target/test-classes" path="src/test/java">
<attributes>
<attribute name="optional" value="true"/>
<attribute name="maven.pomderived" value="true"/>
</attributes>
</classpathentry>
这部分内容删除后,重新构建项目就可以了。