title: Maven assembly plugin does not overwrite files during compile phase
body: <p>I have defined maven assembly plugin and have set pom to execute the plugin(assembly.xml) in "compile" phase. assembly.xml - it gets the jars/files using "dependencySet" and I replace few files with my local set using "fileSet".</p>
  
  <p>With Maven assembly plugin 2.2 beta 2 it would replace the files.
  With version 2.2 or 2.2.1 of assembly plugin,
  a) it says "already added, skipping" and does not overwrite.
  b) if I modify the phase to "generate-resources" instead of "compile" in the pom, it shows the 'already added, skipping" message and anyways replaces/overwrites the files.</p>
  
  <p>Would like to know, what has changed between versions and why the phase change would make it work. Also it would be helpful if someone can explain what exactly happens in "compile" phase (that it doesn't overwrite).
  Is there a workaround for my issue?</p>
  
  <p>Thanks in advance for the help!</p>
  
  <p>Included the snippet:</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;version&gt;2.2&lt;/version&gt;
    &lt;executions&gt;
      &lt;execution&gt;
        &lt;id&gt;create-install-image-layout&lt;/id&gt;
        &lt;phase&gt;compile&lt;/phase&gt;
        &lt;goals&gt;
          &lt;goal&gt;directory-single&lt;/goal&gt;
        &lt;/goals&gt;
        &lt;configuration&gt;
          &lt;descriptors&gt;
             &lt;descriptor&gt;src/main/assembly/assembly.xml&lt;/descriptor&gt;                                              
          &lt;/descriptors&gt;                                     
          &lt;ignoreDirFormatExtensions&gt;false&lt;/ignoreDirFormatExtensions&gt;
        &lt;/configuration&gt;
      &lt;/execution&gt;
    &lt;/executions&gt;
   &lt;/plugin&gt;`
  </code></pre>