安装Gradle Eclipse插件后,Gradle构建文件夹未显示

jlp*_*jlp 2 java eclipse gradle

我有一个项目,我使用gradle来构建.在我安装Gradle Eclipse插件之前,我能够在Eclipse中看到gradle build文件夹.但在安装插件(Buildship)并创建和构建新的Gradle项目后,我无法再在Project Explorer或Package Explorer或Navigator中看到build文件夹.我能够从Windows资源管理器中看到build文件夹和jar文件.我试图从自定义视图...更改设置,但它没有解决问题.有人可以让我知道如何让build文件夹出现吗?谢谢.

这是build.gradle:

apply plugin: 'java'
apply plugin: 'eclipse'
apply plugin: 'application'
mainClassName = 'com.ii.mainClass'

repositories {
    mavenCentral()
 }

 sourceCompatibility = 1.7
 targetCompatibility = 1.7

 dependencies {
      compile 'com.fasterxml.jackson.core:jackson-annotations:2.6.1'
      compile 'com.fasterxml.jackson.core:jackson-core:2.6.1'
      compile 'com.fasterxml.jackson.core:jackson-databind:2.6.1'
      compile 'org.springframework:spring-beans:4.2.0.RELEASE'
      compile 'org.springframework:spring-context:4.2.0.RELEASE'
      compile 'org.springframework:spring-core:4.2.0.RELEASE'
      compile 'org.springframework:spring-expression:4.2.0.RELEASE'
      compile 'org.springframework.xd:spring-xd-tuple:1.0.4.RELEASE'
   }
Run Code Online (Sandbox Code Playgroud)

pro*_*věk 8

您可以通过项目资源管理器选项中的自定义过滤器来禁用过滤器,并取消选中其中的 gradle build 选项。

您可以通过项目资源管理器选项中的自定义过滤器来禁用过滤器,并取消选中其中的 gradle build 选项。


小智 7

我在Gradle论坛上找到了一个主题的解决方案(https://discuss.gradle.org/t/setting-eclipse-native-library-location/11075/2).

该插件安装了一个带有排除模式的资源过滤器,您可以在项目的属性中手动删除(资源 - >资源过滤器).