title: "The PluginDescriptor not found" error when executing copy-resources maven-resources-plugin's goal
body: <p>As part of my pom.xml I copy some extra resources to the target directory as follows.</p>
  
  <pre><code> &lt;plugin&gt;
    &lt;groupId&gt;org.apache.maven.plugins&lt;/groupId&gt;
    &lt;artifactId&gt;maven-resources-plugin&lt;/artifactId&gt;
    &lt;version&gt;2.4.1&lt;/version&gt;
    &lt;executions&gt;
     &lt;execution&gt;
      &lt;id&gt;copy-package-doc&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;${project.build.directory}/package/${project.artifactId}-${project.version}/doc&lt;/outputDirectory&gt;
       &lt;nonFilteredFileExtensions&gt;
        &lt;nonFilteredFileExtension&gt;doc&lt;/nonFilteredFileExtension&gt;
       &lt;/nonFilteredFileExtensions&gt;
       &lt;resources&gt;
        &lt;resource&gt;
         &lt;directory&gt;doc&lt;/directory&gt;
         &lt;filtering&gt;true&lt;/filtering&gt;
         &lt;includes&gt;
          &lt;include&gt;**/*.doc&lt;/include&gt;
         &lt;/includes&gt;
         &lt;excludes&gt;
          &lt;exclude&gt;**/~*.doc&lt;/exclude&gt;
         &lt;/excludes&gt;
        &lt;/resource&gt;
       &lt;/resources&gt;
      &lt;/configuration&gt;
     &lt;/execution&gt;
     &lt;execution&gt;
      &lt;id&gt;copy-package-config&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;${project.build.directory}/package/${project.artifactId}-${project.version}&lt;/outputDirectory&gt;
       &lt;resources&gt;
        &lt;resource&gt;
         &lt;directory&gt;config&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 I package artifact I get error:</p>
  
  <pre><code>The PluginDescriptor for the plugin org.apache.maven.plugins:maven-resources-plugin was not found. Should have been in realm: ClassRealm[/plugins/org.apache.maven.plugins:maven-resources-plugin:2.4.1@48/thread:Worker-17, parent: null]
  </code></pre>
  
  <p>How to fix that? Why I get this error?</p>
  
  <p>Thanks,
  Rafal</p>