title: maven-assembly-plugin: jars without version only
body: <p>I need to create a distribution of my app with all of (my own) jars without version numbers.</p>
  
  <p>I managed to configure the the assembly descriptor to add the jars without version numbers but it also adds the same jars <em>with</em> version numbers:</p>
  
  <pre><code>&lt;assembly &gt;
    &lt;id&gt;distribution&lt;/id&gt;
    &lt;formats&gt;
      &lt;format&gt;jar&lt;/format&gt;
    &lt;/formats&gt;
    &lt;includeBaseDirectory&gt;false&lt;/includeBaseDirectory&gt;
    &lt;moduleSets&gt;
      &lt;moduleSet&gt;
        &lt;useAllReactorProjects&gt;true&lt;/useAllReactorProjects&gt;
        &lt;binaries&gt;
          &lt;outputFileNameMapping&gt;${artifact.artifactId}.${artifact.extension}&lt;/outputFileNameMapping&gt;
          &lt;outputDirectory&gt;.&lt;/outputDirectory&gt;
          &lt;unpack&gt;false&lt;/unpack&gt;
        &lt;/binaries&gt;
      &lt;/moduleSet&gt;
    &lt;/moduleSets&gt;
  &lt;/assembly&gt;
  </code></pre>
  
  <p>The output contains:</p>
  
  <pre><code>META-INF
  DependingOnJarWithoutVersionNumber.jar
  DependingOnJarWithoutVersionNumber-10.11.123.jar
  JarWithoutVersionNumber.jar
  JarWithoutVersionNumber-10.11.123.jar
  </code></pre>
  
  <blockquote>
    <p>How do I prevent adding the jars <em>with</em> version number while keeping those <em>without</em> version number?</p>
  </blockquote>
  
  <hr>
  
  <p>The final goal it to apply the version number removal only for own jars (with known <code>groupId</code>s.</p>