title: Run Maven commands (other than "Lifecycle" goals) from within IntelliJ 2019
body: <p>In IntelliJ 2019.3 Ultimate, I am working with a Maven-based project. I never installed Maven on my Mac. So I am using only the Maven bundled inside the IntelliJ app.</p>
  
  <p>The <em>Maven</em> panel within IntelliJ displays several "Lifecycle" Maven goals such as <code>clean</code> and <code>install</code>. These work well. So this Question is <em>not</em> a duplicate of: <a href="https://stackoverflow.com/q/27246065/642706"><em>How to execute mvn command using IntelliJ IDEA?</em></a>. </p>
  
  <p>I read about using other Maven commands such as this:</p>
  
  <pre class="lang-bash prettyprint-override"><code>mvn dependency:tree | grep "guava"
  </code></pre>
  
  <p>This does work from my Apple Terminal.app with error since I have no Maven installed separately:</p>
  
  <blockquote>
    <p>zsh: command not found: mvn</p>
  </blockquote>
  
  <p>This does not work from the <em>Terminal</em> window within IntelliJ:</p>
  
  <blockquote>
    <p>zsh: command not found: zsh:</p>
  </blockquote>
  
  <p>➥ So how does one run other Maven commands such as <code>mvn dependency</code> using the Maven built into IntelliJ?</p>