title: Classes generated by QueryDSL/APT and static imports
body: <p>Apparently I can't use classes generated with APT in unit tests that use static imports. (Maven sample project can be downloaded <a href="http://www.file-upload.net/download-4402735/apt-bug.tar.gz.html" rel="nofollow">here</a>)</p>
  
  <p>If the following sample class</p>
  
  <pre><code>import com.mysema.query.jpa.impl.JPAQuery;
  
  public class UserStore {
  
      public void something() {
          new JPAQuery(null).from(QUser.user).list(QUser.user.login);
      }
  
  }
  </code></pre>
  
  <p>is changed to</p>
  
  <pre><code>import static something.QUser.user;
  import com.mysema.query.jpa.impl.JPAQuery;
  
  public class UserStore {
  
      public void something() {
          new JPAQuery(null).from(user).list(user.login);
      }
  
  }
  </code></pre>
  
  <p>the build process (mvn clean install) will fail:</p>
  
  <pre><code>[INFO] BUILD FAILURE
  [INFO] ------------------------------------------------------------------------
  [INFO] Total time: 3.466s
  [INFO] Finished at: Wed May 30 16:05:40 CEST 2012
  [INFO] Final Memory: 18M/150M
  [INFO] ------------------------------------------------------------------------
  [ERROR] Failed to execute goal org.apache.maven.plugins:maven-compiler-plugin:2.3.2:compile (default-compile) on project apt-bug: Compilation failure: Compilation failure:
  ...
  </code></pre>
  
  <p>(<a href="http://pastebin.com/z4CZ2PLn" rel="nofollow">full error message</a>)</p>
  
  <p>Does this mean that I cannot use these generated classes with static import in unit tests or is there a problem in the pom.xml files?</p>
  
  <p>EDIT:</p>
  
  <p>POM file: <a href="http://pastebin.com/gvycZmXD" rel="nofollow">http://pastebin.com/gvycZmXD</a></p>