title: Java war file wrongly (?) detected as an invalid zip file
body: <p>To do a test, I have to add a <code>jar</code> file into a <code>Java</code> <em>war</em> file I've created with <code>Maven</code>. The <em>war</em> file works itself fine.</p>
  
  <p>To insert my <code>lz4-java-1.6.0.jar</code> into <code>application-metier-et-gestion.war</code> on internal zip folder <code>/WEB-INF/lib</code>, I use this command :</p>
  
  <p><code>zip -b WEB-INF/lib application-metier-et-gestion.war lz4-java-1.6.0.jar</code></p>
  
  <p>But I receive that error message :<br>
  <em>zip warning: expected 354 entries but found 84</em>
  <em>zip error: Zip file structure invalid (application-metier-et-gestion.war)</em></p>
  
  <p>I can do and redo <code>mvn clean install</code> it will always create a runnable war that seems perfect to me, but that <code>zip</code> declares invalid. Who is wrong ?</p>
  
  <ul>
  <li><p>I case <code>zip</code> would be going wrong, what is the workaround to do what I want ? Is there a way through another tool ? <code>tar</code> ?</p></li>
  <li><p>I case <code>Maven</code> would be going wrong and create a bad war file each time, how to detect the part it is creating wrongly ?</p></li>
  </ul>