title: Failed to read artifact descriptor for org.apache.maven.plugins:maven-resources-plugin:jar:3.0.5
body: <p>I want to build a web app using spring boot and react js (followed the tutorial <a href="https://www.blackpepper.co.uk/blog/using-create-react-app-with-spring" rel="nofollow noreferrer">here</a>).
  In pom.xml I added:</p>
  
  <pre><code>&lt;plugin&gt;
      &lt;artifactId&gt;maven-resources-plugin&lt;/artifactId&gt;
      &lt;version&gt;3.0.5&lt;/version&gt;
      &lt;executions&gt;
          &lt;execution&gt;
              &lt;id&gt;Copy frontend production build to resources&lt;/id&gt;
              &lt;phase&gt;package&lt;/phase&gt;
              &lt;goals&gt;
                  &lt;goal&gt;copy-resources&lt;/goal&gt;
              &lt;/goals&gt;
              &lt;configuration&gt;
                  &lt;outputDirectory&gt;${basedir}/target/classes&lt;/outputDirectory&gt;
                  &lt;resources&gt;
                      &lt;resource&gt;
                          &lt;directory&gt;src/main/app/build/&lt;/directory&gt;
                          &lt;filtering&gt;true&lt;/filtering&gt;
                      &lt;/resource&gt;
                  &lt;/resources&gt;
              &lt;/configuration&gt;
          &lt;/execution&gt;
      &lt;/executions&gt;
  &lt;/plugin&gt;
  </code></pre>
  
  <p>When executing mvn clean package, i get the errors below. Maven version is 3.0.5.</p>
  
  <blockquote>
    <p>Plugin org.apache.maven.plugins:maven-resources-plugin:3.0.5 or one of
    its dependencies could not be resolved: Failed to read artifact
    descriptor for
    org.apache.maven.plugins:maven-resources-plugin:jar:3.0.5: Failure to
    find org.apache.maven.plugins:maven-resources-plugin:pom:3.0.5 in
    <a href="http://repo.maven.apache.org/maven2" rel="nofollow noreferrer">http://repo.maven.apache.org/maven2</a> was cached in the local
    repository, resolution will not be reattempted until the update
    interval of central has elapsed or updates are forced</p>
  </blockquote>
  
  <p>EDIT:
  I have changed the in maven-resources-plugin tag, the maven version to 3.0.2 but now i get errors on:</p>
  
  <pre><code>&lt;plugin&gt;
      &lt;groupId&gt;com.github.eirslett&lt;/groupId&gt;
      &lt;artifactId&gt;frontend-maven-plugin&lt;/artifactId&gt;
      &lt;version&gt;1.2&lt;/version&gt;
      &lt;executions&gt;
          &lt;execution&gt;
              &lt;id&gt;Install Node and Yarn&lt;/id&gt;
              &lt;goals&gt;
                  &lt;goal&gt;install-node-and-yarn&lt;/goal&gt;
              &lt;/goals&gt;
          &lt;/execution&gt;
  
          &lt;execution&gt;
              &lt;id&gt;yarn install&lt;/id&gt;
              &lt;goals&gt;
                  &lt;goal&gt;yarn&lt;/goal&gt;
              &lt;/goals&gt;
              &lt;configuration&gt;
                  &lt;arguments&gt;install&lt;/arguments&gt;
              &lt;/configuration&gt;
          &lt;/execution&gt;
  
          &lt;execution&gt;
              &lt;id&gt;Frontend production build&lt;/id&gt;
              &lt;phase&gt;package&lt;/phase&gt;
              &lt;goals&gt;
                  &lt;goal&gt;yarn&lt;/goal&gt;
              &lt;/goals&gt;
              &lt;configuration&gt;
                  &lt;arguments&gt;run build&lt;/arguments&gt;
              &lt;/configuration&gt;
          &lt;/execution&gt;
      &lt;/executions&gt;
      &lt;configuration&gt;
          &lt;nodeVersion&gt;v7.2.0&lt;/nodeVersion&gt;
          &lt;yarnVersion&gt;v0.18.0&lt;/yarnVersion&gt;
          &lt;installDirectory&gt;.mvn&lt;/installDirectory&gt;
          &lt;workingDirectory&gt;src/main/app&lt;/workingDirectory&gt;
      &lt;/configuration&gt;
  &lt;/plugin&gt;
  </code></pre>
  
  <p>ERROR:</p>
  
  <blockquote>
    <p>[ERROR] Failed to execute goal
    com.github.eirslett:frontend-maven-plugin:1.2:install-node-and-yarn
    (Install Node and Yarn) on project ema: The plugin
    com.github.eirslett:frontend-maven-plugin:1.2 requires Maven version
    3.1.0 -> [Help 1]</p>
  </blockquote>