title: Eclipse Enabling Annotation Processing leads to Errors
body: <p>I have Eclipse Luna and a standard GWT web application project. I tried to enable annotation processing tho make <a href="https://github.com/google/dagger" rel="nofollow noreferrer">Dagger2</a> working. Here are my project specific configurations: </p>
  
  <p><img src="https://i.stack.imgur.com/aBMUk.png" alt="enter image description here"></p>
  
  <p><img src="https://i.stack.imgur.com/m2BWm.png" alt="enter image description here"></p>
  
  <p>After I hit apply Eclipse shows me the following error: </p>
  
  <p><img src="https://i.stack.imgur.com/TJ6pT.png" alt="enter image description here"></p>
  
  <p><strong>How do I solve this error?</strong></p>
  
  <p><strong>Edit:</strong> I created a demo project to demonstrate the problem: <a href="https://github.com/confile/GWT-Dagger2-Demo" rel="nofollow noreferrer">https://github.com/confile/GWT-Dagger2-Demo</a> </p>
  
  <p>I looked at the pom.xml of dagger2 compiler and added further dependencies but still no progress. Here is what I did: </p>
  
  <p><img src="https://i.stack.imgur.com/bI26Q.png" alt="enter image description here"></p>
  
  <p>Edit: I tried to use the dagger2 compiler jar with dependencies from <a href="https://oss.sonatype.org/content/repositories/snapshots/com/google/dagger/dagger-compiler/2.0-SNAPSHOT/" rel="nofollow noreferrer">here</a>: </p>
  
  <p>When I do GWT compile I get the following errors: </p>
  
  <pre><code>Compiling module test.GWTT
     Tracing compile failure path for type 'test.client.test2.Dagger_MyWidgetGinjector'
        [ERROR] Errors in 'file:/Users/mg/Documents/Eclipse/Eclipse-4.4/GWTT/.apt_generated/test/client/test2/Dagger_MyWidgetGinjector.java'
           [ERROR] Line 9: No source code is available for type javax.inject.Provider&lt;T&gt;; did you forget to inherit a required module?
     Tracing compile failure path for type 'test.client.test2.MyWidgetClientModule$$ProvideSomeServiceFactory'
        [ERROR] Errors in 'file:/Users/mg/Documents/Eclipse/Eclipse-4.4/GWTT/.apt_generated/test/client/test2/MyWidgetClientModule$$ProvideSomeServiceFactory.java'
           [ERROR] Line 7: No source code is available for type dagger.Factory&lt;T&gt;; did you forget to inherit a required module?
     [ERROR] Aborting compile due to errors in some input files
  </code></pre>
  
  <p>I have the following libs on my Java build path: </p>
  
  <p><img src="https://i.stack.imgur.com/cj3m2.png" alt="enter image description here"></p>
  
  <p>Edit Gradle: I also tried to activate annotation processing with gradle in eclipse. Here is my gradle build.gradle file: </p>
  
  <pre><code>apply plugin: 'apt'
  apply plugin: 'java'
  apply plugin: 'eclipse'
  apply plugin: 'war'
  apply plugin: 'gwt'
  apply plugin: 'jetty'
  
  sourceCompatibility = 1.7
  version = '1.0'
  
  eclipse {
      classpath {
         downloadSources=true
         downloadJavadoc=true
      }
  }
  
  buildscript {
      repositories {
          mavenCentral()
          jcenter()
          maven {
              url "https://oss.sonatype.org/content/repositories/snapshots/"
          }
      }
      dependencies {
          classpath 'de.richsource.gradle.plugins:gwt-gradle-plugin:0.6'      
          classpath 'com.jimdo.gradle:gradle-apt-plugin:0.5-SNAPSHOT'
      }
  }
  
  
  repositories {
      mavenCentral()
      maven {
          name = "sonatype"
          url = "https://oss.sonatype.org/content/repositories/snapshots/"
      }
  }
  
  dependencies {
      apt 'com.google.dagger:dagger-compiler:2.0-SNAPSHOT:jar-with-dependencies'
  
      compile 'com.google.guava:guava:18.0'
      compile 'com.google.guava:guava-gwt:18.0'
      compile 'javax.inject:javax.inject:1'   
      compile 'com.google.dagger:dagger:2.0-SNAPSHOT'
  }
  
  gwt {
      gwtVersion='2.7.0'
      logLevel = 'INFO'
      minHeapSize = "512M";
      maxHeapSize = "1024M";
  
  
      compiler {
          strict = true;
      }
  
      modules 'test.GWTT'     
  }
  
  tasks.withType(de.richsource.gradle.plugins.gwt.AbstractGwtActionTask) {
      args '-XjsInteropMode', 'JS'
  }
  </code></pre>
  
  <p>After `gradle build``I get: </p>
  
  <pre><code>/Users/mg/Documents/Grails/GGTS3.6.2/TestGradle2/src/main/java/test/client/GWTT.java:16: error: cannot find symbol
           MyWidgetGinjector injector = Dagger_MyWidgetGinjector.create();
                                        ^
    symbol:   variable Dagger_MyWidgetGinjector
  </code></pre>
  
  <p>I can see that <code>Dagger_MyWidgetGinjector.java</code>has been created in <code>build/source/apt/test/client/test2/</code>. I still need to figure out how I can add the newly generated source such that eclipse will find it using refresh dependencies?</p>