【问题标题】:Is there a way to make Eclipse Package Explorer show output directory content?有没有办法让 Eclipse Package Explorer 显示输出目录内容?
【发布时间】:2016-12-08 00:11:52
【问题描述】:

我讨厌不得不切换到导航器视图来查看构建的内容。例如,如果我想查看我的 *.properties 文件是否被移动等。

我尝试从包资源管理器的下拉菜单中删除所有过滤器...,但它仍然没有显示我的“目标”文件夹的内容。

我错过了什么吗?

我附上了我的 .classpath

    <?xml version="1.0" encoding="UTF-8"?>
<classpath>
    <classpathentry kind="src" output="target/classes" path="src/main/java">
        <attributes>
            <attribute name="optional" value="true"/>
            <attribute name="maven.pomderived" value="true"/>
        </attributes>
    </classpathentry>
    <classpathentry excluding="**" kind="src" output="target/classes" path="src/main/resources">
        <attributes>
            <attribute name="maven.pomderived" value="true"/>
        </attributes>
    </classpathentry>
    <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>
    <classpathentry excluding="**" kind="src" output="target/test-classes" path="src/test/resources">
        <attributes>
            <attribute name="maven.pomderived" value="true"/>
        </attributes>
    </classpathentry>
    <classpathentry kind="con" path="org.eclipse.jdt.launching.JRE_CONTAINER/org.eclipse.jdt.internal.debug.ui.launcher.StandardVMType/JavaSE-1.8">
        <attributes>
            <attribute name="maven.pomderived" value="true"/>
        </attributes>
    </classpathentry>
    <classpathentry kind="con" path="org.eclipse.m2e.MAVEN2_CLASSPATH_CONTAINER">
        <attributes>
            <attribute name="maven.pomderived" value="true"/>
        </attributes>
    </classpathentry>
    <classpathentry kind="output" path="target/classes"/>
</classpath>

【问题讨论】:

    标签: eclipse m2eclipse m2e package-explorer


    【解决方案1】:

    据我所知,只有 Project Explorer 视图(不是 Package Explorer)可以显示输出文件夹。
    在该(项目)视图中,您应该会在视图的右上角看到一个小向下箭头:

    • 选择选项Customize View 选项。
    • 取消选中过滤器列表中的“Java 输出文件夹”选项。

    您会看到与经典 java 构建生成的 see .class files 相同的过程。

    【讨论】:

      猜你喜欢
      • 2011-08-01
      • 2019-08-16
      • 2012-07-09
      • 1970-01-01
      • 2011-08-30
      • 2011-01-28
      • 2021-02-05
      • 1970-01-01
      • 2011-08-13
      相关资源
      最近更新 更多