title: What is the basic difference between maven compiler plugin and maven surefire plugin?
body: <p>What is the basic difference between maven compiler plugin and maven surefire plugin?</p>
  
  <p>Also, I wanted to define system variables inside the pom.xml, under plugin configuration and read it from my java code(Using System.property()).</p>
  
  <pre><code>&lt;configuration&gt;
     &lt;systemPropertyVariables&gt;
         &lt;envName&gt;testEnv&lt;/envName&gt;
     &lt;/systemPropertyVariables&gt;
  &lt;/configuration&gt;
  </code></pre>
  
  <p>This configuration is working with maven surefire plugin and I am able to read it in my java file, however, same is not working with maven compiler plugin.</p>