title: maven assembly include the current project jar in the final zip/tar
body: <p>I am using maven assembly plugin to generate a <code>.tar</code> file contain several other files, dependent jars. All the files are being copied correctly to the given folders in the config <code>assembly.xml</code>.</p>
  
  <p>I would like to include the original project jar too in the final tar file, but not seeing it currently in it.</p>
  
  <p>I do get the following message when I issue <code>assembly:single</code> goal:</p>
  
  <blockquote>
    <p>[WARNING] Cannot include project artifact: com.my.newpkg.project1:jar:0.0.3.0; it doesn't have an associated file or directory.</p>
  </blockquote>
  
  <p>After reading over SO, it seems adding the following configs to <code>pom.xml</code> should add the jar, but still not getting the expected result.</p>
  
  <h3>config in pom.xml</h3>
  
  <pre><code>&lt;plugin&gt;
     &lt;groupId&gt;org.apache.maven.plugins&lt;/groupId&gt;
     &lt;artifactId&gt;maven-jar-plugin&lt;/artifactId&gt;
     &lt;version&gt;2.4&lt;/version&gt;
     &lt;configuration&gt;
         &lt;archive&gt;
             &lt;manifest&gt;
                 &lt;mainClass&gt;com.my.newpkg.project1.MainClass&lt;/mainClass&gt;
                 &lt;addClasspath&gt;true&lt;/addClasspath&gt;
                 &lt;classpathPrefix&gt;lib/&lt;/classpathPrefix&gt;
             &lt;/manifest&gt;
         &lt;/archive&gt;
     &lt;/configuration&gt;
  &lt;/plugin&gt;
  </code></pre>
  
  <h3>snippet of assembly.xml</h3>
  
  <pre><code>&lt;formats&gt;
      &lt;format&gt;dir&lt;/format&gt;
      &lt;format&gt;tar&lt;/format&gt;
  &lt;/formats&gt;
  &lt;includeBaseDirectory&gt;false&lt;/includeBaseDirectory&gt;
  &lt;dependencySets&gt;
      &lt;dependencySet&gt;
          &lt;outputDirectory&gt;lib&lt;/outputDirectory&gt;
          &lt;excludes&gt;
              &lt;exclude&gt;junit:junit&lt;/exclude&gt;
          &lt;/excludes&gt;
          &lt;fileMode&gt;0755&lt;/fileMode&gt;
      &lt;/dependencySet&gt;
  &lt;/dependencySets&gt;
  </code></pre>
  
  <p>So, the configs are not yet correct? or Am I missing something here? </p>
  
  <p>How can we add the current project jar into the final tar</p>