title: Excluding "provided" dependencies from Maven assembly
body: <p>I am trying to use the Maven assembly plugin to build a jar-with-dependencies, <em>except</em> those that have provided scope.</p>
  
  <p>I have copied the jar-with-dependencies into an assembly.xml file and configured its use in my pom. Here it is for reference:</p>
  
  <pre><code>&lt;?xml version="1.0" encoding="UTF-8"?&gt;
  &lt;assembly&gt;
    &lt;id&gt;injectable-jar&lt;/id&gt;
    &lt;formats&gt;
      &lt;format&gt;jar&lt;/format&gt;
    &lt;/formats&gt;
    &lt;includeBaseDirectory&gt;false&lt;/includeBaseDirectory&gt;
    &lt;dependencySets&gt;
      &lt;dependencySet&gt;
        &lt;unpack&gt;true&lt;/unpack&gt;
        &lt;scope&gt;runtime&lt;/scope&gt;
      &lt;/dependencySet&gt;
    &lt;/dependencySets&gt;
    &lt;fileSets&gt;
      &lt;fileSet&gt;
        &lt;directory&gt;${project.build.outputDirectory}&lt;/directory&gt;
      &lt;/fileSet&gt;
    &lt;/fileSets&gt;
  &lt;/assembly&gt;
  </code></pre>
  
  <p>I have found out, that if I set the scope to <code>provided</code>, then I can build a jar that contains exactly what I <em>don't</em> want, but I cannot figure out how to get inverse behavior of that.</p>