title: Maven annotation processing processor not found
body: <p>I'm new to annotation processing and I'm trying to automating it with Maven. I've put this in my pom.xml:</p>
  
  <pre><code>&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;3.0&lt;/version&gt;
              &lt;configuration&gt;
                  &lt;annotationProcessors&gt;
                      &lt;annotationProcessor&gt;
                          co.aurasphere.revolver.annotation.processor.InjectAnnotationProcessor&lt;/annotationProcessor&gt;
                      &lt;annotationProcessor&gt;
                          co.aurasphere.revolver.annotation.processor.RevolverContextAnnotationProcessor&lt;/annotationProcessor&gt;
                  &lt;/annotationProcessors&gt;
                  &lt;source&gt;1.7&lt;/source&gt;
                  &lt;target&gt;1.7&lt;/target&gt;
              &lt;/configuration&gt;
          &lt;/plugin&gt;
      &lt;/plugins&gt;
  </code></pre>
  
  <p>The problem is that when I try to build the project I get a CompilationFailureException because Maven can't find the processors.</p>
  
  <p>I've found other questions like this, solved by putting the dependency outside the plugin. I tried that, but nothing changed for me.</p>
  
  <p>Am I missing something?</p>
  
  <p>Thank you.</p>
  
  <p><strong>EDIT</strong></p>
  
  <p>Here is my dependency on another project which contains both the processor and the annotations:</p>
  
  <pre><code>    &lt;dependencies&gt;
      &lt;dependency&gt;
          &lt;groupId&gt;co.aurasphere&lt;/groupId&gt;
          &lt;artifactId&gt;revolver-annotation-processor&lt;/artifactId&gt;
          &lt;version&gt;0.0.3-SNAPSHOT&lt;/version&gt;
      &lt;/dependency&gt;
  &lt;/dependencies&gt;
  </code></pre>
  
  <p><strong>EDIT 2</strong>:</p>
  
  <p>After further investigation, I decided to decompile the processor JAR (built with Maven) and it happens that... my classes are not there. For some reasons, Maven is not compiling my classes into the JAR and that's why the classes are not found. I've tried figuring out what's wrong on that build (this never happened to me before and I've used Maven for a while...).</p>
  
  <p>First of all, the packaging on that project is jar.
  The classes are all under src/main/java.
  I've checked in my pom.xml that the classpath and source path is the same.</p>
  
  <p>Here's the processor pom:</p>
  
  <pre><code>&lt;project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
  xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd"&gt;
  &lt;modelVersion&gt;4.0.0&lt;/modelVersion&gt;
  &lt;groupId&gt;co.aurasphere&lt;/groupId&gt;
  &lt;artifactId&gt;revolver-annotation-processor&lt;/artifactId&gt;
  &lt;version&gt;0.0.3-SNAPSHOT&lt;/version&gt;
  &lt;build&gt;
      &lt;plugins&gt;
          &lt;plugin&gt;
              &lt;artifactId&gt;maven-compiler-plugin&lt;/artifactId&gt;
              &lt;version&gt;3.1&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;/plugins&gt; 
  &lt;/build&gt;
  &lt;dependencies&gt;
      &lt;!-- https://mvnrepository.com/artifact/javax.inject/javax.inject --&gt;
      &lt;dependency&gt;
          &lt;groupId&gt;javax.inject&lt;/groupId&gt;
          &lt;artifactId&gt;javax.inject&lt;/artifactId&gt;
          &lt;version&gt;1&lt;/version&gt;
      &lt;/dependency&gt;
  
      &lt;!-- https://mvnrepository.com/artifact/org.apache.velocity/velocity --&gt;
      &lt;dependency&gt;
          &lt;groupId&gt;org.apache.velocity&lt;/groupId&gt;
          &lt;artifactId&gt;velocity&lt;/artifactId&gt;
          &lt;version&gt;1.7&lt;/version&gt;
      &lt;/dependency&gt;
  
  
  &lt;/dependencies&gt;
  </code></pre>
  
  <p> </p>
  
  <p><strong>EDIT 3</strong></p>
  
  <p><a href="http://aurasphereftp.altervista.org/maven.html" rel="noreferrer">Here</a>'s the output of a maven clean install on the processor project. Unfortunately the output is too long and I had to post an external link even if I know it's not good.</p>
  
  <p><strong>EDIT 4</strong></p>
  
  <p>Here are some screenshots of my dependency hierarchy: <a href="https://i.stack.imgur.com/IyyW3.png" rel="noreferrer"><img src="https://i.stack.imgur.com/IyyW3.png" alt="Eclipse"></a> and <a href="https://i.stack.imgur.com/vpdgT.png" rel="noreferrer"><img src="https://i.stack.imgur.com/vpdgT.png" alt="File System"></a>. </p>
  
  <p>Since the project was originally created as an Eclipse simple Java project and then converted to a Maven one, I tried to create a new Maven project and move everything to the new one in the hope that the problem was the Eclipse plugin that messed something up, but the error was still there.</p>