title: How can you tell if you are running a JUnit test through maven vs eclipse programatically?
body: <h3>Scenario:</h3>
  <p>I have a JUnit test with SysOut calls.
  I want to suppress these calls when maven is executing in order to reduce clutter on the screen.
  However, I'd still like it to print out when run through Eclipse.</p>
  <p>Is there a way to check programmatically if the Maven is the one executing the JUnit test?</p>
  <h3>Pseudo-code:</h3>
  <pre><code>if (!isCalledByMaven()) {
      System.out.println(&quot;Bob is not here.&quot;);
  }
  </code></pre>