title: Different between mvn clean, mvn install and mvn clean install
body: <p>I'm using Maven for my project. It is not an issue if my project doesn't use some local resources.
  So that I'm following this guide
  <a href="https://stackoverflow.com/a/61576687/6720896">https://stackoverflow.com/a/61576687/6720896</a>
  to copy my local jar to local maven repository and validated by Maven.</p>
  <p>As you can see, in the <code>maven-install-plugin</code>, I'm setting to install local repository at <code>clean</code> phase.
  It means by <code>mvn clean</code>, maven will copy my jar to maven local repository.</p>
  <p>The problem is, if I run <code>mvn clean</code> and <code>mvn install</code> by two commands separately =&gt; there is no problem
  If i run <code>mvn clean install</code> =&gt; the build is failed as the log</p>
  <pre><code>Caused by: org.apache.maven.project.DependencyResolutionException: Could not resolve dependencies for project xxxx:xxxx:war:0.0.1-SNAPSHOT: Failure to find org.xxxx:xxxx-ws:jar:1.0.0 in https://repo.maven.apache.org/maven2 was cached in the local repository, resolution will not be reattempted until the update interval of central has elapsed or updates are forced
  </code></pre>
  <p>Seem like by default, maven always execute following order: validate &gt; compile &gt; clean &gt; install. I also tried  with 'mvn clean validate' but the error still occurs.</p>
  <p>Thank you for reading.</p>