Eclipse 不断从源文件夹中删除 src/it

Eclipse constantly removes src/it from souce folders

我正在使用 maven-failsafe-plugin 到 运行 集成测试,它们存储在 src/it 源文件夹中。但是 Eclipse 不断将其从 .classpath.

中删除
<classpathentry kind="src" output="target/test-classes" path="src/it">
    <attributes>
        <attribute name="optional" value="true"/>
        <attribute name="maven.pomderived" value="true"/>
    </attributes>
</classpathentry>

有人遇到同样的问题吗?我该如何解决这个问题? 我正在使用 Eclipse Mars.1 Release (4.5.1)

<attribute name="maven.pomderived" value="true"/>

听起来像 classpathentry 被 pom 或 eclipse 的 maven 插件放置在那里。这意味着每次刷新项目或再次读取 pom 时,都会覆盖此条目。

你能删除那个属性吗?