【问题标题】:Eclipse constantly removes src/it from souce foldersEclipse 不断从源文件夹中删除 src/it
【发布时间】:2016-04-19 07:27:45
【问题描述】:

我使用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)

【问题讨论】:

    标签: java eclipse classpath


    【解决方案1】:

    线

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

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

    你能去掉那个属性吗?

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 2015-03-10
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 2013-06-14
      • 2014-03-17
      相关资源
      最近更新 更多