title: Maven how to copy a specific folder inside a dependency to target/classes/myfolder
body: <p>I have a dependency:</p>
  
  <pre><code>&lt;dependency&gt;
      &lt;groupId&gt;org.webjars&lt;/groupId&gt;
      &lt;artifactId&gt;swagger-ui&lt;/artifactId&gt;
      &lt;version&gt;2.1.4&lt;/version&gt;
  &lt;/dependency&gt;
  </code></pre>
  
  <p>Inside swagger-ui-2.1.4.jar has <code>META-INF/resources/webjars/</code>.<br>
  I would like to copy webjars/ folder to <code>target/classes/myfolder</code></p>
  
  <p>I've read <a href="https://stackoverflow.com/questions/97640/force-maven2-to-copy-dependencies-into-target-lib">this question</a> and do the following: </p>
  
  <pre><code>&lt;plugin&gt;
      &lt;artifactId&gt;maven-dependency-plugin&lt;/artifactId&gt;
      &lt;executions&gt;
          &lt;execution&gt;
              &lt;phase&gt;install&lt;/phase&gt;
              &lt;goals&gt;
                  &lt;goal&gt;copy-dependencies&lt;/goal&gt;
              &lt;/goals&gt;
              &lt;configuration&gt;
                  &lt;includeGroupIds&gt;org.webjars&lt;/includeGroupIds&gt;
                  &lt;includeArtifactIds&gt;swagger-ui&lt;/includeArtifactIds&gt;
                  &lt;outputDirectory&gt;${project.build.directory}/classes/myfolder&lt;/outputDirectory&gt;
              &lt;/configuration&gt;
          &lt;/execution&gt;
      &lt;/executions&gt;
  &lt;/plugin&gt;
  </code></pre>
  
  <p>But it copies the <code>swagger-ui-2.1.4.jar</code> to the outputDirectory, which is not specifically what I need.</p>
  
  <p><strong>Question</strong>: Is there a possible solution?</p>