title: Not able to generate querydsl Q classes
body: <p>I believe this question has been asked here for a while but there wasn't any accepted response. I've actually tried various tutorials but not getting them. I have a <code>multi modules</code> <code>maven</code> project. SO i have <code>dependency-management</code> and <code>plugin-management</code> in the parent project. the poms look like below:</p>
  
  <pre><code>&lt;!--parent ${querydsl.version} = 2.3.2--&gt;
   &lt;build&gt;
      &lt;pluginManagement&gt;
          &lt;plugins&gt;
              &lt;plugin&gt;
                  &lt;groupId&gt;org.apache.maven.plugins&lt;/groupId&gt;
                  &lt;artifactId&gt;maven-compiler-plugin&lt;/artifactId&gt;
                  &lt;version&gt;2.0.2&lt;/version&gt;
                  &lt;configuration&gt;
                      &lt;source&gt;1.7&lt;/source&gt;
                      &lt;target&gt;1.7&lt;/target&gt;
                      &lt;encoding&gt;${project.build.sourceEncoding}&lt;/encoding&gt;
                      &lt;!--                        &lt;fork&gt;true&lt;/fork&gt;
                      --&gt;                        
                      &lt;meminitial&gt;128m&lt;/meminitial&gt;
                      &lt;maxmem&gt;512m&lt;/maxmem&gt;
                  &lt;/configuration&gt;
              &lt;/plugin&gt;
              &lt;plugin&gt;
                  &lt;groupId&gt;org.apache.maven.plugins&lt;/groupId&gt;
                  &lt;artifactId&gt;maven-resources-plugin&lt;/artifactId&gt;
                  &lt;version&gt;2.4.3&lt;/version&gt;
                  &lt;configuration&gt;
                      &lt;encoding&gt;${project.build.sourceEncoding}&lt;/encoding&gt;
                  &lt;/configuration&gt;
              &lt;/plugin&gt;
  
              &lt;plugin&gt;
              &lt;groupId&gt;com.mysema.maven&lt;/groupId&gt;
              &lt;artifactId&gt;maven-apt-plugin&lt;/artifactId&gt;
              &lt;version&gt;1.0&lt;/version&gt;
              &lt;/plugin&gt;
          &lt;/plugins&gt;
      &lt;/pluginManagement&gt;
  &lt;/build&gt;
  &lt;dependencyManagment&gt;
      &lt;dependencies&gt;
       &lt;!-- Querydsl --&gt;
          &lt;dependency&gt;
              &lt;groupId&gt;com.mysema.querydsl&lt;/groupId&gt;
              &lt;artifactId&gt;querydsl-core&lt;/artifactId&gt;
              &lt;version&gt;${querydsl.version}&lt;/version&gt;
          &lt;/dependency&gt;
  
          &lt;dependency&gt;
              &lt;groupId&gt;com.mysema.querydsl&lt;/groupId&gt;
              &lt;artifactId&gt;querydsl-apt&lt;/artifactId&gt;
              &lt;version&gt;${querydsl.version}&lt;/version&gt;
          &lt;/dependency&gt;
  
          &lt;dependency&gt;
              &lt;groupId&gt;com.mysema.querydsl&lt;/groupId&gt;
              &lt;artifactId&gt;querydsl-jpa&lt;/artifactId&gt;
              &lt;version&gt;${querydsl.version}&lt;/version&gt;
          &lt;/dependency&gt;
  
          &lt;dependency&gt;
              &lt;groupId&gt;com.mysema.querydsl&lt;/groupId&gt;
              &lt;artifactId&gt;querydsl-mongodb&lt;/artifactId&gt;
              &lt;version&gt;${querydsl.version}&lt;/version&gt;
          &lt;/dependency&gt;
          &lt;!-- End Querydsl --&gt;
      &lt;/dependencies&gt;
  &lt;/dependencyManagment&gt;
  </code></pre>
  
  <p>I have in the db mobule both jpa and mongo, both in separate packages.But i only wish to use <code>query dsl</code> for mongodb. the db module pom looks like below:</p>
  
  <pre><code>&lt;build&gt;
      &lt;plugins&gt;
          &lt;plugin&gt;
              &lt;groupId&gt;org.apache.maven.plugins&lt;/groupId&gt;
              &lt;artifactId&gt;maven-compiler-plugin&lt;/artifactId&gt;
              &lt;version&gt;2.3.2&lt;/version&gt;
              &lt;configuration&gt;
                  &lt;source&gt;1.7&lt;/source&gt;
                  &lt;target&gt;1.7&lt;/target&gt;
              &lt;/configuration&gt;
          &lt;/plugin&gt;
  
                  &lt;plugin&gt;
                      &lt;groupId&gt;com.mysema.maven&lt;/groupId&gt;
                      &lt;artifactId&gt;maven-apt-plugin&lt;/artifactId&gt;
                      &lt;version&gt;1.0.2&lt;/version&gt;
                      &lt;executions&gt;
                          &lt;execution&gt;
                              &lt;phase&gt;generate-sources&lt;/phase&gt;
                              &lt;goals&gt;
                                  &lt;goal&gt;process&lt;/goal&gt;
                              &lt;/goals&gt;
                              &lt;configuration&gt;
                                  &lt;outputDirectory&gt;${generatedSources}&lt;/outputDirectory&gt;
                                   &lt;processor&gt;com.mysema.query.mongodb.morphia.MorphiaAnnotationProcessor&lt;/processor&gt;
                              &lt;/configuration&gt;
                          &lt;/execution&gt;
                      &lt;/executions&gt;
                  &lt;/plugin&gt;
  
  
      &lt;/plugins&gt;
  &lt;/build&gt;
  &lt;dependencies&gt;
      &lt;!-- Querydsl --&gt;
         &lt;dependency&gt;
              &lt;groupId&gt;com.mysema.querydsl&lt;/groupId&gt;
              &lt;artifactId&gt;querydsl-core&lt;/artifactId&gt;
          &lt;/dependency&gt;
  
          &lt;dependency&gt;
              &lt;groupId&gt;com.mysema.querydsl&lt;/groupId&gt;
              &lt;artifactId&gt;querydsl-apt&lt;/artifactId&gt;
          &lt;/dependency&gt;
  
      &lt;dependency&gt;
          &lt;groupId&gt;com.mysema.querydsl&lt;/groupId&gt;
          &lt;artifactId&gt;querydsl-mongodb&lt;/artifactId&gt;
      &lt;/dependency&gt;
      &lt;!-- End Querydsl --&gt;
  &lt;/dependencies&gt;
  </code></pre>
  
  <p>I'm using <code>spring data framework 3.1</code> with its <code>@Document</code> annotation on the mongo entities. I also use <code>MongoRepository</code> so am wondering if i should so something else before getting the classes Geneated. </p>
  
  <p>thanks for reading</p>