title: A zip file cannot include itself - Maven-assembly plugin
body: <p>I'm building a project using maven assembly plugin. But the process fail with the following error,(Here I pasted the error in jenkins. I checked without jenkins too.)</p>
  
  <pre><code>[INFO] ------------------------------------------------------------------------
  [INFO] BUILD FAILURE
  [INFO] ------------------------------------------------------------------------
  [INFO] Total time: 2:29.792s
  [INFO] Finished at: Fri Mar 14 10:26:58 IST 2014
  [INFO] Final Memory: 26M/75M
  [INFO] ------------------------------------------------------------------------
  Waiting for Jenkins to finish collecting data
  [ERROR] Failed to execute goal org.apache.maven.plugins:maven-assembly-plugin:2.2-beta-5:assembly (default) on project ExecutionBot: Failed to create assembly: Error creating     assembly archive jar-with-dependencies: A zip file cannot include itself -&gt; [Help 1]
  [ERROR] 
  [ERROR] To see the full stack trace of the errors, re-run Maven with the -e switch.
  [ERROR] Re-run Maven using the -X switch to enable full debug logging.
  [ERROR] 
  [ERROR] For more information about the errors and possible solutions, please read the following articles:
  [ERROR] [Help 1] http://cwiki.apache.org/confluence/display/MAVEN/MojoExecutionException
  </code></pre>
  
  <p>Configuration in pom.xml</p>
  
  <pre><code>&lt;plugin&gt;
      &lt;groupId&gt;org.apache.maven.plugins&lt;/groupId&gt;
      &lt;artifactId&gt;maven-assembly-plugin&lt;/artifactId&gt;
      &lt;executions&gt;
    &lt;execution&gt;
       &lt;goals&gt;
         &lt;goal&gt;assembly&lt;/goal&gt;
       &lt;/goals&gt;
       &lt;phase&gt;package&lt;/phase&gt;
       &lt;configuration&gt;
         &lt;descriptorRefs&gt;
           &lt;descriptorRef&gt;jar-with-dependencies&lt;/descriptorRef&gt;
        &lt;/descriptorRefs&gt;
        &lt;archive&gt;
          &lt;manifest&gt;
            &lt;mainClass&gt;com.starter.MyListner&lt;/mainClass&gt;
          &lt;/manifest&gt;
        &lt;/archive&gt;
       &lt;/configuration&gt;
       &lt;/execution&gt;
      &lt;/executions&gt;
  &lt;/plugin&gt;
  </code></pre>