title: How to exclude error prone from being run on unit tests?
body: <p>When <code>maven-compiler-plugin:3.8.0:testCompile @ foo-child</code> runs, thread dumps show errorprone is taking an extremely long time. I believe there is a bug with errorprone, but for now I'd rather just have errorprone not run on unit tests.</p>
  
  <p>I have a parent pom.xml:</p>
  
  <pre><code>&lt;modules&gt;
    &lt;module&gt;foo-child&lt;/module&gt;
  &lt;/modules&gt;
  &lt;dependencyManagement&gt;
    &lt;dependency&gt;
      &lt;groupId&gt;com.google.errorprone&lt;/groupId&gt;
      &lt;artifactId&gt;error_prone_annotations&lt;/artifactId&gt;
    &lt;/dependency&gt;
    // also has dependency for io.norberg auto-matter and com.google.auto.value auto-value
  &lt;/dependencyManagement&gt;
  &lt;build&gt;
    &lt;plugins&gt;
       &lt;plugin&gt;
          &lt;artifactId&gt;maven-compiler-plugin&lt;/artifactId&gt;
          // also has annotationProcessorPaths configuration for auto-matter and auto-value
       &lt;/plugin&gt;
    &lt;/plugins&gt;
  &lt;/build&gt;
  </code></pre>
  
  <p>Is there anything I can put in the foo-child pom.xml that will allow me to exclude <code>maven-compiler-plugin:3.8.0:testCompile @ foo-child</code> from being run at all.</p>
  
  <p>I cannot exclude error prone completely because other things like guava depend on it.</p>
  
  <p><strong>EDIT: Seems like <a href="https://groups.google.com/forum/#!topic/error-prone-discuss/espWBBaqV2Y" rel="noreferrer">this</a> user is trying to solve the same problem. Do you know how I could apply the solution given there to my case?</strong></p>