title: Spring Data JPA - Specifications and Querydsl
body: <p>I'm trying to integrate QueryDSL to my existing project with Spring Data, I've tried different samples and now I've decided to stick to this one <a href="https://spring.io/blog/2011/04/26/advanced-spring-data-jpa-specifications-and-querydsl/" rel="noreferrer">Advanced Spring Data JPA - Specifications and Querydsl</a>. </p>
  
  <p><strong>Problem</strong>: when I run the project as Maven generate-sources I get this error </p>
  
  <pre><code>error: Annotation processor 'com.mysema.query.apt.jpa.JPAAnnotationProcessor' not found
  </code></pre>
  
  <p>I'm adding this plugin to my pom.xml as the blog post indicates:</p>
  
  <pre><code>&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;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;target/generated-sources&lt;/outputDirectory&gt;
          &lt;processor&gt;com.mysema.query.apt.jpa.JPAAnnotationProcessor&lt;/processor&gt;
        &lt;/configuration&gt;
      &lt;/execution&gt;
    &lt;/executions&gt;
  &lt;/plugin&gt;
  </code></pre>
  
  <p>and the dependency:</p>
  
  <pre><code>&lt;dependency&gt;
       &lt;groupId&gt;com.mysema.querydsl&lt;/groupId&gt;
       &lt;artifactId&gt;querydsl-sql&lt;/artifactId&gt;
       &lt;version&gt;3.6.9&lt;/version&gt;
  &lt;/dependency&gt;
  </code></pre>
  
  <p>Can anyone point me in the right direction on how to solve this or how to properly integrate QueryDSL to my project ? Thanks in advance!</p>