title: Jenkins doesn't run a maven plugin (checkstyle) on the build process
body: <p>I'm running a maven project using Jenkins. The project is using the checkstyle plugin to verify the java code and fail the build if errors are found.
  I've added the plugin to my parent pom file and added it to the "validate" phase.
  When running "mvn validate" from command line on that POM, the "checkstyle" plugin runs and checks the code. When running from Jenkins, the checkstyle plugin doesn't run.
  Here is the parent pom build tag:</p>
  
  <pre><code>&lt;build&gt;
  &lt;plugins&gt;
      &lt;plugin&gt;
          &lt;executions&gt;
              &lt;execution&gt;
                  &lt;goals&gt;
                      &lt;goal&gt;check&lt;/goal&gt;
                  &lt;/goals&gt;
                  &lt;phase&gt;validate&lt;/phase&gt;
              &lt;/execution&gt;
          &lt;/executions&gt;
          &lt;groupId&gt;org.apache.maven.plugins&lt;/groupId&gt;
          &lt;artifactId&gt;maven-checkstyle-plugin&lt;/artifactId&gt;
          &lt;version&gt;2.9.1&lt;/version&gt;
          &lt;configuration&gt;
              &lt;configLocation&gt;http://10.2.3.4/CheckStyle/checkstyle.xml&lt;/configLocation&gt;
              &lt;failsOnError&gt;true&lt;/failsOnError&gt;
          &lt;/configuration&gt;
      &lt;/plugin&gt;
  &lt;/plugins&gt;
  </code></pre>
  
  <p></p>
  
  <p>How can I make Jenkins not to ignore the build tag so it will run the checkstyle plugin in the validate phase?
  Thanks!</p>