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

标签 java eclipse gradle

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

这是 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'
   }

最佳答案

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

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

关于java - 安装 Gradle Eclipse 插件后,Gradle 构建文件夹未显示,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/32403227/

相关文章:

android - 如何修复 ProGuard/R8 导致的崩溃?

java - 正则表达式匹配反斜杠后跟引号

java - 使用snakeYaml更新yaml文件中的值

java - 确定集合或数组中对象的类型

java - Eclipse 和其他用于调试并发代码的 Java IDE

android - Android Gradle构建配置-重命名生成的APK

java - LibGDX - PixelBufferObject 创建、绑定(bind)和读取

java - 抛出异常时中断

eclipse - 扩展 Eclipse Package Explorer 是不可能的吗?

android - android studio无限启动(Gradle : Resolve dependencies ':app:_debugCompile' )