簡體   English   中英

安裝Gradle Eclipse插件后,Gradle構建文件夾未顯示

[英]Gradle build folder not showing up after installing the Gradle Eclipse Plugin

我有一個項目,我使用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'
   }

我在Gradle論壇上找到了一個主題的解決方案( https://discuss.gradle.org/t/setting-eclipse-native-library-location/11075/2 )。

該插件安裝了一個帶有排除模式的資源過濾器,您可以在項目的屬性中手動刪除(資源 - >資源過濾器)。

您可以通過項目資源管理器選項中的自定義過濾器禁用過濾器,並取消選中其中的gradle構建選項。

您可以通過項目資源管理器選項中的自定義過濾器禁用過濾器,並取消選中其中的gradle構建選項。

選擇項目,然后選擇下圖中給出的項目菜單。 截圖
然后取消選中“Grale build folder”,然后您可以看到build文件夾,如下圖所示。 截圖

暫無
暫無

聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.

 
粵ICP備18138465號  © 2020-2024 STACKOOM.COM