title: How to make source code of dependent projects available for gwt compiler?
body: <p>Currently I'm trying to set up a GWT project, not a completely new one, I've only replaced some of the dependencies resp. I've introduced new ones. </p>
  
  <p>I've got a multi-project project which is generating a lot of java files (dto's) by using xtext. As result of one these projects a .jar and a sources.jar get created. </p>
  
  <p>These jars I've added added as maven dependencies. </p>
  
  <pre><code>&lt;dependency&gt;
      &lt;groupId&gt;com.xxx.xxx&lt;/groupId&gt;
      &lt;artifactId&gt;xxx-gwt&lt;/artifactId&gt;
      &lt;version&gt;${xxx.version}&lt;/version&gt;
      &lt;scope&gt;provided&lt;/scope&gt;
  &lt;/dependency&gt;
  &lt;dependency&gt;
      &lt;groupId&gt;com.xxx.xxx&lt;/groupId&gt;
      &lt;artifactId&gt;xxx-gwt&lt;/artifactId&gt;
      &lt;version&gt;${xxx.version}&lt;/version&gt;
      &lt;classifier&gt;sources&lt;/classifier&gt;
      &lt;scope&gt;provided&lt;/scope&gt;
  &lt;/dependency&gt;
  </code></pre>
  
  <p>Eclipse didn't show any errors. In the package explorer the maven dependencies are available. </p>
  
  <p>If I try to compile my gwt project with the new dependencies I get the following error: </p>
  
  <pre><code>[ERROR] Errors in 'file:/C:/xxx/.../.../.../xxxDetailPresenterImpl.java'
  [INFO]          [ERROR] Line 82: No source code is available for type com.xxx.xxx.dto.xxxDetailResultSetDto; did you forget to inherit a required module?
  </code></pre>
  
  <p>Any idea? All dependent projects which are used in the client part must be available as sources. This project is available as sources...</p>
  
  <p>I've read about the possibility to define a module in the referenced projects and afterwards inherit it in the gwt.xml. But to be honest, I don't know how, because the dependent project is completely automatically generated. Eclipse said, it is not even a Java project. </p>